Subject: kern/33641: NetBSD i386 3.0 GENERIC_LAPTOP: umass cannot be mounted
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <rudihl@gmx.de>
List: netbsd-bugs
Date: 06/03/2006 14:00:01
>Number:         33641
>Category:       kern
>Synopsis:       NetBSD i386 3.0 GENERIC_LAPTOP: umass cannot be mounted
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jun 03 14:00:01 +0000 2006
>Originator:     Rudi
>Release:        NetBDS 3.0
>Organization:
-private-
>Environment:
Jun  2 20:46:38 ratte /netbsd: NetBSD 3.0 (GENERIC_LAPTOP) #0: Mon Dec 19 01:08:
52 UTC 2005
Jun  2 20:46:38 ratte /netbsd: builds@works.netbsd.org:/home/builds/ab/netbsd-3-
0-RELEASE/i386/200512182024Z-obj/home/builds/ab/netbsd-3-0-RELEASE/src/sys/arch/
i386/compile/GENERIC_LAPTOP

>Description:

NetBSD GENERIC_LAPTOP 3.0 as well as self-compiled kernel from
cvs ... -rnetbsd-3  src/sys cannot mount a usb-stick.

The device is recognized and attached as sd0 with umass over bulk-scsi but any attempt to mount the device i.e.
"mount -t msdos /dev/sd0a /mnt"  results in "device not configured"
BUT: fdisk sd0 prints the partition table!

I think i can rule out hardware problem:
- The memory-stick can be mounted without problem on an ibook which coincidently also runs NetBSD 3.0.
- A mouse attached to the same USB-port works flawlessly.

To ensure that the device exist I ran: cd /dev && ./MAKEDEV sd0
This made no difference.

Hardware is an IBM thinkpad R30:
thus it is:
....
Jun  2 20:46:38 ratte /netbsd: ohci0 at pci0 dev 20 function 0: Acer Labs M5237 USB 1.1 Host Controller (rev. 0x03)
Jun  2 20:46:38 ratte /netbsd: ohci0: interrupting at irq 10
Jun  2 20:46:38 ratte /netbsd: ohci0: OHCI version 1.0, legacy support
Jun  2 20:46:38 ratte /netbsd: usb0 at ohci0: USB revision 1.0
Jun  2 20:46:38 ratte /netbsd: uhub0 at usb0
Jun  2 20:46:38 ratte /netbsd: uhub0: Acer Labs OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
Jun  2 20:46:38 ratte /netbsd: uhub0: 4 ports with 4 removable, self powered

The weird thing is that the hardware is properly recognized, but Automounter fails as well as mounting manually as root:
....
Jun  2 20:47:32 ratte /netbsd: umass0 at uhub0 port 1 configuration 1 interface 
Jun  2 20:47:32 ratte /netbsd: 
Jun  2 20:47:32 ratte /netbsd: umass0: TTI-WDE U20 Mobile Disk, rev 2.00/2.00, addr 3
Jun  2 20:47:32 ratte /netbsd: umass0: using SCSI over Bulk-Only
Jun  2 20:47:32 ratte /netbsd: scsibus0 at umass0: 2 targets, 1 lun per target
Jun  2 20:47:32 ratte /netbsd: sd0 at scsibus0 target 0 lun 0: <USB 2.0, Mobile Disk, 2.00> disk removable
Jun  2 20:47:32 ratte /netbsd: sd0: fabricating a geometry
Jun  2 20:47:32 ratte /netbsd: sd0: 125 MB, 125 cyl, 64 head, 32 sec, 512 bytes/sect x 256000 sectors
Jun  2 20:47:50 ratte /netbsd: sd0: fabricating a geometry
Jun  2 20:47:50 ratte amd[403]: '/amd/ratte/media/sd': mount: Device not configured
Jun  2 20:47:50 ratte amd[403]: mount_pcfs: Device not configured
Jun  2 20:49:24 ratte /netbsd: umass0: at uhub0 port 1 (addr 3) disconnected
Jun  2 20:49:24 ratte /netbsd: sd0 detached
Jun  2 20:49:24 ratte /netbsd: scsibus0 detached
Jun  2 20:49:24 ratte /netbsd: umass0 detached



>How-To-Repeat:

see description.
>Fix: