Setting up a home partition on a separate drive
Posted: Fri Oct 28, 2011 10:13 pm
For backup purposes I like to have my /home on a separate drive from /, I noticed during install there was no option for this on LMDE. So I set it up myself.
NOTE: I would do this on a fresh install so you don't have a bunch of settings and whatnot, this will erase any settings you have in your current /home.
First we need the UUID of the drive you want to use:
Now with UUID in hand:
fstab tells the system where to mount drives during boot. Your fstab should look something like this:
Now let's add the new info for the drive. Go down to the bottom of the file and add this:
There are probably other choices for the way the system treats the drive, you can look into these if you choose. This works for me and should work fine for others.
Reboot your system and setup your programs and everything will be saved in your new home. All default setting will be written.
NOTE: When I did this my /dev was writing an error log after the initial boot. I did a second reboot and all was fine. YMMV
NOTE: I would do this on a fresh install so you don't have a bunch of settings and whatnot, this will erase any settings you have in your current /home.
First we need the UUID of the drive you want to use:
Code: Select all
sudo blkid /dev/sdXX (replace XX with your device)
Code: Select all
gksu gedit /etc/fstab
Code: Select all
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda1
UUID=c826b64f-d320-46c3-a6c2-f9e409f8a615 / ext4 rw,errors=remount-ro 0 1
# /dev/sda2
UUID=2ef040e8-b399-447c-ba39-5800b574e511 swap swap sw 0 0
Code: Select all
# /dev/sdXX (your drive)
UUID=(Your UUID) /home (FS type) rw,errors=remount-ro 0 1
Reboot your system and setup your programs and everything will be saved in your new home. All default setting will be written.
NOTE: When I did this my /dev was writing an error log after the initial boot. I did a second reboot and all was fine. YMMV