Cloning drives for new installation

Discussion in 'Installation/Configuration' started by anw, Jan 18, 2009.

  1. anw

    anw New Member

    I just recently had a hard disk go out and went and got a brand new IDE drive to replace it. In the process of doing this, I discovered that my motherboard has a built-in SATA interface, so now, a couple of months later, I've about decided to go get a SATA drive and move my almost-new IDE drive to a secondary drive. My question:

    My installation is up and running perfectly. Is doing this simply a matter of booting off the IDE drive, then executing a command like:
    Code:
    dd if=/dev/hda bs=1M of=/dev/sda
    
    then booting off the SATA drive? Do I have to worry about drive geometries and such (I know I used to, but I'm laboring under the impression modern drives have made all that obsolete)?

    Of course, I feel almost bad asking the question! After all, this is getting pretty close to violating the first rule of computer technology: "if it works, don't fix it"; however, after I'm done, I may want to rearrange some partitions and such, but with two cloned disks that ought to be straightforward.

    Is it that simple?

    TIA!
     
  2. falko

    falko Super Moderator Howtoforge Staff

    Yes. This article has more details: http://www.rajeevnet.com/hacks_hints/os_clone/os_cloning.html
     
  3. chipsafts

    chipsafts New Member

  4. falko

    falko Super Moderator Howtoforge Staff

    Oh, he's using different drives - must have overread that... :eek:

    Good question...
     
  5. anw

    anw New Member

    I thought modern drives made the true, underlying geometry almost irrevelant?
     
  6. chipsafts

    chipsafts New Member

    :) Anyone willing to volunteer their hard drives and system to find out ? :)
     
  7. sjau

    sjau Local Meanie Moderator

    Well, the other day I cloned some IDE drives to external USB drives. Not sure if the external ones were sata or ide... despite the external ones being also much larger it just worked perfectly.
     
  8. anw

    anw New Member

    sjau-

    Did you use dd like I suggested in my first post?
     
  9. anw

    anw New Member

    Also, any ideas on the ramifications of using logical volumes? Would your of argument to dd just be /dev/mapper/<lv name>?
     
  10. sjau

    sjau Local Meanie Moderator

    I did clone the drives

    Code:
    sudo dd if=/dev/sda of=/dev/sdb
    
     

Share This Page