how do I set /home on another partition?
I recently started keeping /home on a different hard drive partition. But on my latest reinstallation of one of the distros I use (heavily modified antiX), I forgot to specify where /home would be located, so it was of course installed on the same partition. Now that installation is complete and I am running the installed distro, how can I change the location of /home to the partition where I wanted it? I tried "adduser" with --home /sda1, but that didn't work (I didn't think it would)...
|
If I understand you correctly, you would need to create a partition on sda (if that's your new drive), copy all the files from /home into that partition, then edit your /etc/fstab file to mount /dev/<new partition> as /home. For example, my fstab:
Code:
# Hope this helps, |
The partition is already prepared. So I just add "/home" to the relevant line in fstab? I see, thanks.
|
You also should move over (not copy) the files in your actual /home to the partition you want to use for /home, so that your users configuration files will be there.
|
All times are GMT -5. The time now is 11:56 AM. |