--- Bob Kline <[EMAIL PROTECTED]> wrote:

> Mohammad Bhuyan wrote:
> > Hi,
> >
> >>
> >> I have the /home on its own partition, but I need
> to move it to the root
> >> partition without losing data,
> >
> > I am not an expert but I was thinking if the
> following should work
> >
> > 1. To be on the safe side get out of x (ex: init
> 3) ....
> 
> Wouldn't it be even safer to boot from a live CD?

I had the opposite problem a few days ago: I had to
move /home off the root partition and onto a new
partition.

Since I have two Linux systems installed, I can use
the one to modify the other.  I have 9.0 on a logical
partition on hda and 10.2 on a logical partition on
hdb.  

When I installed 10.2 last week, I inadvertantly ended
up with /home on the root partition.  Not knowing what
to do, I proceeded one step at a time, checking each
result.  

Using the 9.0 system:
* I mounted the two 10.2 partitions, hdb5 and hdb6.  
* I copied the 10.2 /home subdirectories from hdb5
(root) to hdb6 (new home)
* I renamed 10.2 /home to /home_hdb5, to preserve the
the original subdirectories (for recovery)
* I created a new 10.2 /home to serve as a mount-point
for 10.2 fstab
* I made sure that the 10.2 fstab entry used hdb6

Much to my surprise, 10.2 survived and is now working
fine, with the new /home.


       
____________________________________________________________________________________
Get the free Yahoo! toolbar and rest assured with the added security of spyware 
protection.
http://new.toolbar.yahoo.com/toolbar/features/norton/index.php
-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to