Im having a problem, my primary partition is running out of space. Due to this, I can't access linux machine remotely (through vncserver). I have another drive (/dev/sdb) having much more free space. I want to shrink space from (/dev/sdb) and extend to (/dev/sda1) partition which is my primary partition and have all linux boot, kernel etc files. What would be best risk free way to do this without losing my data on primary drive(/dev/sda1) ?? fdisk or 'dd' command or 'mount and umount' ? Any help would be highly appreciated. :)
migrated from stackoverflow.com Jun 25 '12 at 16:52
|
The Risk Free way would be if you can copy(mirror) all your data from /dev/sda1 to some other partition. After this is done, I would recommend to go with GParted live CD and execute all partition modifying commands from there. This seems to be the most secure way of doing it. |
|||
|
|
|
You have to use For more information refer this link. http://www.howtoforge.com/linux_resizing_ext3_partitions Ex:
You can use I hope this will helps you. |
|||
|
You need a live CD/temp OS to boot on it, resize the new partition to the right size, mount the old and new partitions and copy your files first with
Then you should change some references (UUID or partition name) to the new partition in /etc/fstab to match the new partition, and reinstall grub on that new partition :
|
|||||||
|
|
The answers given so far don't seem to take into account that the free space you have is on another drive. I don't think you can easily extend a partition to another physical drive, although I may be mistaken. Anyway, a more straightforward thing to do in this case is to constantly |
|||||||
|