Write HD To IMG File with DD

From Pro/Wiki

Download Knoppix if you do not have it.

1. Install the hard drive on your computer.

  • I installed mine as the slave on the Primary IDE port.

2. Insert the knoppix cd and boot from the CD. Does not suport SATA.

3. Open a terminal window

4. Type "sudo su"

5. Type "dmesg|grep hd"

  • And locate the device id of your hard drives
  • Examples :
    • hda1 = primary master = win98
    • hdb = primary slave = snap hd

6. Type "mount -t auto /dev/hda1 /mnt"

  • This should mount hda1 (your win98 hd) as /mnt
       (XP:  NTFS drives are mounted RO, do not attempt to mount an NTFS drive RW as 
             problems may arise with the file system.  Instead, ensure that you have a FAT
             partition available and use it instead.)

7. Type "ls /mnt"

  • You should have a directory listing of the files on windows hd c:\

Warning: If you DO NOT have a directory listing of your Windows HD, DO NOT CONTINUE. Verify that the dev ID that you used is correct. Repeat step 6,7,8

8. Type "dd if=/dev/hdb of=/mnt/filename bs=1024 count=25000"

  • This just takes a minute and it is done. (bs = blocksize, count=kb)

9. Type "ls /mnt"

  • You should have a directory listing where the image files was saved.

10. Now power down and re-install the drive back it in the snap.