Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Currently, the /home, /root etc exit on the same partition.
Now, I want to move /home to a different partition and mount
it from there. What's the procedure to do it?
I changed the /etc/fstab to reflect it, but it didn't work.
Does the /home directory have user directories in it or is pretty empty at this time ? Also are you trying to mount to a existing parition with other directories on it or is it a newly created partition ?
You can always try this:
mount home1 /dev/hdaX (where x is number of partition you want it mounted)
cp /home/* /home1/
rm -rf /home (be careful, not to make a space between / and h, you could also hold off on this after a reboot just in case if things go wrong, so you still have the files there)
mv /home1 /home
edit fstab accordingly with the new mount position. there might be an easier way, but that is how I would do it, something along the lines like that.
I am not sure if I am right because it works for me, so I am simply thinking this is right, so feel free to correct me if I am wrong...
If you have your cdrom (or whatever) set up in your fstab like this:
/dev/cdrom /mnt/cdrom auto default 0 0
Then to mount your cdrom all you have to type is:
and it will mount it as it is set up in your fstab, so in the long run saving you even more keystrokes.