What they said.
Originally Posted by Pjotr123
This will be.. interesting. I found this: http://outhereinthefield.wordpress.c...her-partition/
Originally Posted by BlinkinCat
But I do not know if it will be all that helpful.
I would recommend doing the next part from a livecd instead of a running system, so there is nothing writing to the partitions while you move things around. It would also be a good idea to backup the stuff in /home because messing with partitions isn't foolproof.
Once you have booted off the livecd, run these commands from a terminal:
Verify with df -h and/or blkid:
cd && mkdir root tmp boot usr var
# Mount /
sudo mount -t ext4 UUID=a50390f0-0910-48db-9941-89a0ab7ffa29 ~/root
# Mount /tmp
sudo mount -t ext4 UUID=f5707e5c-41a3-4e55-97aa-ea5f48f75767 ~/tmp
# Mount /boot
sudo mount -t ext4 UUID=3ac4709e-9e4d-4a5b-9da5-d88f78e35402 ~/boot
# Mount /usr
sudo mount -t ext4 UUID=6d64bcaf-c555-400b-b8bc-7516d0b3fdf3 ~/usr
# Mount /var
sudo mount -t ext4 UUID=51c8465d-0f8c-407a-9c0c-11c610aaea6b ~/var
Once you have verified that is right, proceed with the copy - I added the dry-run switch so you can verify the copy will work before actually doing it for real.
df -h "should" look like this:
/dev/sda1 9.2G 1.3G 7.6G 14% /home/ubuntu/root
/dev/sda6 9.2G 150M 8.6G 2% /home/ubuntu/tmp
/dev/sda2 463M 147M 293M 34% /home/ubuntu/boot
/dev/sda3 7.4G 3.3G 3.8G 47% /home/ubuntu/usr
/dev/sda5 3.7G 731M 2.8G 21% /home/ubuntu/var
Verify with ls
sudo rsync -ai --dry-run ~/tmp ~/root/
sudo rsync -ai --dry-run ~/boot ~/root/
sudo rsync -ai --dry-run ~/usr ~/root/
sudo rsync -ai --dry-run ~/var ~/root/
Comment out the lines that are mounting /tmp, /boot, /usr and /var in fstab:
unmount everything and you should be good to go to reboot.