Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
What I want to do is move my /home directory to another one of my harddrives. First I tried doing this by making a link from /home to /media/x/home however this just caused my computer to stop after typing in my username.
I found something that I could use. Using "mount --bind /media/x/home /home" would work but I was hoping to put it in my fstab. Is there a way to link an already mounted folder to the /home directory in fstab? or is there a much simpler way of doing what I'm trying to achieve?
Thanks in advance, sorry if I haven't been clear enough.
p.s. I don't want to make a new partition on the other drive, just have the home folder siting in it (its ext3 already)
Last edited by gothicbob; 10-05-2008 at 11:53 AM.
Reason: p.s
Console login
Copy contents of /home to /media/x/home
replace /home with "ln -s /media/x/home home"
comment out the mounting of /dev/sda6 to /home in the fstab
restart
When I login it says "could not start ksysconfig" or something. Not quite sure what is wrong...
/media/x is in the fstab and is mounted fine, as I can access the files during the console login.
Did you actually copy the contents of the old /home to the new /home? If not, given where you are, it's probably best to do it in maintenance mode before everything comes up. Just mount the old /home somewhere and the new /home somewhere else. Run "cp -axu /oldhome/ /newhome". Once the files are copied over, then you can redo your /etc/fstab and reboot.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.