+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Apr 2002
    Location
    Georgia
    Posts
    137

    How do you use dd for copying smaller hard drive to larger hard drive?

     
    I know this is probably a very stupid question, but how do you use the UNIX/Linux dd command to copy the entire contents of one hard drive to another? The second hard drive is larger than the first, but I don't know how you specify when to stop or whatever. Really, ideally, I would just like the exact command-line which will copy the entirety of hard drive 1 to hard drive 2?

    Assume /dev/hd0 and /dev/hd1 are the hard drives.

    I mean, is it as simple as

    dd if=/dev/hd0 of=/dev/hd1 bs=512
    or what???

    Also, how do you figure out the appropriate blocksize number? I just see 512 a lot, so I figure that is good, but I really don't know how to figure out correct blocksize number or if it even matters.

    I don't care that the master boot record would end up all incorrect and yadda yadda on the larger disk, as that is fixable after the copy. I just want to know how to do this. ...thanks
    Jüš† ä €öm¶ù†Ê® §ÇÌÈñŒ mÅjÒ®

  2. #2
    Ultimate Member Germ's Avatar
    Join Date
    Oct 2001
    Location
    Lat:36.5N, Lon:95.5W
    Posts
    1,274
    bs is boot sector. resides in the first 512 bytes.

    dd if=/dev/hd0 bs=512 count=1 of=/dev/hd1
    How do you set this laser printer to stun??

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Recommended Sites: ResellerRatings Store Reviews