Saturday 12 March 2011

Cloning a 500gig drive with DD

Find a live linux distro and open a shell/konsole.

Type hdparm -i /dev/sda(lowercase i) to get extended drive information where the  drive number is specified by sda.
sda is the first drive, sdb the second, sdc the third and so forth.

Alternatively use smartctl -i /dev/sda or sdb or whatever your device is called that you need to identify. This will give the serial number which is useful if both drives are identical.


Type dd if=/dev/* of=/dev/** bs=32256
* refers to the source drive that you wish to clone, sda in my case and ** refers to the destination or empty drive.

My entry was : dd if=/dev/sda of=/dev/sdb bs=32M bs refers to block size by the way, if you don't specify it DD will use 512 by default and will take a very long time indeed.
In my case it took just over 2 hours to clone a 500gig sata hard drive.

1 comment:

  1. So I got, mint 17 fully installed on my 16gig pen drive, with /root 15gig ext4 sdb1

    And /boot 500mb ext2 sdb5

    Anyone know how I can transfer the whole installation to my hard drive for example sda6 or sda7. Using dd commands? Is it possible?

    Won't do a fresh install invested to much time and effort into my current install!

    ReplyDelete