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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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.