Moving home Directory?


Forum: HD Install
Topic: Moving home Directory?
started by: trizon

Posted by trizon on April 18 2005,16:25
Hello,

I created a partition on install for my /home directory and I am wanting to move my current /home over to it.
My problem is I am logged in as dsl and it says the information is busy.
I have tried init 1, but it still tells me the files are busy and cannot be moved.
What would be the best method of doing this?

Posted by mikshaw on April 18 2005,20:04
This is from my foggy memory....

1) Log in as root ("sudo su -" or init 2)
2) Copy /home to your new partition (use cp -p to preserve ownerships)
3) Edit /etc/fstab, adding a line for the partition mounted at /home
4) Delete the contents of /home
5) type "mount /home"

Posted by helmut on April 20 2005,10:19
Hello mikshaw
is step "4) Delete the contents of /home" necessary?
I tried to move /home also, but did only rename /home/dsl to /home/dsl.old. Then I edited /etc/fstab and rebooted the computer. But the new home-partition was not mounted automatically. I could not log in as user dsl. As user root I could mount /home and afterwards user dsl could login.
The options in fstab were set 'default' for /home.
Why was my home-partition not mounted automaticly?

helmut

Posted by mikshaw on April 20 2005,13:49
I was only typing from a foggy memory, as i said....i did this once, and it was successful, but i'm not 100% sure of the procedure.  If anyone has a more definite method, or sees a mistake, please feel free to correct me.  
Step 4 isn't necessary, i just don't see any reason to keep duplicates hanging around.  As far as i know, the new mount will hide the current contents of /home.
The automount might need to be specified in /etc/fstab.  Add "auto" to the mount options, something like this:
/dev/hda2   /home   reiserfs  auto,rw   0 0

Posted by ke4nt1 on April 20 2005,15:12
If your running a frugal/poormans/liveCD install,
because of the new options added to the 1.x.x series,
you can specify another home and opt location by using
" dsl home=hdXx opt=hdXx " in your boot line.
( hdXx = whatever you specify, e.g. hda3 hdd2, etc.. )

You can also add these commands to your remaster,
or add them to your lilo.conf , or menu.lst for booting
lilo or grub..

You can prepare these dirs in advance, if you wish.
or, if you choose a partition void of /home or /opt dirs,
they will be created and loaded for you at boottime.

73
ke4nt

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.