kern/149523: [geom] label tasting hangs during boot

Bengt Ahlgren bengta at sics.se
Wed Aug 11 12:00:19 UTC 2010


>Number:         149523
>Category:       kern
>Synopsis:       [geom] label tasting hangs during boot
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 11 12:00:18 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Bengt Ahlgren
>Release:        8.1-RELEASE
>Organization:
>Environment:
N/A (can't boot install dvd)
>Description:
When trying to install 8.1-RELEASE using the dvd install media,
the boot hangs when geom label is tasting the disk. See this
screenshot when booting with kern.geom.label.debug=2 and
kern.geom.debugflags=7:

http://www.sics.se/~bengta/FBSD/IMG_1703.JPG

The dmesg from a 7.3-REL boot which works fine is attached.

The disk contains a factory-installed Windows XP and a recovery
partition (which I intend to wipe out).  The mbr partitioning looks
like this:

******* Working on device /dev/ad0 *******
parameters extracted from in-core disklabel are:
cylinders=77520 heads=16 sectors/track=63 (1008 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=77520 heads=16 sectors/track=63 (1008 blks/cyl)

Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 12 (0x0c),(DOS or Windows 95 with 32 bit FAT (LBA))
    start 63, size 69536817 (33953 Meg), flag 80 (active)
        beg: cyl 0/ head 1/ sector 1;
        end: cyl 1023/ head 239/ sector 63
The data for partition 2 is:
sysid 18 (0x12),(Compaq diagnostics)
    start 69536880, size 8603280 (4200 Meg), flag 0
        beg: cyl 1023/ head 0/ sector 1;
        end: cyl 1023/ head 239/ sector 63
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
<UNUSED>

>How-To-Repeat:
Just boot the install media with this disk.
>Fix:
I guess that wiping the mbr will fix this, but I will wait with
doing that for further debugging.  Is there anything more I can
do in order to find the bug?  It is possible to get a crash dump?

Patch attached with submission follows:

Copyright (c) 1992-2010 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 7.3-RELEASE #0: Sun Mar 21 06:15:01 UTC 2010
    root at walker.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) M processor 1200MHz (1196.12-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x695  Stepping = 5
  Features=0xa7e1fbbf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,DTS,ACPI,MMX,FXSR,SSE,SSE2,TM,PBE>
  Features2=0x180<EST,TM2>
real memory  = 527302656 (502 MB)
avail memory = 497786880 (474 MB)
ACPI APIC Table: <IBM    TP-1U   >
ACPI Warning (tbfadt-0505): Optional field "Gpe1Block" has zero address or length:        0    102C/0 [20070320]
ioapic0: Changing APIC ID to 1
ioapic0 <Version 2.0> irqs 0-23 on motherboard
kbd1 at kbdmux0
acpi0: <IBM TP-1U> on motherboard
acpi0: [ITHREAD]
acpi_ec0: <Embedded Controller: GPE 0x1c, ECDT> port 0x62,0x66 on acpi0
acpi0: Power Button (fixed)
acpi0: reservation of 0, a0000 (3) failed
acpi0: reservation of 100000, 1ee0000 (3) failed
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0
acpi_lid0: <Control Method Lid Switch> on acpi0
acpi_button0: <Sleep Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pci0: <base peripheral> at device 0.1 (no driver attached)
pci0: <base peripheral> at device 0.3 (no driver attached)
vgapci0: <VGA-compatible display> port 0x1800-0x1807 mem 0xe0000000-0xe7ffffff,0xd0000000-0xd007ffff irq 16 at device 2.0 on pci0
agp0: <Intel 82855GME (855GME GMCH) SVGA controller> on vgapci0
agp0: detected 8060k stolen memory
agp0: aperture size is 128M
vgapci1: <VGA-compatible display> mem 0xe8000000-0xefffffff,0xd0080000-0xd00fffff at device 2.1 on pci0
uhci0: <Intel 82801DB (ICH4) USB controller USB-A> port 0x1820-0x183f irq 16 at device 29.0 on pci0
uhci0: [GIANT-LOCKED]
uhci0: [ITHREAD]
usb0: <Intel 82801DB (ICH4) USB controller USB-A> on uhci0
usb0: USB revision 1.0
uhub0: <Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb0
uhub0: 2 ports with 2 removable, self powered
uhci1: <Intel 82801DB (ICH4) USB controller USB-B> port 0x1840-0x185f irq 19 at device 29.1 on pci0
uhci1: [GIANT-LOCKED]
uhci1: [ITHREAD]
usb1: <Intel 82801DB (ICH4) USB controller USB-B> on uhci1
usb1: USB revision 1.0
uhub1: <Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb1
uhub1: 2 ports with 2 removable, self powered
uhci2: <Intel 82801DB (ICH4) USB controller USB-C> port 0x1860-0x187f irq 18 at device 29.2 on pci0
uhci2: [GIANT-LOCKED]
uhci2: [ITHREAD]
usb2: <Intel 82801DB (ICH4) USB controller USB-C> on uhci2
usb2: USB revision 1.0
uhub2: <Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb2
uhub2: 2 ports with 2 removable, self powered
ehci0: <Intel 82801DB/L/M (ICH4) USB 2.0 controller> mem 0xd0100000-0xd01003ff irq 23 at device 29.7 on pci0
ehci0: [GIANT-LOCKED]
ehci0: [ITHREAD]
usb3: EHCI version 1.0
usb3: companion controllers, 2 ports each: usb0 usb1 usb2
usb3: <Intel 82801DB/L/M (ICH4) USB 2.0 controller> on ehci0
usb3: USB revision 2.0
uhub3: <Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1> on usb3
uhub3: 6 ports with 6 removable, self powered
umass0: <IBM CDRW/DVD, class 0/0, rev 2.00/11.00, addr 2> on uhub3
pcib1: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci2: <ACPI PCI bus> on pcib1
cbb0: <RF5C476 PCI-CardBus Bridge> mem 0xb0000000-0xb0000fff irq 16 at device 0.0 on pci2
cardbus0: <CardBus bus> on cbb0
pccard0: <16-bit PCCard bus> on cbb0
cbb0: [ITHREAD]
pci2: <base peripheral, SD host controller> at device 0.1 (no driver attached)
em0: <Intel(R) PRO/1000 Network Connection 6.9.6> port 0x7000-0x703f mem 0xd0200000-0xd021ffff irq 20 at device 1.0 on pci2
em0: [FILTER]
em0: Ethernet address: 00:0a:e4:25:c9:5c
pci2: <network> at device 2.0 (no driver attached)
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel ICH4 UDMA100 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x1810-0x181f at device 31.1 on pci0
ata0: <ATA channel 0> on atapci0
ata0: [ITHREAD]
ata1: <ATA channel 1> on atapci0
ata1: [ITHREAD]
pci0: <serial bus, SMBus> at device 31.3 (no driver attached)
pci0: <multimedia, audio> at device 31.5 (no driver attached)
pci0: <simple comms, generic modem> at device 31.6 (no driver attached)
acpi_tz0: <Thermal Zone> on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
atkbd0: [ITHREAD]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: [ITHREAD]
psm0: model Generic PS/2 mouse, device ID 0
sio0: configured irq 3 not in bitmap of probed irqs 0
sio0: port may not be enabled
battery0: <ACPI Control Method Battery> on acpi0
acpi_acad0: <AC Adapter> on acpi0
cpu0: <ACPI CPU> on acpi0
est0: <Enhanced SpeedStep Frequency Control> on cpu0
p4tcc0: <CPU Frequency Thermal Control> on cpu0
sio0: configured irq 3 not in bitmap of probed irqs 0
sio0: port may not be enabled
pmtimer0 on isa0
orm0: <ISA Option ROMs> at iomem 0xc0000-0xcc7ff,0xcc800-0xcd7ff,0xcd800-0xce7ff,0xdc000-0xdffff,0xe0000-0xeffff pnpid ORM0000 on isa0
ppc0: parallel port not found.
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0: port may not be enabled
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0: port may not be enabled
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 8250 or not responding
sio0: [FILTER]
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounter "TSC" frequency 1196122882 Hz quality 800
Timecounters tick every 1.000 msec
md0: Preloaded image </boot/mfsroot> 4423680 bytes at 0xc0e2208c
GEOM_LABEL[2]: Tasting md0.
GEOM_LABEL[1]: UFS1 file system detected on md0.
GEOM_LABEL[1]: Label for provider md0 is ufsid/4ba5bb23d8647b8d.
GEOM_LABEL[1]: UFS1 file system detected on md0.
GEOM_LABEL[1]: MSDOSFS: md0: FAT32 volume not valid.
GEOM_LABEL[2]: Tasting md0a.
GEOM_LABEL[1]: UFS1 file system detected on md0a.
GEOM_LABEL[1]: Label 4ba5bb23d8647b8d(ufsid/4ba5bb23d8647b8d) already exists (md0a).
GEOM_LABEL[1]: UFS1 file system detected on md0a.
GEOM_LABEL[1]: MSDOSFS: md0a: FAT32 volume not valid.
GEOM_LABEL[2]: Tasting md0c.
GEOM_LABEL[1]: UFS1 file system detected on md0c.
GEOM_LABEL[1]: Label 4ba5bb23d8647b8d(ufsid/4ba5bb23d8647b8d) already exists (md0c).
GEOM_LABEL[1]: UFS1 file system detected on md0c.
GEOM_LABEL[1]: MSDOSFS: md0c: FAT32 volume not valid.
GEOM_LABEL[2]: Tasting ufsid/4ba5bb23d8647b8d.
GEOM_LABEL[2]: Tasting ufsid/4ba5bb23d8647b8da.
GEOM_LABEL[1]: UFS1 file system detected on ufsid/4ba5bb23d8647b8da.
GEOM_LABEL[1]: Label 4ba5bb23d8647b8d(ufsid/4ba5bb23d8647b8d) already exists (ufsid/4ba5bb23d8647b8da).
GEOM_LABEL[1]: UFS1 file system detected on ufsid/4ba5bb23d8647b8da.
GEOM_LABEL[1]: MSDOSFS: ufsid/4ba5bb23d8647b8da: FAT32 volume not valid.
GEOM_LABEL[2]: Tasting ufsid/4ba5bb23d8647b8dc.
GEOM_LABEL[1]: UFS1 file system detected on ufsid/4ba5bb23d8647b8dc.
GEOM_LABEL[1]: Label 4ba5bb23d8647b8d(ufsid/4ba5bb23d8647b8d) already exists (ufsid/4ba5bb23d8647b8dc).
GEOM_LABEL[1]: UFS1 file system detected on ufsid/4ba5bb23d8647b8dc.
GEOM_LABEL[1]: MSDOSFS: ufsid/4ba5bb23d8647b8dc: FAT32 volume not valid.
ad0: 38154MB <HITACHI DK13FA-40B 00MCA0B4> at ata0-master UDMA100
GEOM_LABEL[2]: Tasting ad0.
GEOM_LABEL[1]: MSDOSFS: ad0: FAT12/16 volume not valid.
GEOM_LABEL[2]: Tasting ad0s1.
GEOM_LABEL[1]: MSDOSFS: ad0s1: FAT32 volume detected.
GEOM_LABEL[1]: Label for provider ad0s1 is msdosfs/IBM_PRELOAD.
GEOM_LABEL[2]: Tasting ad0s2.
GEOM_LABEL[1]: MSDOSFS: ad0s2: FAT32 volume detected.
GEOM_LABEL[1]: Label for provider ad0s2 is msdosfs/IBM_SERVICE.
GEOM_LABEL[2]: Tasting msdosfs/IBM_PRELOAD.
GEOM_LABEL[2]: Tasting msdosfs/IBM_SERVICE.
cd0 at umass-sim0 bus 0 target 0 lun 0
cd0: <IBM CD-RW/DVD-ROM H.2E> Removable CD-ROM SCSI-0 device 
cd0: 40.000MB/s transfers
cd0: cd present [1162560 x 2048 byte records]
GEOM_LABEL[2]: Tasting cd0.
GEOM_LABEL[1]: ISO9660 file system detected on cd0.
GEOM_LABEL[1]: Label for provider cd0 is iso9660/FreeBSD_Install.
GEOM_LABEL[1]: MSDOSFS: cd0: no FAT signature found.
GEOM_LABEL[2]: Tasting iso9660/FreeBSD_Install.
Trying to mount root from ufs:/dev/md0
GEOM_LABEL[1]: Label ufsid/4ba5bb23d8647b8d removed.
umass1: <vendor 0x0204 Flash Disk, class 0/0, rev 2.00/1.00, addr 3> on uhub3
da0 at umass-sim1 bus 1 target 0 lun 0
da0: < Flash Disk 5.00> Removable Direct Access SCSI-2 device 
da0: 40.000MB/s transfers
da0: 2010MB (4116480 512 byte sectors: 255H 63S/T 256C)
GEOM_LABEL[2]: Tasting da0.
GEOM_LABEL[1]: MSDOSFS: da0: FAT12/16 volume not valid.
GEOM_LABEL[2]: Tasting da0s1.
GEOM_LABEL[1]: MSDOSFS: da0s1: FAT12/FAT16 volume detected.
GEOM_LABEL[1]: Label for provider da0s1 is msdosfs/DISK_IMG.
GEOM_LABEL[2]: Tasting msdosfs/DISK_IMG.
GEOM_LABEL[2]: Tasting msdosfs/DISK_IMGs4.
GEOM_LABEL[1]: Label msdosfs/DISK_IMG removed.


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list