FreeBSD 8.0 installer fails to see existing MBR entries

After booting the 8.0-RELEASE-i386-bootonly.iso the fdisk part of the installer does not see the existing MBR partitions.

The fdisk output as produced by OpenBSD 4.6 current
Code:
# fdisk wd0

Disk: wd0       geometry: 10337/240/63 [156301488 Sectors]
Offset: 0       Signature: 0xAA55
            Starting         Ending         LBA Info:
 #: id      C   H   S -      C   H   S [       start:        size ]
-------------------------------------------------------------------------------
 0: 0C      0   1   1 -   1354 239  63 [          63:    20487537 ] Win95 FAT32L
*1: A6   1355   0   1 -   2699 239  63 [    20487600:    20336400 ] OpenBSD     
 2: 83   2700 210   1 -   2713 149  63 [    40837230:      192780 ] Linux files*
 3: 05   2713 150   1 -  10337  14  63 [    41030010:   115266375 ] Extended DOS
[snipped away the extended partition output]
The goal was to install in the FAT32 partition. Even after changing the partition type of the first MBR entry to FreeBSD, fdisk still fails to see any existing partition and tells me
Code:
Offset 0
Size(ST) 156301488
End 156301487
PType 12
Desc unused
Subtype 0
The partition table with the first entry set to FreeBSD
Code:
Disk: wd0       geometry: 10337/240/63 [156301488 Sectors]
Offset: 0       Signature: 0xAA55
            Starting         Ending         LBA Info:
 #: id      C   H   S -      C   H   S [       start:        size ]
-------------------------------------------------------------------------------
 0: A5      0   1   1 -   1354 239  63 [          63:    20487537 ] FreeBSD     
*1: A6   1355   0   1 -   2699 239  63 [    20487600:    20336400 ] OpenBSD     
 2: 83   2700 210   1 -   2713 149  63 [    40837230:      192780 ] Linux files*
 3: 05   2713 150   1 -  10337  14  63 [    41030010:   115266375 ] Extended DOS
fdisk still sees on big partition type 12 (0C) which is FAT32.

I am really puzzled.I answered nearly 6000 questions at the late bsdforums.org but I don't remember ever seeing something like this.
 
I installed a minimal version of FreeBSD 7.2, which booted ok. I could ssh in from an OBSD box.

Then I rebooted the system with the 8.0 boot-only.iso and it still failed to recognize the 7.2 ad0s1 slice. and the other slices/MBR partitions.

The 8.0 sysinstall fdisk still sees a single partition type 12 starting at sector 0 to 156301487.

The MBR fed to hexdump:
Code:
#  [b]dd if=/dev/ad0 bs=512 count=1 | hexdump -C[/b]
1+0 records in
1+0 records out
512 bytes transferred in 0.000244 secs (2099202 bytes/sec)
00000000  eb 48 90 d0 bc 00 7c fb  50 07 50 1f fc be 1b 7c  |.H....|.P.P....||
00000010  bf 1b 06 50 57 b9 e5 01  f3 a4 cb bd be 07 b1 04  |...PW...........|
00000020  38 6e 00 7c 09 75 13 83  c5 10 e2 f4 cd 18 8b f5  |8n.|.u..........|
00000030  83 c6 10 49 74 19 38 2c  74 f6 a0 b5 07 b4 03 02  |...It.8,t.......|
00000040  80 00 00 80 70 d8 71 02  00 08 fa 90 90 f6 c2 80  |....p.q.........|
00000050  75 02 b2 80 ea 59 7c 00  00 31 c0 8e d8 8e d0 bc  |u....Y|..1......|
00000060  00 20 fb a0 40 7c 3c ff  74 02 88 c2 52 be 7f 7d  |. ..@|<.t...R..}|
00000070  e8 34 01 f6 c2 80 74 54  b4 41 bb aa 55 cd 13 5a  |.4....tT.A..U..Z|
00000080  52 72 49 81 fb 55 aa 75  43 a0 41 7c 84 c0 75 05  |RrI..U.uC.A|..u.|
00000090  83 e1 01 74 37 66 8b 4c  10 be 05 7c c6 44 ff 01  |...t7f.L...|.D..|
000000a0  66 8b 1e 44 7c c7 04 10  00 c7 44 02 01 00 66 89  |f..D|.....D...f.|
000000b0  5c 08 c7 44 06 00 70 66  31 c0 89 44 04 66 89 44  |\..D..pf1..D.f.D|
000000c0  0c b4 42 cd 13 72 05 bb  00 70 eb 7d b4 08 cd 13  |..B..r...p.}....|
000000d0  73 0a f6 c2 80 0f 84 ea  00 e9 8d 00 be 05 7c c6  |s.............|.|
000000e0  44 ff 00 66 31 c0 88 f0  40 66 89 44 04 31 d2 88  |D..f1...@f.D.1..|
000000f0  ca c1 e2 02 88 e8 88 f4  40 89 44 08 31 c0 88 d0  |........@.D.1...|
00000100  c0 e8 02 66 89 04 66 a1  44 7c 66 31 d2 66 f7 34  |...f..f.D|f1.f.4|
00000110  88 54 0a 66 31 d2 66 f7  74 04 88 54 0b 89 44 0c  |.T.f1.f.t..T..D.|
00000120  3b 44 08 7d 3c 8a 54 0d  c0 e2 06 8a 4c 0a fe c1  |;D.}<.T.....L...|
00000130  08 d1 8a 6c 0c 5a 8a 74  0b bb 00 70 8e c3 31 db  |...l.Z.t...p..1.|
00000140  b8 01 02 cd 13 72 2a 8c  c3 8e 06 48 7c 60 1e b9  |.....r*....H|`..|
00000150  00 01 8e db 31 f6 31 ff  fc f3 a5 1f 61 ff 26 42  |....1.1.....a.&B|
00000160  7c be 85 7d e8 40 00 eb  0e be 8a 7d e8 38 00 eb  ||..}.@.....}.8..|
00000170  06 be 94 7d e8 30 00 be  99 7d e8 2a 00 eb fe 47  |...}.0...}.*...G|
00000180  52 55 42 20 00 47 65 6f  6d 00 48 61 72 64 20 44  |RUB .Geom.Hard D|
00000190  69 73 6b 00 52 65 61 64  00 20 45 72 72 6f 72 00  |isk.Read. Error.|
000001a0  bb 01 00 b4 0e cd 10 ac  3c 00 75 f4 c3 00 00 00  |........<.u.....|
000001b0  00 00 00 00 00 00 00 00  89 41 8a 41 00 00 80 01  |.........A.A....|
000001c0  01 00 [color=blue]a5[/color] ef ff ff 3f 00  00 00 71 9d 38 01 00 ff  |......?...q.8...|
000001d0  ff ff [color=blue]a6[/color] ef ff ff b0 9d  38 01 10 4f 36 01 00 ff  |........8..O6...|
000001e0  ff ff [color=blue]83[/color] 95 ff ff 6e 20  6f 02 0c f1 02 00 00 ff  |......n o.......|
000001f0  ff ff [color=blue]05[/color] 0e ff ff 7a 11  72 02 47 d3 de 06 55 aa  |......z.r.G...U.|
00000200
At 1c2 you see the A5 FreeBSD 7.2 partition info.
The OpenBSD A6 partition data at 1d2.
The Centos/Linux boot partition 83 at offset 1e3.
The extended DOS partition 05 used by Centos, is at offset 1f2.

MBR written to disk and analyzed by 'file'.
Code:
# [b]dd if=/dev/ad0 bs=512 count=1 >mbr-data[/b]
1+0 records in
1+0 records out
512 bytes transferred in 0.000239 secs (2143197 bytes/sec)

# [b]file mbr-data[/b] (formatted)

mbr-data: x86 boot sector;
partition 1: ID=0xa5, active, starthead 1, startsector 63, 20487537 sectors;
partition 2: ID=0xa6, starthead 255, startsector 20487600, 20336400 sectors;
partition 3: ID=0x83, starthead 255, startsector 40837230, 192780 sectors; 
partition 4: ID=0x5, starthead 255, startsector 41030010, 115266375 sectors
Looks healthy to me ;)
 

Attachments

  • mbr-data.tar
    2 KB · Views: 189
search the forums geom_bsd (ko)
or "loader prompt" too (I've posted a
possible fix three or so times already). Hope
that search turns up something useful.
.........
Also has been discussed *maybe* on the usenet
freebsd-questions list and more likely on
the usenet freebsd (current) list.
 
I will file a PR. When 7.2 sysinstall does see all MBR slices, and 8.0 not, that is clearly a bug, isn't it?
 
I'd say yes, most probably. It's really weird and I've never had this. And your MBR looks perfectly normal.
Have you tried without sysinstall, like using a livefs disk and doing a # fdisk /dev/ad0?
 
Back
Top