Monday, April 11, 2011

Replace local home directory with an existing partition

Find the UUID of the partition:
$ blkid /dev/sda1
... or ...
$ ls -l /dev/disk/by-uuid

Edit /etc/fstab file:
UUID=xxxxxxxxx /home ext3 defaults,noexec,nosuid 1 2

Move home to old-home, then remount partition.
$ mv /home /old-home
$ mkdir /home
$ mount -o remount /home

No comments:

Post a Comment