Sunday, September 14, 2008

Mounting home on a different partition

I recently did a reinstall of Ubuntu and rather than loosing all my personal data and having to copy it all back from the backup server, decided to put /home on a separate partition, leaving the rest of the drive for Ubuntu.

Thanks to the help on the Ubuntu blog, I got it set up and running with no problems, leaving a quick mount after the reinstall to get think back up and running. No more faffing around trying to get the machine setup as it was before... all the app specific information is already where it needs to be.
sudo -s
move /home /home1
mkdir /home
mount /dev/sda1 /home
joe /etc/fstab

/dev/sda1 /home ext3 nodev,nosuid 0 2

No comments: