<br>
<div><span class="gmail_quote">2007/9/7, Jacques B. <<a href="mailto:jjrboucher@gmail.com">jjrboucher@gmail.com</a>>:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">><br>><br>> ... sorry, wrong typing; the corret block size is 466 and not 496. I<br>> apologize.
<br>><br>> --<br>> Alessandro Brezzi<br><br>Not quite.  446.  The first sector is 512 bytes.  The first 446 bytes<br>is the MBR.  The next 64 bytes is the partition record (4 X16 - hence<br>why you can only have 4 primary partitions) followed by the magic #
<br>\x55 \xaa.  446(MBR)+64(parition table)+2(magic number)=512.<br><br>You can view the partition table by doing the following as root<br>(assuming your primary hard drive is /dev/hda for this example).<br><br>dd if=/dev/hda bs=1 skip=446 count=64 |xxd
<br><br>This will give you the 4 partitions (16 bytes per line so one<br>partition per line).  The one that starts with \x80 is the bootable<br>partition.<br><br>Likewise if you only want to see the MBR then as root<br>dd if=/dev/hda bs=446 count=1 |xxd
<br><br>And the magic number \x55 \xaa<br>dd if=/dev/hda bs=1 skip=510 count=2 |xxd<br><br>Jacques B.</blockquote>
<div> </div>
<div>Ok, so this confirm I''ve to wait and think twice, for not to made invalid assertions ... You are correct: forgot to evaluate correctly bs / count and skip.</div>
<div>Another occasion for apologize. Sorry Mikkel and all.</div>
<div> </div>
<div>-- <br>Alessandro Brezzi<br> </div></div>