I have just ghosted an Ubuntu (12.04) instance from a 200GB HD to a 1TB HD. The ghosted instance has two mounted storage partitions both of about 100GB each and I have the following partition table:
Partition File System Mount Point
/dev/sda1 ext4 /
/dev/sda2 extended
/dev/sda5 linux-swap
/dev/sda3 ext4 /development
/dev/sda4 ext4
/dev/sda4
is a copy of /dev/sda1
, just on a larger partition. I now want the /dev/sda4
partition to be mounted at root (/
) so that it is the default boot partition.
Finally a question - how can I change the /dev/sda4
partition to be mounted at root?
/etc/fstab
should be modified with the entries for the new partition. It has parameters to define mountpoint and whether to be mounted automatically.If you're looking for detailed explanations, look here: https://help.ubuntu.com/community/AutomaticallyMountPartitions https://askubuntu.com/questions/164926/how-to-make-hdds-mount-at-startup-in-ubuntu-12-04
You have to change the boot loader configuration. That is probably Grub or Grub2. There is a kernel parameter
root=...
with the device name, device ID, file system label or file system UUID. You have to change that to the new partition. On/dev/sda4
you have to change the entry in/etc/fstab
.