Important: This only applies if you want to move the /home directory to another drive/partition, or if you want to activate an existing home directory on another drive/partition.
- Carefully write down these instructions since they require you to close the browser.
- Save and close all open programs, and then log out (as opposed to restart or shutdown).
- Press CTRL+ALT+F2; you will be taken to the TTY2 command line.
- Stop the Gnome Desktop Manager:
sudo /etc/init.d/gdm stop
- (Note: Skip this step if you already have the contents of your /home directory in the desired partition.) Copy your /home directory to the desired partition, say /media/new_home_partition:
sudo cp -pR /home/$USER /media/new_home_partition
sudo chown $USER:$USER /media/new_home_partition/$USER - Make the desired partition mount as /home:
sudo cp /etc/fstab /etc/fstab.backup
If the mount point for any entry is currently listed as /home, change it from
sudo nano /etc/fstab# /dev/old_home_partition
to
UUID=... /home ...# /dev/old_home_partition
Then set mount point for the desired partition's entry to /home by changing
UUID=... /media/old_home_partition ...# /dev/new_home_partition
to
UUID=... /media/new_home_partition ...# /dev/new_home_partition
Save the file (i.e., press CTRL+O) and exit Nano (i.e., press CTRL+X).
UUID=... /home ... - Press CTRL+ALT+DEL to reboot; after rebooting, your /home directory will be located in the new partition.
0 comments:
Post a Comment