Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 97643 - USB devices not mountable
Summary: USB devices not mountable
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-01 12:28 UTC by Timo Nentwig
Modified: 2005-07-04 15:29 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Timo Nentwig 2005-07-01 12:28:31 UTC
iPod: 
 
Jun  2 19:53:48 notebook usb 1-3: new high speed USB device using ehci_hcd and  
address 2  
Jun  2 19:53:48 notebook scsi0 : SCSI emulation for USB Mass Storage devices  
Jun  2 19:53:48 notebook usb-storage: device found at 2  
Jun  2 19:53:48 notebook usb-storage: waiting for device to settle before  
scanning  
Jun  2 19:53:53 notebook Vendor: Apple     Model: iPod              Rev: 1.62  
Jun  2 19:53:53 notebook Type:   Direct-Access                      ANSI SCSI  
revision: 00  
Jun  2 19:53:53 notebook SCSI device sda: 78126047 512-byte hdwr sectors  
(40001 MB)  
Jun  2 19:53:53 notebook sda: assuming Write Enabled  
Jun  2 19:53:53 notebook sda: assuming drive cache: write through  
Jun  2 19:53:53 notebook SCSI device sda: 78126047 512-byte hdwr sectors  
(40001 MB)  
Jun  2 19:53:53 notebook sda: assuming Write Enabled  
Jun  2 19:53:53 notebook sda: assuming drive cache: write through  
Jun  2 19:53:53 notebook sda: sda1 sda2  
Jun  2 19:53:53 notebook Attached scsi removable disk sda at scsi0, channel 0,  
id 0, lun 0  
Jun  2 19:53:53 notebook Attached scsi generic sg0 at scsi0, channel 0, id 0,  
lun 0,  type 0  
Jun  2 19:53:53 notebook usb-storage: device scan complete  
Jun  2 19:53:54 notebook scsi.agent[11230]: disk  
at /devices/pci0000:00/0000:00:1d.7/usb1/1-3/1-3:1.0/host0/target0:0:0/0:0:0:0  
Jun  2 19:54:10 notebook login(pam_unix)[11000]: session opened for user root  
by (uid=0)  
Jun  2 19:55:03 notebook FAT: invalid media value (0x2f)  
Jun  2 19:55:03 notebook VFS: Can't find a valid FAT filesystem on dev sda1.  
Jun  2 19:55:07 notebook FAT: invalid media value (0x00)  
Jun  2 19:55:07 notebook VFS: Can't find a valid FAT filesystem on dev sda.  
Jun  2 19:55:30 notebook usb 1-3: USB disconnect, address 2  
  
 
USB stick: 
 
Jun  5 17:02:21 notebook usb 1-2: new high speed USB device using ehci_hcd and 
address 2 
Jun  5 17:02:21 notebook scsi0 : SCSI emulation for USB Mass Storage devices 
Jun  5 17:02:21 notebook usb-storage: device found at 2 
Jun  5 17:02:21 notebook usb-storage: waiting for device to settle before 
scanning 
Jun  5 17:02:26 notebook Vendor:           Model: USB DRIVE         Rev: 1.13 
Jun  5 17:02:26 notebook Type:   Direct-Access                      ANSI SCSI 
revision: 00 
Jun  5 17:02:26 notebook SCSI device sda: 506880 512-byte hdwr sectors (260 
MB) 
Jun  5 17:02:26 notebook sda: assuming Write Enabled 
Jun  5 17:02:26 notebook sda: assuming drive cache: write through 
Jun  5 17:02:26 notebook SCSI device sda: 506880 512-byte hdwr sectors (260 
MB) 
Jun  5 17:02:26 notebook sda: assuming Write Enabled 
Jun  5 17:02:26 notebook sda: assuming drive cache: write through 
Jun  5 17:02:26 notebook sda: sda1 
Jun  5 17:02:26 notebook Attached scsi removable disk sda at scsi0, channel 0, 
id 0, lun 0 
Jun  5 17:02:26 notebook Attached scsi generic sg0 at scsi0, channel 0, id 0, 
lun 0,  type 0 
Jun  5 17:02:26 notebook usb-storage: device scan complete 
Jun  5 17:02:28 notebook scsi.agent[15383]: disk 
at /devices/pci0000:00/0000:00:1d.7/usb1/1-2/1-2:1.0/host0/target0:0:0/0:0:0:0 
Jun  5 17:03:30 notebook usb 1-2: USB disconnect, address 2 
 

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-07-01 13:01:28 UTC
> Jun  2 19:55:03 notebook VFS: Can't find a valid FAT filesystem on dev sda1.  
> Jun  2 19:55:07 notebook VFS: Can't find a valid FAT filesystem on dev sda.  

You won't have much luck when mounting devices with invalid filesystem. I can't
see any errors about the USB stick.

Also, emerge --info missing, so we don't know which kernel are you using, udev
version missing as well.

Reopen once you've posted the needed information. 
Comment 2 Timo Nentwig 2005-07-01 13:06:40 UTC
The file system is not invalid, the stick as well as the iPod work perfectly  
under Windows XP and always have.  
  
udev-056  
  
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130, 
glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r11 i686) 
================================================================= 
System uname: 2.6.11-gentoo-r11 i686 Intel(R) Pentium(R) M processor 1.60GHz 
Gentoo Base System version 1.6.12 
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Apr 30 2005, 16:24:40)] 
dev-lang/python:     2.3.5 
sys-apps/sandbox:    [Not Present] 
sys-devel/autoconf:  2.59-r6, 2.13 
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5 
sys-devel/binutils:  2.15.92.0.2-r10 
sys-devel/libtool:   1.5.16 
virtual/os-headers:  2.6.8.1-r2 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer -funroll-loops -mmmx 
-msse -msse2 -mfpmath=sse" 
CHOST="i686-pc-linux-gnu" 
CONFIG_PROTECT="/usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/lib/X11/xkb /usr/share/config" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer -funroll-loops -mmmx 
-msse -msse2 -mfpmath=sse" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict" 
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" 
USE="x86 X aac acpi alsa apm arts avi berkdb bitmap-fonts cdr crypt cups curl 
dvd emboss encode esd fam foomaticdb fortran gdbm gif gpm gtk gtk2 icc icc-pgo 
ieee1394 imagemagick imlib ipv6 java jpeg kde libg++ libwww mad mikmod mmx 
motif mp3 mpeg ncurses nls nptl nptlonly ogg oggvorbis opengl oss pam pdflib 
perl png python qt quicktime readline samba sdl spell sse ssl svga tcltk tcpd 
threads tiff truetype truetype-fonts type1-fonts unicode vorbis wifi xine xml2 
xmms xv zlib userland_GNU kernel_linux elibc_glibc" 
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS 
 
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2005-07-01 13:10:08 UTC
(In reply to comment #2)
> The file system is not invalid, the stick as well as the iPod work perfectly  
> under Windows XP and always have.  

That's not really a proof of filesystem consistency; I know very well myself.
Comment 4 Greg Kroah-Hartman (RETIRED) gentoo-dev 2005-07-01 19:56:43 UTC
How are you trying to mount the device?  What exactly did you type to mount it?

Have you mounted the devices previously?

Do you have the proper filesystem modules loaded?
Comment 5 Timo Nentwig 2005-07-03 08:18:24 UTC
The USB stick is new and hence did not work before. Well, I just took a shot 
just now and am somewhat confused: 
 
I have the same logs on my SuSE 9.3 machine. However I was able to format it 
with VFAT, manually (opposed to subfs) it and write onto the stick. When I 
re-plugged in the stick I still had the same logs. When I plugged the stick in 
my gentoo notebook I also got the logs but were unable to mount the stick. I 
formatted it with ext3 but was still unable to mount it. ??? 
 
Regarding the iPod: yes, this one worked before. Currently I do not even see 
loggings when I plug it (?) and this applies to both of my machines so this is 
propably a kernel rather than a distribution bug. 
Comment 6 Greg Kroah-Hartman (RETIRED) gentoo-dev 2005-07-03 13:12:00 UTC
You did not answer my questions, please do.

Also, can you enable CONFIG_USB_STORAGE_DEBUG and attach the logs for when
you try to mount the device?
Comment 7 Timo Nentwig 2005-07-04 10:42:22 UTC
- the file system driver are built-in 
- mount /dev/sda1 /mnt, mount -t vfat /dev/sda1 /mnt 
 
Comment 8 Timo Nentwig 2005-07-04 12:44:19 UTC
Also, please note that I get this before mounting/doing anything, just  
plugging the device. I once had very similar logs for my iPod on SuSE 9.2 and  
this actually *was* a bug that was fixed after a while. This is the USB stick, 
for the iPod I don't get any logs at all:  
  
Jul  4 21:42:24 notebook usb 1-2: new high speed USB device using ehci_hcd and  
address 3  
Jul  4 21:42:24 notebook scsi0 : SCSI emulation for USB Mass Storage devices  
Jul  4 21:42:24 notebook usb-storage: device found at 3  
Jul  4 21:42:24 notebook usb-storage: waiting for device to settle before  
scanning  
Jul  4 21:42:29 notebook Vendor: LG        Model: USB DRIVE         Rev: 2.00  
Jul  4 21:42:29 notebook Type:   Direct-Access                      ANSI SCSI  
revision: 02  
Jul  4 21:42:29 notebook sda: Unit Not Ready, sense:  
Jul  4 21:42:29 notebook : Current: sense key=0x6  
Jul  4 21:42:29 notebook ASC=0x28 ASCQ=0x0  
Jul  4 21:42:29 notebook sda : READ CAPACITY failed.  
Jul  4 21:42:29 notebook sda : status=1, message=00, host=0, driver=08  
Jul  4 21:42:29 notebook sd: Current: sense key=0x6  
Jul  4 21:42:29 notebook ASC=0x28 ASCQ=0x0  
Jul  4 21:42:29 notebook sda: assuming Write Enabled  
Jul  4 21:42:29 notebook sda: assuming drive cache: write through  
Jul  4 21:42:29 notebook sda: Unit Not Ready, sense:  
Jul  4 21:42:29 notebook : Current: sense key=0x6  
Jul  4 21:42:29 notebook ASC=0x28 ASCQ=0x0  
Jul  4 21:42:29 notebook sda : READ CAPACITY failed.  
Jul  4 21:42:29 notebook sda : status=1, message=00, host=0, driver=08  
Jul  4 21:42:29 notebook sd: Current: sense key=0x6  
Jul  4 21:42:29 notebook ASC=0x28 ASCQ=0x0  
Jul  4 21:42:29 notebook sda: assuming Write Enabled  
Jul  4 21:42:29 notebook sda: assuming drive cache: write through  
Jul  4 21:42:29 notebook sda: Unit Not Ready, sense:  
Jul  4 21:42:29 notebook : Current: sense key=0x6  
Jul  4 21:42:29 notebook ASC=0x28 ASCQ=0x0  
Jul  4 21:42:29 notebook sda : READ CAPACITY failed.  
Jul  4 21:42:29 notebook sda : status=1, message=00, host=0, driver=08  
Jul  4 21:42:29 notebook sd: Current: sense key=0x6  
Jul  4 21:42:29 notebook ASC=0x28 ASCQ=0x0  
Jul  4 21:42:29 notebook sda: assuming Write Enabled  
Jul  4 21:42:29 notebook sda: assuming drive cache: write through  
Jul  4 21:42:29 notebook sda:end_request: I/O error, dev sda, sector 0  
Jul  4 21:42:29 notebook Buffer I/O error on device sda, logical block 0  
Jul  4 21:42:29 notebook Buffer I/O error on device sda, logical block 0  
Jul  4 21:42:29 notebook unable to read partition table  
Jul  4 21:42:29 notebook Attached scsi removable disk sda at scsi0, channel 0,  
id 0, lun 0  
Jul  4 21:42:29 notebook Attached scsi generic sg0 at scsi0, channel 0, id 0,  
lun 0,  type 0  
Jul  4 21:42:29 notebook usb-storage: device scan complete  
Jul  4 21:42:29 notebook scsi.agent[20149]: disk  
at /devices/pci0000:00/0000:00:1d.7/usb1/1-2/1-2:1.0/host0/target0:0:0/0:0:0:0  
  
  
  
  
  
  
Comment 9 Greg Kroah-Hartman (RETIRED) gentoo-dev 2005-07-04 15:29:29 UTC
Did you try just mounting "sda"?

Also, you can still enable the CONFIG_USB_STORAGE_DEBUG option, if you 
have stuff built into your kernel.

Either way, this is an upstream issue, please open a bug at bugzilla.kernel.org
for it and they will help you out there.