Thanks.

SO i assume you are saying make a dir in / for the old data called /home.old
but ...
umount /home
means that /home is no longer accessible?  so how can you cp into it with 
cp -a /home.old/* /home/

My assumption is... and correct me if i am wrong... when there is a dir in / whether 
it has been unmounted or just created... it is there, and the only thing that mounting 
does is to allow you to gain access to a different partition or storage device via 
that directory.  so here, when unmounting /home, this just means stop using the stuff 
in /devb/hdb6 but /home will exist, just in hda5 where / is instead of using the hdb6.

I also assume that the /home entry in /etc/fstab is only there to mount /home 
somewhere else other than th the partition that / is mounted, and removing it will 
simply begin using /home in the / partition as it has been created.  is this correct 
understanding?




-----Original Message-----
From: nate [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 5 March 2003 3:02 PM
To: [EMAIL PROTECTED]
Subject: Re: mounting /home somewhere else


Mirabella, Mathew J said:
> I have an rh8 installation with the / being mounted on /dev/hda5 and the
> only other main partition apart from a 2gb swap is the /home on /dev/hdb6.
> / and /home are about 20gb each.
> but now i want to use /dev/hdb6 for something else.  how can i assign
> /home to be mounted in /dev/hda5 that is, inside the /.  what i want is to
> use one partition for the lot (except the swap of course). how can i now
> do this with a minimum of fuss and data loss.

log out of all non-root accounts
login as root(preferably at the console rather then X)
make a new mountmount (mkdir /home.old)
umount /home ; mount /dev/hdb6 /home.old
cp -a /home.old/* /home/
umount /dev/hdb6
rmdir /home.old

remove /home entry from /etc/fstab

resume normal operations

nate





-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to