Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Moving home Directory?< Next Oldest | Next Newest >
trizon Offline





Group: Members
Posts: 3
Joined: April 2005
Posted: April 18 2005,16:25 QUOTE

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?
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: April 18 2005,20:04 QUOTE

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"


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
helmut
Unregistered






Posted: April 20 2005,10:19 QUOTE

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
Back to top
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: April 20 2005,13:49 QUOTE

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


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
ke4nt1 Offline





Group: Members
Posts: 2329
Joined: Oct. 2003
Posted: April 20 2005,15:12 QUOTE

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
Back to top
Profile PM 
4 replies since April 18 2005,16:25 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: Moving home Directory?

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code