Tuesday, March 06, 2007

Extracting the first 512 Bytes of the boot sector

dd if=[source] bs=512 count=1 of=[destination]

Example, I extracted the boot sector of Windows 2000. It was mounted on /dev/hda1 and save the boot sector on file named w2k.bs.

dd if=/dev/hda1 bs=512 count=1 of=w2k.bs

No comments: