According to Ray Olszewski: While burning my CPU.
> 
> The procedure you describe will move the filesystems themselves just fine
> (well, one qualification - see below), but it won't give you a bootable
> drive. After you install with the new drive, you'll need to boot from a
> floppy rescue disk, then run lilo to install the boot loader on the new
> drive. Assuming there's nothing weird about drive geometry, that should get
> you switched over.
> 
> /etc/dev is special, but not in a way that matters to this procedure.
> 
> The qualification: you'll want to run cp -a -p, the p option acting to

Ray, Rod said "if i use cp -a" cp -a implies -dpR

A few more things come into mind, if i may add to your comments,

1) the /proc directory no need to copy them, in fact dont try, that will
fail, just create a /proc directory on the new disk with correct permissions
of course.

2) the /dev directory, possably its a good thing to create the directory
manualy then use the MAKEDEV script to create new files, i remember years
ago i tryed to do what Rod wants, i had problems afterwards, it could have
been i did it wrong, however using the MAKEDEV script should cancel out any
problems.

> preserve ownership, permissions, etc ("man cp" for details). You may also
> have to do something special to get symlinks moved correctly, but if so I
> forget what.

cp -a "should" take care of that.

If i may add, it is far better to install a new system, then just copy any
files to the new system afterwards, things like X config files, ppp config
files, anything to do with config /etc/rc.d/* /home directorys, user
accounts, /etc/passwd /etc/aliases anything in that catagory.

> 
> At 09:42 AM 3/23/99 -0500, Rod Gotty wrote:
> >Hi.
> >
> >I would like to move my Linux partitions from one hard drive
> >to another so that I can throw away the hard drive it 
> >currently is installed on and use the new hard drive.
> >
> >Is it as simple as installing the new hard drive as a secondary 
> >drive (I'm using IDE drives), create the partitions on the 2nd
> >drive, make the file system and then do a cp -a for each 
> >partition, remove the 1st hard drive, and rejumper the 2nd drive
> >as the IDE primary?
> >
> >What about the /etc/dev directory - isn't that special and require
> >special processing for moving it to another drive?
> 
> ------------------------------------"Never tell me the odds!"---
> Ray Olszewski                                        -- Han Solo
> 762 Garland Drive
> Palo Alto, CA  94303-3603
> 650.328.4219 voice                                    [EMAIL PROTECTED]        
> ----------------------------------------------------------------
> 


-- 
Regards Richard.
[EMAIL PROTECTED]

Reply via email to