copying the partition

Mike Reinehr cmr
Sat Sep 10 11:22:18 PDT 2005


On Saturday 10 September 2005 09:07 am, Man-wai Chang wrote:
> Is it possible to copy the partition table using dd? Does the table have
> a fixed location in the harddisk?

Yes. The partition table is contained in the first block (block 0) of your 
hard drive, i.e., dd if=/dev/hda bs=512 count=1 of=~/block0

For some background you can read the man page for sfdisk.

Cheers!

cmr
-- 
Debian 'Sarge': Registered Linux User #241964

"More laws, less justice." -- Marcus Tullius Ciceroca, 42 BC


More information about the Linux-users mailing list