HAMMER hosed?
Bill Hacker
wbh at conducive.org
Fri Feb 13 12:38:57 PST 2009
Bill Hacker wrote:
Simon 'corecode' Schubert wrote:
Bill Hacker wrote:
Hi Simon, Thanks for the quick reply...
The install would have used whatever the default was as of the
DEVELOPMENT snapshot of just a few days ago.
DFLY was happy cooperating with the (at the time) DFLY, Slackware,
OpenBSD, NetBSD and each booted fine off the new DFLY bootloader.
FreeBSD 8- December snapshot was used to change the type of the second
slice, sub-partition it, then install itself to replace Linux.
Bad move, as along the way it screwed the hammerfs-bootable DFLY
somehow.
fdisk sees what was expected.
The other three OS'en still boot and run nomally.
Selecting DFLY (F1) returns 'invalid partition'
What I get with either disklabel or disklabel64 off the DFLY
Live/Install CD is:
'bad pack magic number'
Attempts to edit the label give:
'Operation not supported by device'
Now - IF I knew what bits or bytes to change and where, I'm happy to go
after it with a hex editor... or dd. or whatever.
But I had not made a disklabel copy, so ....
you could post the output of
dd if=/dev/adXXsYY count=4 | hd
for us to debug. Alternatively, you can try killing the disklabel with
dd if=/dev/zero of=/dev/adXXsYY count=4
and then re-creating it. it basically has to read:
a: * 0 HAMMER
b: $SWAPSIZE * swap
where swapsize is the value you entered in the installer. The default
value depends on your memory size and is
2*next_power_of_2(your_memory_in_MB) MB.
cheers
simon
I've gotten into disklabel -e mode with NetBSD.
Not going to change anything just yet, but rather write what it sees, do
the same with OpenBSD and FreeBSD (perhaps even a Linux).
Will post those as well as the dd output 'shortly'.
Thanks,
Bill
dd output heme'd to readable is attached, as it would word-wrap to
uselessness.
Other views below.
Thanks,
Bill
=========================================================================
NetBSD sees:
# /dev/rwd0d:
type: unknown
disk: Hitachi HTS5416
label:
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 232581
total sectors: 234441648
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
16 partitions:
# size offset fstype [fsize bsize cpg/sgs]
a: 8192016 188731620 4.2BSD 2048 16384 0 # (Cyl. 187233*- 195360*)
b: 2048256 196923636 swap # (Cyl. 195360*- 197392*)
c: 45703980 188731620 unused 0 0 # (Cyl. 187233*- 232574)
d:234441648 0 unused 0 0 # (Cyl. 0 - 232580)
e: 62910477 63 4.2BSD 0 0 0 # (Cyl. 0*- 62411*)
f: 62910540 62910540 Linux Ext2 0 0 # (Cyl. 62411*- 124822*)
g: 62910540 125821080 unknown # (Cyl. 124822*- 187233*)
h: 12288528 198971892 4.2BSD 2048 16384 0 # (Cyl. 197392*- 209583*)
i: 8192016 211260420 4.2BSD 2048 16384 0 # (Cyl. 209583*- 217710*)
j: 8192016 219452436 4.2BSD 2048 16384 0 # (Cyl. 217710*- 225837*)
k: 6791148 227644452 4.2BSD 2048 16384 0 # (Cyl. 225837*- 232574)
NOTES: The Linux Ext2 s/b type 165 / A5 FreeBSD, as it was so set then
FreeBSD installed and tested from it.
=========================================================================
OpenBSD sees (not much it has not put its own prints on.. but it boots)
# /dev/rwd0c:
type: ESDI
disk: ad0s3
label:
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 14593
total sectors: 234441648
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
8 partitions:
# size offset fstype [fsize bsize cpg]
a: 62910540 125821080 4.2BSD 2048 16384 1
c: 234441648 0 unused 0 0
============================================================================
DFLY won't read anything at all...
00000000: EB 3C 00 00 00 00 00 00 00 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 .<......................
00000018: 12 00 02 00 00 00 00 00 00 00 00 00 00 16 1F 66 6A 00 51 50 06 53 31 C0 ...............fj.QP.S1.
00000030: 88 F0 50 6A 10 89 E5 E8 C0 00 8D 66 10 CB FC 31 C9 8E C1 8E D9 8E D1 BC ..Pj.......f...1........
00000048: 00 7C 89 E6 BF 00 07 FE C5 F3 A5 BE EE 7D 80 FA 80 72 2C B6 01 E8 60 00 .|...........}...r,...`.
00000060: B9 01 00 BE AA 8E B6 01 80 7C 04 A5 75 07 E3 19 F6 04 80 75 14 83 C6 10 .........|..u......u....
00000078: FE C6 80 FE 05 72 E9 49 E3 E1 BE A2 7D EB 4B 31 D2 89 16 00 09 B6 10 E8 .....r.I....}.K1........
00000090: 2E 00 BB 00 90 8B 77 0A 01 DE BF 00 C0 B9 00 AE 29 F1 F3 A4 FA 49 74 14 ......w.........)....It.
000000A8: E4 64 A8 02 75 F7 B0 D1 E6 64 E4 64 A8 02 75 FA B0 DF E6 60 FB E9 50 13 .d..u....d.d..u....`..P.
000000C0: BB EC 8C 8B 44 08 8B 4C 0A 0E E8 5A FF 73 2A BE 9D 7D E8 1C 00 BE A7 7D ....D..L...Z.s*..}.....}
000000D8: E8 16 00 30 E4 CD 16 C7 06 72 04 34 12 EA 00 00 FF FF BB 07 00 B4 0E CD ...0.....r.4............
000000F0: 10 AC 84 C0 75 F4 B4 01 F9 C3 2E F6 06 B0 08 80 74 22 80 FA 80 72 1D BB ....u...........t"...r..
00000108: AA 55 52 B4 41 CD 13 5A 72 12 81 FB 55 AA 75 0C F6 C1 01 74 07 89 EE B4 .UR.A..Zr...U.u....t....
00000120: 42 CD 13 C3 52 B4 08 CD 13 88 F5 5A 72 CB 80 E1 3F 74 C3 FA 66 8B 46 08 B...R......Zr...?t..f.F.
00000138: 52 66 0F B6 D9 66 31 D2 66 F7 F3 88 EB 88 D5 43 30 D2 66 F7 F3 88 D7 5A Rf...f1.f......C0.f....Z
00000150: 66 3D FF 03 00 00 FB 77 9D 86 C4 C0 C8 02 08 E8 40 91 88 FE 28 E0 8A 66 f=.....w........ at ...(..f
00000168: 02 38 E0 72 02 B0 01 BF 05 00 C4 5E 04 50 B4 02 CD 13 5B 73 0A 4F 74 1C .8.r.......^.P....[s.Ot.
00000180: 30 E4 CD 13 93 EB EB 0F B6 C3 01 46 08 73 03 FF 46 0A D0 E3 00 5E 05 28 0..........F.s..F....^.(
00000198: 46 02 77 88 C3 52 65 61 64 00 42 6F 6F 74 00 20 65 72 72 6F 72 0D 0A 00 F.w..Read.Boot. error...
000001B0: 80 90 90 90 90 90 90 90 90 90 90 90 90 90 00 00 00 00 00 00 00 00 00 00 ........................
000001C8: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........................
000001E0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 01 00 A5 FE FF FF 00 00 ........................
000001F8: 00 00 50 C3 00 00 55 AA 57 45 56 82 05 00 00 00 61 64 30 73 31 00 00 00 ..P...U.WEV.....ad0s1...
00000210: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........................
00000228: 00 02 00 00 3F 00 00 00 FF 00 00 00 01 39 00 00 C1 3E 00 00 B0 4B F9 0D ....?........9...>...K..
00000240: 00 00 00 00 00 00 00 00 10 0E 01 00 00 00 00 00 00 00 00 00 00 00 00 00 ........................
00000258: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........................
00000270: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 57 45 56 82 ....................WEV.
00000288: A4 96 08 00 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ..... ..................
000002A0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 11 EF BF 03 ........................
000002B8: 3F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ?.......................
000002D0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........................
000002E8: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........................
00000300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 EB 0E 42 54 ......................BT
00000318: 58 01 02 80 F6 0F 80 06 00 20 00 00 FA 31 C0 8E D0 BC 00 18 8E C0 8E D8 X........ ...1..........
00000330: 66 6A 02 66 9D BF 00 5E B9 00 19 F3 AB BB 22 95 B9 10 00 BF 80 00 89 1D fj.f...^......".........
00000348: 47 47 AB 83 C3 04 E2 F6 BF 00 5E BE D2 95 AC 98 91 E3 1D AC 92 AD 93 AD GG........^.............
00000360: B6 08 D1 EB 73 0B 89 05 88 75 02 88 55 05 83 C0 04 8D 7D 08 E2 EC EB DE ....s....u..U.....}.....
00000378: C6 45 05 18 C6 45 08 10 C6 45 66 68 BB 20 28 E8 B8 00 0F 01 1E C6 95 0F .E...E...Efh. (.........
00000390: 01 16 C0 95 0F 20 C0 40 0F 22 C0 EA 8C 90 08 00 31 C9 B1 10 8E D1 B1 38 ..... . at ."......1......8
000003A8: 0F 00 D9 BA 00 A0 00 00 36 0F B7 05 13 04 00 00 C1 E0 0A 2D 00 10 00 00 ........6..........-....
000003C0: 29 D0 B1 33 51 50 68 02 02 00 00 6A 2B FF 35 0C 90 00 00 51 51 51 51 52 )..3QPh....j+.5....QQQQR
offset: 0x0 ( 0) char:
More information about the Users
mailing list