Backing Up Your Boot Sector Keep a copy of your boot sector packed away for a rainy day [Discuss (1) | Link to this hack]
Comments on this hack
Showing messages 1 through 1 of 1.
This will not work with extended partitions
2003-08-01 11:00:09
anonymous2
[View]
Partition information for extended partitions is not stored in the first 512 bytes of the hard drive. It is located elsewhere. The 'sfdisk' utility should be used instead, to obtain the correct partitioning, and to restore it from a simple text file.
Example of a restore:
sfdisk /dev/hdb -uS << EOF
63,8193087,83
8193150,8193150,83,*
16386300,40965750,83
57352050,20804175,5
57352113,8193087,83
65545263,8193087,83
73738413,4417812,82
EOF
This shows the partitioning on a 40GB hard drive. The partition type of '5' indicates an extended partition.
I think this should be pointed out to the readers of this book.
Thanks, Jon Oman
joman@gogebic-sw.com