If I had a working installation of RedHat Linux on one machine and an
identical machine, except the harddrive on the second machine was
completely blank, is there a good way to duplicate the harddrive on the
first machine?

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.

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? Did this copy the MBR? If not, how do I do that?


Bruce Tong
Systems Programmer
Electronic Vision / FITNE

mailto: [EMAIL PROTECTED]
http://www.ev.net/fitne


-- 
  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