In this tutorial, we are going to see how to move your home directory to a separate partition in a few simple steps. The tutorial was done under Ubuntu 11.04, and the partition was created using GParted.
1. Using GParted or any other partition manager, create a new partition (sda2, sda3, etc.) having the ext4 format.
2. Open the Terminal and run this command to edit fstab:
sudo gedit /etc/fstab
3. At the end of the file, add the following line by taking into account your created partition and filesystem used:
/dev/sda4 /home ext4 defaults 0 2
For my part, sda4 is the partition that I have created with GParted, and the ext4 is the filesystem used. Replace them with your own details, then save the file and exit it.
4. Copy now the entire contents of the home directory to this new partition. You are free to use either the Terminal to copy paste contents of the home directory or doing it graphically.
5. Reboot now your system. The home directory (/home) is now mounted in the new partition. It's not recommended to delete the old home directory because you might need it in case of unexpected errors.