[linux-l] MBR
Steffen Dettmer
steffen at dett.de
Do Mai 23 10:49:07 CEST 2002
* Christian Dobrick wrote on Thu, May 23, 2002 at 07:46 +0200:
> Hallo,
> mir ist aufgefallen, dass man mit dd if=/dev/hda of=/mbr bs=512 count=1 den
> MBR sichern kann.
inkl. Partitionstabelle.
> So weit so gut, aber ich verstehe nicht, warum ich beim zurück schreiben des
> MBR nur 446 Bytes zählen darf, bzw. warum ich dann erst 512
> Bytes sichern soll.
> Kann mir das jemand erklären, oder weis wo das steht?
hab's im README von Lilo gefunden
(/usr/share/doc/packages/lilo/README):
The first 446 (0x1BE) bytes of the MBR are used by the loader
program. They are followed by the partition table, with a length
of 64 (0x40) bytes. The last two bytes contain a magic number
that is sometimes used to verify that a given sector really is a
boot sector.
sogar mit Bild:
+------------------------+
0x000 | |
| Program code |
| |
| |
|------------------------|
0x1BE | Partition table |
| |
|------------------------|
0x1FE | Magic number (0xAA55) |
+------------------------+
CooL. (0x200 = 512). Also rücksichert der Befehl nur den
Programmcode rück :)
oki,
Steffen
--
Dieses Schreiben wurde maschinell erstellt,
es trägt daher weder Unterschrift noch Siegel.
Mehr Informationen über die Mailingliste linux-l