>I was thinking I could install the harddrive of machine two into the >case
>with machine one. Format and mount the second harddrive and then >just copy
>the whole file system down, but it seems to me this won't work. For >one
>thing, I don't think I would copy LILO and the MBR this way.


You will have to transfer the MBR manually.

dd if=/dev/hdb1 of=/dev/hdc1 bs=1k count=1

This will copy the first two sectors form disk 1 to disk 2. Do the rest by
mounting the filesystem and copie all files.

Using dd to do ALL the work won't work because of the way the EXT2
filesystem works. You can you disk of the same size.

>So, I wonder if the "dd" command will work. I checked the man >pages and
>some of my books, and I'm fairly certain I'm close, but I hate to use
>trial and error to find my mistakes for this. ;)

>fdisk                              # Interactively create /dev/hdb parts
>dd if=/dev/hda1 of=/dev/hdb1       # Linux Swap
>dd if=/dev/hda2 of=/dev/hdb2       # Linux

>or maybe just...

>dd if=/dev/hda of=/dev/hdb

>Is this an appropriate approach? Is there any point to copying the >Swap
partition?

No, just recreate it using mkswap.


        Igmar Palsenberg


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
         To unsubscribe: mail [EMAIL PROTECTED] with 
                       "unsubscribe" as the Subject.

Reply via email to