Skip to contentSkip to conversation

Strange offset with file system parition

parisc-linux Bruno Vidal 1 participant 1 message Oct 18, 2002

lore
Share & tools
lore
#0 lore raw

Hi
I've succeded to produce my first dump using IODC. I've retrieve it, but I had some difficulties with ms-dos parition. I'm using "gendisk_head" to retrieve start/end of a parition. For my sda1 it find 32768. So I'm writing at start+PAGE_SIZE -> in my case it should be 0x8000 + 0x1000 And When I look by using
dd if=/dev/sda skip=9 bs=4096 count=1 | hexdump It's fine, I'm on the right place.

But when doing:
dd if=/dev/sda1 skip=1 bs=4096 count=1 | hexdump -> I'm not good ?????
There is a difference of 0x600:

hexdump /tmp/sda1.bin | more
0000000 0000 0000 0000 0000 0000 0000 0000 0000 *
0001600 a819 0173 618f 23ed 0000 0005 0000 0778 0001610 0000 0008 0000 1000 0000 0000 0004 0000

-> I found my magic number 0x600 to fare.

But

# hexdump /tmp/sda.bin | more
.
.
0009000 a819 0173 618f 23ed 0000 0005 0000 0778

-> that okay !!!!!!!

So my question: where this difference come from ?

Thanks.

Signature · 3 lines
	Vidal Bruno, (770-4271)
        SSD-HA Team, HP-UX & LINUX Support
	[email protected]

begin:vcard
n:Bruno;VIDAL
tel;fax:01-69-82-60-14
tel;work:01-69-29-42-71
x-mozilla-html:TRUE
url:www.france.hp.com
org:Solution Center
version:2.1
email;internet:[email protected]
title:Expert Logiciel Environnement Haute Disponibilité
adr;quoted-printable:;;HP France=0D=0A;Z.A de Courtaboeuf;1 Av. du Canada;91947 Les Ulis cedex;France x-mozilla-cpt:;26208
fn:VIDAL Bruno
end:vcard