Quote:
Originally Posted by pixellany
Main partition table (for the first hard disk):
dd if=/dev/sda of=PT.bak bs=1 skip=446 count=64
Extended and logical (if extended is sda4):
dd if=/dev/sda4 of=PT_ext.bak bs=1 skip=446 count=64
dd if=/dev/sda5 of=PT_L1.bak bs=1 skip=446 count=64
dd if=/dev/sda6 of=PT_L2.bak bs=1 skip=446 count=64
|
The partition table in each of the EBRs (Extended Boot Records) is not found at the beginning of the logical partition, so the commands above will not quite work. The EBRs are generally located 63 sectors before the start of the logical partitions, but that is not a hard rule, and there are many exceptions depending on how the extended partition is set up (including whether the logical partitions are in physical order or not). The bottom line is a MS-DOS partition table uses a 4 byte LBA word for the sector position of the partitions, so that means you are limited to a drive size of 2 TB:
Code:
4 bytes = 32 bits = 2^32 sectors = 4,294,967,296 sectors * (512 bytes/sector) = 2 TB
So if the drive is larger than 2 TB, one should not be using a standard MS-DOS partition table to begin with; you would have to use GPT or some other format that supports larger drives.