Hi Rod,
if cp -a is the sames as cp -dpR (think so but man cp) then it's just like
that.
!BUT! This will only work if the partition sheme is the same.
e.g. on the old disk '/'=/dev/hda1 '/usr'=/dev/hda2...
then on the new drive it has to be the same. Otherwise you will have to
update your /etc/fstab file.
Another thing is that your second drive installed as first after the cp
will !NOT! boot.
To achive this best thing would be to create a boot floppy, !before doing
anything else! for the right partition.
e.g if after cp the new root partition will be /dev/hda2, take a kernel
copy (zImage or vmlinuz,...), redev it to /dev/hda2 (redev zImage
/dev/hda?) and dd (dd if=zImage of=/dev/fd0) it to disk (formatted). After
the copying and hardware stuff, you should be able to boot your system with
this disk. Then change /etc/lilo.conf and do lilo.
Easiest way would be if you have a rescue system on bootable CD (like with
SUSE).
Then you just boot up with the CD mount your root device and do the new
lilo from the rescue system.
CU;
raven
At 15:42 23.03.99 , 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?
>
>Thanks
>-Rod
I am not a target market
__ .--. [EMAIL PROTECTED]
.-(__)/ \ members.tripod.com/raven_42
||' \/ ` \ \ DSS/DH: 0xE68FCB0A
| |: : \ \ \\ 2562 D476 EE30 6680 F357
|| ' ' \ \ \\ 5498 29F3 CF3F E68F CB0A
| //..\\ \\ MD5/RSA: 0x76F98FA5
----VV----VV---- B895 9596 3861 9421
| '/||\` 51D3 F0E7 89FC 1E01
'``