Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Mar 2003 20:13:40 -0500 (EST)
From:      gregp <gregp@noc.tht.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   kern/50229: FreeBSD detects laptop drive geometries incorrectly 
Message-ID:  <20030324011340.C407B2A693@noc.tht.net>

next in thread | raw e-mail | index | archive | help

>Number:         50229
>Category:       kern
>Synopsis:       FreeBSD detects laptop drive geometries incorrectly
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 23 17:20:17 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     gregp
>Release:        FreeBSD 5.0-RELEASE i386
>Organization:
>Environment:
Trying to install FreeBSD 5.0-RELEASE (or the latest 4.x RELEASE), uname unavailable.
Dell Inspiron 8000 Laptop, 40GB IBM Travelstar laptop harddrive.
	
>Description:
Upon booting from the install CD, FreeBSD misdetects the geometry of my hard disk, and reports gibbrish for it's name in the section where it prints its size/geometry.

When booting 5.0-RELEASE via boot -v, the following messages are visible:
[ copied by hand, and only relevant sections. more is available on request. ]

...
bios32: Found BIOS32 Service Directory header at 0xc00ffe80
bios32: Entry = 0xffe90 (c00ffe90) Rev = 0 Len = 1
pcibios: PCI BIOS entry at 0xf0000+0xf06c
pnpbios: Found PnP BIOS data at 0xc00fe2d0
pnpbios: Entry = f0000:e2f4 Rev = 1.0
pnpbios: Event flag at 4b4
Other BIOS signatures found:
...
atapci0: <Intel ICH2 ATA100 constroller> port=0xbfa0-0xbfaf at device 31.1 on pci0
ata0: iobase=0x01f0 altiobase=0x03f6 bmaddr=0xbfa0
ata0: mask=03 ostat0=50 ostat2=50
ata0-master: ATAPI 00 00
ata0-slave: ATAPI 14 eb
ata0: mask=03 stat0=50 stat1=00
ata0: master ATA 01a5
ata0: devices=09
ata0: at 0x1f0 irq14 on atapci0
...
ad0: DMA limited to UDMA33, non-ATA66 cable or device
ad0: success setting UDMA2 on Intel chip
GEOM: new disk ad0
ar: FreeBSD check1 failed
ad0: <high ascii symbols> ATA-5 disk at ata0-master
ad0: 692MB (1418256 sectors), 1407 C, 16 H, 63 S, 512 B
ad0: 16 secs/int, a depth queue, UDMA33
ad0: piomode=4 dmamode=2 udmamode=5 dmaflag=1
...
GEOM: Configure ad0s1 start 32256 length 29520497664 end 29520529919
GEOM: Configure ad0s2 start 29520529920 length 98703360 end 29619233279
GEOM: Configure ad0s3 start 29619233280 length 509967360 end 30129200640 length 9878561280 end 40007761919

There were other GEOM entries, but I realize I forgot to write them down.  They didn't seem to match with the stuff printed for ad0, so I'm not sure if that's valid.

The drive currently has Windows XP and RedHat Linux installed.  Kernel 2.4.18 (stock RedHat kernel, IIRC) boots fine, and installs fine without doing any damage.  Obviously, installing FreeBSD on this disk will result in some wonderful data loss, considering it mis-detects its vitals (I've tried before).

Another IBM Travelstar drive, 10GB in size experiences similar problems, sizes vary.  This problem applies to both 5.0 and the latest 4.x RELEASE.

As I said, RedHat installs fine (I was in a hurry to get *a* UNIX on the laptop, so I had to settle), so any information you want as to how it detects things, or how it sees the geometry is available on request.  

Finally, the disk itself put in a FreeBSD desktop box (running 4.x) is correctly probed, and I can mount various partitions on it without issue.  It appears to be a problem between my BIOS/laptop/controller and FreeBSD.
	
>How-To-Repeat:
Try to install FreeBSD on the laptop.
	
>Fix:
Not a clue.  I'm not versed enough in the kernel or ATA stuffs to figure it out.
	


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

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030324011340.C407B2A693>