Subject: Re: Booting an extended partition using NetBSD
To: None <port-i386@netbsd.org>
From: Rakhesh Sasidharan <rakheshster@gmail.com>
List: port-i386
Date: 06/03/2006 20:06:40
> Can you send the output of
> fdisk -vvv wd0
Disk: /dev/rwd0d
NetBSD disklabel disk geometry:
cylinders: 77520, heads: 16, sectors/track: 63 (1008 sectors/cylinder)
total sectors: 78140160
BIOS disk geometry:
cylinders: 1023, heads: 255, sectors/track: 63 (16065 sectors/cylinder)
total sectors: 78140160
Partition table:
0: NTFS, OS/2 HPFS, QNX2 or Advanced UNIX (sysid 7)
bootmenu: ntldr
start 63, size 21430647 (10464 MB, Cyls 0/1/1-1334)
beg: cylinder 0, head 1, sector 1
end: cylinder 1023, head 254, sector 63
1: NetBSD (sysid 169)
bootmenu: netbsd
start 21430710, size 10249470 (5005 MB, Cyls 1334-1972)
beg: cylinder 1023, head 255, sector 63
end: cylinder 1023, head 254, sector 63
2: FreeBSD or 386BSD or old NetBSD (sysid 165)
bootmenu: freebsd
start 31680180, size 6136830 (2996 MB, Cyls 1972-2354), Active
beg: cylinder 1023, head 0, sector 1
end: cylinder 1023, head 254, sector 63
3: Ext. partition - LBA (sysid 15)
start 37817010, size 40307085 (19681 MB, Cyls 2354-4863)
beg: cylinder 1023, head 255, sector 63
end: cylinder 1023, head 254, sector 63
Extended partition table:
E0: Linux swap or Prime or Solaris (sysid 130)
start 37817073, size 524223 (256 MB, Cyls 2354/1/1-2386/162/1)
beg: cylinder 1023, head 1, sector 1
end: cylinder 1023, head 161, sector 63
link: Extended partition (sysid 5)
start 38341296, size 5668992 (2768 MB, Cyls 2386/162/1-2739/131/1)
beg: cylinder 32, head 162, sector 1
end: cylinder 385, head 130, sector 63
E1: Linux native (sysid 131)
bootmenu: bluewall
start 38341359, size 5668929 (2768 MB, Cyls 2386/163/1-2739/131/1)
beg: cylinder 1023, head 163, sector 1
end: cylinder 1023, head 130, sector 63
link: Extended partition (sysid 5)
start 44010288, size 14289597 (6977 MB, Cyls 2739/131/1-3629)
beg: cylinder 1023, head 131, sector 1
end: cylinder 1023, head 254, sector 63
E2: Linux native (sysid 131)
start 44010351, size 14289534 (6977 MB, Cyls 2739/132/1-3629)
beg: cylinder 1023, head 132, sector 1
end: cylinder 1023, head 254, sector 63
link: Extended partition (sysid 5)
start 58299885, size 19824210 (9680 MB, Cyls 3629-4863)
beg: cylinder 1023, head 0, sector 1
end: cylinder 1023, head 254, sector 63
E3: NetBSD (sysid 169)
start 58299948, size 19824147 (9680 MB, Cyls 3629/1/1-4863)
beg: cylinder 1023, head 1, sector 1
end: cylinder 1023, head 254, sector 63
link: <UNUSED> (sysid 0)
start 58299885, size 0
beg: cylinder 0, head 0, sector 0
end: cylinder 0, head 0, sector 0
Bootselector enabled, timeout 10 seconds.
> and that of
> dd if=/dev/rwd0d skip=<start> count=1 | hexdump -C
> for <start> being the start sector number of extended partition and
> each of the 'link' partitions.
E0 ------
00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
00000190 00 00 00 00 62 6c 75 65 77 61 6c 6c 00 00 00 00 |....bluewall....|
000001a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000001b0 00 00 00 00 00 00 00 00 00 00 00 00 e1 b5 00 a3 |................|
000001c0 c1 ff 83 82 ff ff 3f 00 00 00 41 80 56 00 00 83 |......?...A.V...|
000001d0 c1 ff 05 fe ff ff 7e 80 5e 00 bd 0a da 00 00 00 |......~.^.......|
000001e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............U.|
00000200
--------
E1 ------
00000000 17 f5 16 45 6e 7d df 70 e2 36 99 87 3a 14 da 4a |...En}.p.6..:..J|
00000010 8a a9 e2 1d 6d e7 f5 4e 87 95 87 ec b8 d6 cf 6a |....m..N.......j|
00000020 d5 8f 56 97 8d 65 5a 97 6d 6a 5a 0e b6 44 bd 8e |..V..eZ.mjZ..D..|
00000030 5f 8b 95 7e 47 31 eb 5c e9 62 5f 87 17 b8 12 bc |_..~G1.\.b_.....|
00000040 83 cf e8 54 00 49 24 a2 e8 55 30 89 18 31 68 5f |...T.I$..U0..1h_|
00000050 a3 32 31 a7 e1 0a 09 0c 53 44 de 36 9b 6e 9e 50 |.21.....SD.6.n.P|
00000060 c1 64 b1 8c 5c 45 ce 2e d5 7d 7b d2 ef 6b 19 4e |.d..\E...}{..k.N|
00000070 2c fe ba 70 7f 2b 94 ae ad e0 56 4c d5 47 6f 2e |,..p.+....VL.Go.|
00000080 ea 26 d8 f0 35 17 6f ed 9d 44 58 92 6c da 3a b6 |.&..5.o..DX.l.:.|
00000090 fe 16 89 51 89 9c 6d 66 9a ea 33 d8 9b 07 43 2a |...Q..mf..3...C*|
000000a0 8a 42 82 76 14 2b 8c ac 9a 48 db 61 1f 42 e8 2c |.B.v.+...H.a.B.,|
000000b0 4c d4 92 5a 6e d0 d4 fe 3b 24 bb 92 e8 11 33 e3 |L..Zn...;$....3.|
000000c0 9a 59 ac aa 00 b5 35 31 62 35 90 23 8a 48 66 9a |.Y....51b5.#.Hf.|
000000d0 61 ca 2b 18 74 65 9a 20 26 3a 74 91 42 86 56 2e |a.+.te. &:t.B.V.|
000000e0 f7 c2 d9 8c 19 66 2c 84 3c ad 1f c9 40 b3 52 09 |.....f,.<...@.R.|
000000f0 fa 55 40 46 5b 4e 90 74 c8 42 0d 05 00 42 1e 15 |.U@F[N.t.B...B..|
00000100 33 05 28 a7 f1 20 2c b0 ac 20 1c 08 ac c8 9d 08 |3.(.. ,.. ......|
00000110 94 40 e5 06 51 84 26 c3 2d 2d bb 0b 1b 43 f0 c5 |.@..Q.&.--...C..|
00000120 8a 07 a6 47 4b 8d 9a 11 40 5a 49 72 d2 e5 c5 81 |...GK...@ZIr....|
00000130 ea e1 ea 81 e3 8b 13 3b 0b f4 31 0f 8e f1 af 40 |.......;..1....@|
00000140 2e b6 f9 62 31 51 8d ec ff fb c0 04 2b 08 07 07 |...b1Q......+...|
00000150 77 d1 0b 6f 65 c2 af 4c fb 0d 61 ec af 56 c1 9d |w..oe..L..a..V..|
00000160 48 cd bd 93 02 94 33 ab b4 f7 ae bc 57 4a 43 85 |H.....3.....WJC.|
00000170 81 fa 59 7e f3 cc cf 57 83 f5 86 38 b6 c4 6a 35 |..Y~...W...8..j5|
00000180 1f 51 ed 1c d8 90 b5 9a b0 37 08 42 51 1e 3a 29 |.Q.......7.BQ.:)|
00000190 af 09 48 ad 0c 4b a3 65 3c 0f 7a 77 96 2a 76 9a |..H..K.e<.zw.*v.|
000001a0 7c 0c 0f d6 9d a8 42 de 8f bc f9 53 0f 7d 1d 8a ||.....B....S.}..|
000001b0 88 ec 82 1f 1b aa 39 5a b2 e4 98 ce 65 49 00 84 |......9Z....eI..|
000001c0 c1 ff 83 fe ff ff 3f 00 00 00 7e 0a da 00 00 00 |......?...~.....|
000001d0 c1 ff 05 fe ff ff 3b 8b 38 01 52 7e 2e 01 00 00 |......;.8.R~....|
000001e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............U.|
00000200
------
E2 -------
00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
000001b0 00 00 00 00 00 00 00 00 00 00 00 00 e1 b5 00 01 |................|
000001c0 c1 ff a9 fe ff ff 3f 00 00 00 13 7e 2e 01 00 00 |......?....~....|
000001d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............U.|
00000200
-------
E4 --------it says the link is unused
Hmm, the link entries seem incorrect eh? Hope u'll be able to figure
the problem.
Thanks,
Rakhesh
--
NetBSD/i386 3.0 | Bluewall GNU/ Linux 1.2.2 | Toshiba Satellite L10-102
http://search.gmane.org/?query=&group=gmane.os.netbsd.* (netbsd archives)
http://man.netbsd.org/ (netbsd manpages)