Debian Configuration :: How To Resize Mounted Partition On LVM
Oct 24, 2015
I would like to resize the /home partition but it is mounted and when umount is run, it errors with 'busy'.
System Configuration:
I installed jessie on a laptop with one SSD. I used guided partitioning and selected the whole drive with multiple partitions. The /home now takes up 420 GB. I would like to reduce that to 20 GB to make room for another partition.
What are the methods reduce this partition?
View 8 Replies
ADVERTISEMENT
Aug 20, 2011
I need to resize (increase) LUKS partition. I have found a lot of manuals, but they are just for LVM volumes(I dont use LVM and I dont plan to use it). I have HDD splited to the 4 parts:
sda1(/)
sda2(LUKS)
unalocated
swap
I want to increase LUKS partition, by using the part of unalocated space.
BUT I dont want to do the following:
Backup data from LUKS partition
Delete LUKS partition
Create new bigger LUKS partition
Restore data to the LUKS partition
View 1 Replies
View Related
Jul 31, 2015
I'm trying to resize tmp file using gparted. So I used gparted live cd and then i resized the tmp file but delete the old /tmp partition without backup. Now, my pc do not start. I have Debian 8.
View 14 Replies
View Related
Oct 1, 2010
What will be an easy and safe way to resize partition? Boot up the LiveCD? Or can I run resize2fs while OS is running?This is a newly installed box without files on /kvm. Now I want to resize /home taking up the complete capacity of /kvm which will be removed/deleted.
View 7 Replies
View Related
May 1, 2011
I am trying to install Debian for my best friend by resizing his Windows partition so that I can install Debian on a separate partition. But, I get this message when I try to resize Windows: "for some unknown reason impossible to resize this partition. Check /var/log/syslog or see virtual console 4 for details." I do not know how to check virtual console 4 for details and besides I won't be able to interpret it. I also tried defraging the Windows hard drive several times and using several livecds with GParted to try to resize. They all failed.
View 6 Replies
View Related
May 18, 2010
I recently installed Lenny and used the "Guided - Use Entire Disk" option.I made separate partitions for root, /etc, /var, /home, /usr and swap.I trusted that the auto partitioner would choose sensible sizes but possibly that was a bad move, root is only 340Mb and is full.
View 8 Replies
View Related
Apr 22, 2016
How to run a fsck on a mounted drive? I attempted unmount and it said no. I suddenly got an error 4 and trying to run a check, and it aborts with can't cause mounted.
View 10 Replies
View Related
May 9, 2010
I am trying to save a document in a mounted partition but its says I don't have the permissions to save the file. It says this for any partition. I am only able to save it in my home directory. How to I solve this. Basically I am trying to access a file in linux in windows xp. So I need to save the file in fat 32 partition which it is not allowing me to do.
View 4 Replies
View Related
Apr 18, 2010
I have two partitions in LVM. They are added in /etc/fstab to mount automatically. But, they are not working. The process to mount partitions seems to be happening before the service /etc/init.d/lvm2 is started. I can get it mounted using "mount -a" command, but not during the boot time. What should I do get it automatically mounted on every boot?
View 5 Replies
View Related
Jan 7, 2011
I'm not sure if this is a bug in Squeeze beta 2 or if it's something I've overlooked. I have a Maxtor 250 GB external USB drive that I use for backups. It gets auto-mounted fine, always in the same place, and from my normal user account I can write to it, even delete directories on it if I want to. But when, from Gnome, I select the "Safely remove" option, I get an error to the effect that it can't stop the device. The weird thing is that the thing actually *is* unmounted. I've checked the mount point and it's no longer there.Is there some package I maybe should've installed but haven't? I'm not really worried about data loss, since I'm sure the drive wouldn't unmount unless it was properly synched; it's just the error message that bugs me.
View 2 Replies
View Related
Nov 27, 2015
My primary repos are DVD .isos on my hard drive loop-mounted in /etc/fstab. Although I can install packages just fine and there are no issues with running installed applications, I must have screwed up the configuration of /etc/apt/sources.list because I get this output when I do apt-get update:
Code: Select allIgn file: jessie InRelease
Ign file: jessie InRelease
Ign file: jessie InRelease
Ign file: jessie InRelease
Ign file: jessie InRelease
[Code] .....
Here is my rather primitive but functional /etc/apt/sources.list:
Code: Select all# deb cdrom:[Debian GNU/Linux 8.2.0 _Jessie_ - Official amd64 DVD Binary-1 20150906-11:13]/ jessie contrib main
# deb cdrom:[Debian GNU/Linux 8.2.0 _Jessie_ - Official amd64 DVD Binary-1 20150906-11:13]/ jessie contrib main
deb file:/dvd1 jessie main contrib
deb file:/dvd2 jessie main contrib
deb file:/dvd3 jessie main contrib
[Code] ....
So what exactly have I screwed up?
View 0 Replies
View Related
Feb 20, 2010
When I plug in my external USB Hard drive which is formatted as a single NTFS partition, it is recognized and mounted automatically, a nautilus window pops open. Unfortunately it is not writable. The reason is: the partition is mounted "ntfs" (which lacks write support) instead of "ntfs-3g". This is the output of mount after plugging in the drive:
$ mount | grep sdc1
/dev/sdc1 on /media/4EBC5FB82435B0EE type ntfs (rw,nosuid,nodev,uhelper=devkit,uid=1000,gid=1000,dmask=0077)
I want this partition to be writable by just plugging it in.
The partition should not have any errors because a) I fsck'ed it windows and b) mounting it manually works:
$ sudo mount -t ntfs-3g /dev/sdc1 /media/disk_/
$ mount | grep sdc1
/dev/sdc1 on /media/disk_ type fuseblk (rw,allow_other,blksize=4096)
$ devkit-disks --mount-fstype ntfs-3g --mount /dev/sdc1
Mounted /org/freedesktop/DeviceKit/Disks/devices/sdc1 at /media/4EBC5FB82435B0EE
$ mount | grep sdc1
/dev/sdc1 on /media/4EBC5FB82435B0EE type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
$ gnome-mount -nbtd /dev/sdc1
$ mount | grep sdc1
/dev/sdc1 on /media/disk type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
How can I get ntfs drives to be mounted as writable by default, preferrably without having to modify fstab?
View 1 Replies
View Related
May 29, 2011
I have around 30gb of free space in my partition table immediately before the Linux partition. I want to resize my linux partition to take up this space.
I tried booting with live cd, sucessfully umounted the hard drive but found I could not resize the partition. On clicking the 'edit size' button, partition manager recognised the free space before the partition but when i reduced this, the 'ok' button was greyed out. (it was not greyed out for the windows partition so I could, in theory, increase the windows partition to take up the free space but this is not what i wanted to do).
I am pretty sure that I had managed to unmount the drive correctly as the padlock symbol had dissapeared (I took the attached screenshot, which does show the lock symbol, after rebooting into my normal system).
Anyone got any ideas as to why it wont allow this? There is no reason why i can resize the partition to take up the free space BEFORE it is there?
View 9 Replies
View Related
Aug 17, 2010
using suse 11.3 and kde 4.4.4 on the mounted fat32 partition I cannot change icons partition is mounted in fstab in this way:/dev/sda8/ /dati vfat user, users, gid=users, umask=0002, utf8=true, 0, 0.I can create files folders modify, move and save them on the partition but if I try to change the icon (in dolphin right click>properties>click on icon) of the /eros folder (or any other folder or link) system gives me
this error:impossibile salvare le proprieta' , non hai accesso sufficiente per scrivere su /dati/eros/.directory tha in english is something like this: impossoble save properties, you havent enough permission access to write on /dati/eros/.directory this happen also as superuser I remember that with suse 11.0 or 10.3 I was able to change icons on fat32 partitions, now with 11.3 I cannot, there ought to be a way to do what I did with the previous version with this 11.3 brand new ad more advanced version shouldn't it?
View 11 Replies
View Related
Feb 5, 2010
Is there a program that will reread the partition table and update the kernel even if one of the unmodified partitions is mounted? I installed my system on one partition, then I added another with free space. Now I want to format the second partition, but the kernel doesn't know about it yet. I tried sfdisk -R /dev/sda, but it refuses while the root partition is mounted. Is there anyway I can avoid rebooting?
View 2 Replies
View Related
Mar 23, 2010
I have Ubuntu server 8.04. I have 4 hard drives of 149Go each. Size of a mounted partition is smaller thant the partition itself :
- first drive is the system
- I mounted the 2nd drive (ext3) on a folder, but the Size is 941.89 MB instead of 149Go
- same for drive 3 monted on another folder, but the Size is 941.89 MB instead of 149Go
View 2 Replies
View Related
Nov 18, 2010
I have a Truecrypt-encrypted Windows [system] partition, that I want to be opened and mounted automatically (using a keyfile) when I log into Debian, since it is also encrypted and I don't want to type two passphrases. It think this could be done with LUKS. With TC I probably have to go with the CLI, but haven't figured it out yet. And I can't add a keyfile to the volume using the GUI. In order to mount the volume I have to tick the Mount partition using system encryption (preboot authentication) checkbox, or otherwise I get Incorrect password or no TrueCrypt volume found. And same when I try to add a keyfile.
View 2 Replies
View Related
Mar 16, 2011
I know that boot partition is possible to create within debian distribution that has grub 2.0, as I have done before with ubuntu. I have been trying many different options with my preseed file but it keeps taking the boot partition out of LVM and creating and extended partition too and then creates the LVM primary partition.
### Partitioning.
# you can specify a disk to partition. The device name can be given in either
# devfs or traditional non-devfs format. For example, to use the first disk
[code]....
View 1 Replies
View Related
Jan 12, 2011
Under GNU/Linux. I am talking about this. How do I know if a partition is misaligned?
View 14 Replies
View Related
Jun 13, 2011
I got a mistake during my installation on my server. I put the "/tmp" folder to the 2nd disk without thinking. My 2nd disk has only this folder and partition. How can I move the "/tmp" folder to my first disk in a different partition safely? It would be great if I won't destroy the server.
I would like to do the following:
1. move "/tmp" to disk 1 (sda). I will resize the "/home" partition(reduce) and put the "/tmp" there.
2. I will put "/backup" on the disk.
View 1 Replies
View Related
Jul 13, 2011
My laptop has /dev/sda5 mounted on /. It has 10GiB and almost full. I formated Windows XP partition and it is now /dev/sda1 ext4 45GiB free space.When I mounted /dev/sda1 to root (/) directory, df commands showed still the original partition size. (81% used).
View 3 Replies
View Related
Feb 27, 2016
I have Debian and Virtual Box with another Debian. I have resized max size of vdi file with VBoxManage modifyhd but now I need to resize partition on virtual machine's system. I've downloaded GParted and I can run machine from this ISO as CD. Partition is encrypted on machine.Unfortunately GParted doesn't start with X so I have to use it in terminal. I can see partitions:
Code: Select allroot@debian:/# fdisk -l
Disk /dev/sda: 80 GiB, 85899345920 bytes, 167772610 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x3914....
[code]....
So I though maybe I need to use this (URL...). I couldn't find similar tutorial about Debian or GParted but OK, it's just executing these commands, not modifying its source.list.But I cannot even do the update:
Code: Select allroot@debian:/# sudo apt-get update
Err: http://free.nchc.org.tw/debian sid InRelease
Temporary failure resolving 'free.nchc.org.tw'
Err2: http://free.nchc.org.tw/drbl-core drbl InRelease
Temporary failure resolving 'free.nchc.org.tw'
Reading package lists... Done
W: Failed to fetch http://free.nchc.org.tw/debian/dists/sid/InRelease Teporary failure resolving 'free.nchc.org.tw'
W: Failed to fetch http://free.nchc.org.tw/drbl-core/dists/drbl/InRelease Temporary failure resolving 'free.nchc.org.tw'
W: Some index files failed to download. They have been ignored, or old ones used instead.
So I check my internet connection. VirtualBox has 'attached to NAT' and before I run out of space on virtual machine, Debian could access internet. So it's only something about this GParted. I have modified /etc/resolv.conf with vi (even vim is not available). And it has two valid nameservers. I haven't restarted anything, as I'm not sure if I need to, after modifying resolv.conf file.But even in that case I cannot ping anything from GParted:
Code: Select allroot@debian:/# ping www.google.com
ping: unknown host www.google.com
How can I access internet from GParted and resize encrypted partition?
View 8 Replies
View Related
Aug 8, 2010
I installed Fedora 13, but did not expect it would set up a LVM on the entire remaining unpartitioned space.
So I'm now trying to resize the partition the LVM is on. I already resized lv_home using system-config-lvm... however now lv_swap resides at the end of the physical volume. If I assume correctly that this also means that it resides at the end of the sda6 partition, I need to move it in order to resize the partition.
It now looks like this: [URL]
How would I go about moving lv_swap right next to lv_home? And how can I actually resize the partition? gparted doesn't seem to be able to resize lvm2 partitions.
View 1 Replies
View Related
Sep 30, 2010
Ubuntu 10.04 64-bit (installed on installer)
What will be an easy and safe way to resize partition? Boot up the LiveCD? Or can I run resize2fs on Ubuntu while the latter is running?
Code:
This is a newly installed box without files on /kvm. Now I want to resize /home taking up the complete capacity of /kvm which will be removed/deleted.
View 5 Replies
View Related
Dec 21, 2010
I'm running Fedora Core 14 on my server and in copying over all the stuff I had backed up before the install, i recived the message that one of my volumes was nearly out of space. Since this is just a partition on my hard drive, I could resize it to make it larger, but I don't know how. It's a ext4 partition on my 2nd hard drive.
View 10 Replies
View Related
Jun 6, 2010
On recomendation from the team installing the DB on our new server, all the partitions etc on our VM were created as LVM's. The setup for this is like this:
Disk 1
-> /boot
-> /swap
-> LVMpartition1
[Code]....
View 9 Replies
View Related
Feb 25, 2011
I have a default centos 5.x install on an 8GB hard disk. (This means the volumegroup is mounted to / ). I've increased the size of that hard disk to 12GB. (so yes, fdisk says my disk is 12GB)
I now need to increase the LVM to use the 12GB instead of the 8GB. Every single article I've come across says:
"run lvextend on your vg you want to increase, then unmount, reboot, run live cd or whatever and then run resize2fs".
But of course lvextend +anyG returns an error saying not enough free extents
lvextend +100%FREE returns saying the extents matches extents
How can every the google result be wrong? How can I simply tell this LVM that it's now a few gb larger?
View 3 Replies
View Related
Nov 20, 2010
as far as i know Debian "Squeeze" has a disk check utility, but you can't run this on a mounted filesystem. Is there a way to trigger this during boot (before filesystem is mounted) ? I can run this once a month to keep filesystem healthy....
View 2 Replies
View Related
Jan 23, 2016
Is there a way where I can take like 50GB from my home folder (I have 375 avail., but using only 22GB) and put it to the root partition? Twice now my system has almost ran out of space on root, so luckly I was able to clear out old stuff so I don't have login issues after finding the hardway the first round lol. I just want to make sure I can login with out being forced back out because root don't have space to let me login.
View 11 Replies
View Related
Apr 28, 2016
I made a mistake in Gnome Disk utility tool. Instead of changing the options for a USB key, I changed the options of the root partition.
In Initial state, automatic options were desactivated. I just activated them. And after desactivacting them, I realized my mistake and switched back to "non automatic options".
By doing this, I suppose that defaults values were used since now, the system starts in command line mode and no more in graphic interface mode.
When I try the "startx" command, I get a "read-only" error.
With the command "sudo mount -o rw,remount /" the graphic interface is started.
Below is the configuration of the partition under the gnome disk utility tool :
"Mount at startup" is checked
"Show in user inteface" and "Require additional authorization to mount" are unchecked
Mount options : nosuid,nodev,nofail,x-gvfs-show
Mount point : /mnt/eb11d4d6-75db-XXXx-XXXx
Identify as : /dev/disk/by-uuid/eb11d4d6-75db-XXXx-XXXx
Filesystem type : auto
I do not want to change anything that could leat to a critical error. So what do you think I should do ?
View 1 Replies
View Related