Originally Posted by
Pjotr123
Often there are many ways to achieve a goal, neither of which is wrong.... As in this case. You can choose the one you like best.
Personally, I tend to favour the way that I think is the most simple. Simple systems are the most reliable and bother-free in the long run, is my experience...
What they said.
Originally Posted by
BlinkinCat
Thanks Pjotr123 - I will take what you say onboard, however as I was relying on CharlesA to get rid of /usr, /var and /tmp I will wait to get further input from him. Even in the short discussions on this thread we have differing viewpoints, which only tend to confuse matters to me. It seems with all of the available documentation there are still issues of non-standardization. I am leaning towards reducing the partitions by three, If I can achieve that I believe I will be content - but time will tell.
Thanks to dino99 also.
Cheers -
This will be.. interesting. I found this: http://outhereinthefield.wordpress.c...her-partition/
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:
Code:
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
Verify with df -h and/or blkid:
Code:
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
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.
Code:
# Copy
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/
Verify with ls
Comment out the lines that are mounting /tmp, /boot, /usr and /var in fstab:
Code:
nano /home/ubuntu/root/etc/fstab
unmount everything and you should be good to go to reboot.
Bookmarks