Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
udev & USB stick
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
fourhead
l33t
l33t


Joined: 03 Sep 2003
Posts: 875
Location: Cologne, Germany

PostPosted: Tue Mar 22, 2005 12:28 pm    Post subject: udev & USB stick Reply with quote

I have a SanDisk USB stick which is partitioned and has a VFAT on it. When I plug it in, I get this in dmesg:

ehci_hcd 0000:00:02.1: port 2 reset error -110
hub 1-0:1.0: hub_port_status failed (err = -32)
ehci_hcd 0000:00:02.1: port 2 reset error -110
hub 1-0:1.0: hub_port_status failed (err = -32)
usb 1-2: new high speed USB device using ehci_hcd and address 10
ehci_hcd 0000:00:02.1: port 2 reset error -110
hub 1-0:1.0: hub_port_status failed (err = -32)
scsi3 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 10
usb-storage: waiting for device to settle before scanning
Vendor: SanDisk Model: Cruzer Micro Rev: 2033
Type: Direct-Access ANSI SCSI revision: 00
SCSI device sdb: 1024000 512-byte hdwr sectors (524 MB)
sdb: assuming Write Enabled
sdb: assuming drive cache: write through
SCSI device sdb: 1024000 512-byte hdwr sectors (524 MB)
sdb: assuming Write Enabled
sdb: assuming drive cache: write through
sdb: sdb1
Attached scsi removable disk sdb at scsi3, channel 0, id 0, lun 0
usb-storage: device scan complete


I have a MSI NForce4 mobo, USB seems working since I have my mouse & keyboard on USB, but why these error messages? The device seems to be correctly recognized, but when I look into /dev there's no device sdb1!! I don't have any custom udev rules, and I have USB1, USB2, USB mass storage and SCSI disk support in my kernel. Any ideas?

Tom
Back to top
View user's profile Send private message
fourhead
l33t
l33t


Joined: 03 Sep 2003
Posts: 875
Location: Cologne, Germany

PostPosted: Tue Mar 22, 2005 12:36 pm    Post subject: Reply with quote

When I disbale EHCI (USB2) I get this in dmesg:

usb 1-2: new full speed USB device using ohci_hcd and address 4
scsi2 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 4
usb-storage: waiting for device to settle before scanning
Vendor: SanDisk Model: Cruzer Micro Rev: 2033
Type: Direct-Access ANSI SCSI revision: 00
SCSI device sdb: 1024000 512-byte hdwr sectors (524 MB)
sdb: assuming Write Enabled
sdb: assuming drive cache: write through
SCSI device sdb: 1024000 512-byte hdwr sectors (524 MB)
sdb: assuming Write Enabled
sdb: assuming drive cache: write through
sdb: sdb1
Attached scsi removable disk sdb at scsi2, channel 0, id 0, lun 0
usb-storage: device scan complete


The errors disappear, but there's still no device for the usb stick, although I'm told that there should be a device ... Are there any known USB problems on NForce4 boards?

Tom
Back to top
View user's profile Send private message
GalenHZ
n00b
n00b


Joined: 22 Mar 2005
Posts: 2

PostPosted: Tue Mar 22, 2005 2:34 pm    Post subject: Reply with quote

What kernel are you running? There's a known bug with nforce4 usb port enumeration in some versions of the 2.6 kernel--2.6.10, I think.
Back to top
View user's profile Send private message
Zyne
Guru
Guru


Joined: 08 Jun 2004
Posts: 334

PostPosted: Tue Mar 22, 2005 3:00 pm    Post subject: Reply with quote

I'm using 2.6.11-love2 on my asus A8N-SLI, and don't have any problems with my usb-stick.
There were issues with every 2.6.11-rc?, but they seem to be all solved now...

I have both ohci and ehci compiled as modules, and they're both loaded for me...
updating your kernel will probably fix your problem...
Back to top
View user's profile Send private message
dangertools
Apprentice
Apprentice


Joined: 29 Dec 2003
Posts: 278
Location: Saalfelden, Austria

PostPosted: Tue Mar 22, 2005 9:41 pm    Post subject: Reply with quote

i have similar problems with usb-massstorage devices. i am unable to mount a usb-stick i used for long time. udev reports the devicenode /dev/uba for the stick itself and /dev/uba1 for the partition on it. but i cannot mount it, mount gives an error that i should provide the filesystemtype, it's vfat but when i add the fs-option to mount ot fails. i have tried to repartition the stick quite a few times but without success. an other stick gave similar problems. i have atm just a cardreader, one of those 8in1 devices with 4 slots where every slot should get a device node, like uba, ubb .., as it does on a 32bit machine with same kernel. here i get just the following messages on dmesg:

Code:
Mar 22 22:22:49 baerbel usb 1-5: new high speed USB device using ehci_hcd and address 3
Mar 22 22:22:49 baerbel uba: device 3 capacity nsec 0 bsize 512
Mar 22 22:23:36 baerbel usb 1-5: USB disconnect, address 3
Mar 22 22:23:40 baerbel usb 1-5: new high speed USB device using ehci_hcd and address 4
Mar 22 22:23:40 baerbel uba: device 4 capacity nsec 0 bsize 512
Mar 22 22:23:52 baerbel usb 1-5: USB disconnect, address 4
Mar 22 22:23:55 baerbel ehci_hcd 0000:00:10.3: port 5 reset error -110
Mar 22 22:23:55 baerbel hub 1-0:1.0: hub_port_status failed (err = -32)
Mar 22 22:23:56 baerbel usb 1-5: new high speed USB device using ehci_hcd and address 5


Those messages where from inserting and removing the cardreader 3 times from the usb-port, as you can see the 3rd time threw an error and i never got 4 devices, one for each port as expected, the 32bit machine next to me has no problems with it and the usb-stick. the cardreader won't do anything when i insert a sd-card, on the other machine the led gets green and i have a device /dev/sdc1 then.

here some more infos:

kernel 2.6.11.4 (don't remember that something between 2.6.10 and 2.6.11 worked with mass-storage but i never had the time look at it)
udev version 054
machine is an acer aspire 1501 Lmi, other usb devices work as expected, i can use my scanner with it and my hid-devices work like a charm
acpi and apic is enabled, both are need to run the laptop
chipset is :
0000:00:10.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 80)
and
0000:00:10.3 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 82)
sure i have ehci and uhci enabled in kernel

feel free to ask for more infos, i hope i didn't forget something.

regards

georg schild
Back to top
View user's profile Send private message
fourhead
l33t
l33t


Joined: 03 Sep 2003
Posts: 875
Location: Cologne, Germany

PostPosted: Wed Mar 23, 2005 2:46 am    Post subject: Reply with quote

Stupid me, for some reason I didn't enable hotplug in the kernel - so this is fixed now, I get a device when I insert the USB stick. But this error is still there. When I disable EHCI it disappears. I'm running on 2.6.11-r4.

Tom
Back to top
View user's profile Send private message
GalenHZ
n00b
n00b


Joined: 22 Mar 2005
Posts: 2

PostPosted: Wed Mar 23, 2005 3:04 am    Post subject: Reply with quote

Another possibility is that disabling ACPI will get this working. I had problems with USB on my nforce4 until I updated the bios (which fixed ACPI) and updated the kernel to 2.6.11.
Back to top
View user's profile Send private message
dangertools
Apprentice
Apprentice


Joined: 29 Dec 2003
Posts: 278
Location: Saalfelden, Austria

PostPosted: Wed Mar 23, 2005 7:56 am    Post subject: Reply with quote

GalenHZ wrote:
Another possibility is that disabling ACPI will get this working


damn laptop here ;) if i disable acpi half of the hardware won't work anymore. first of all is that usb stops working ;) i have an usb-stick now here, this is the output i get when inserting it and removing again, remember this worked earlier:

Code:
Mar 23 08:45:02 baerbel usb 4-2: new full speed USB device using uhci_hcd and address 3
Mar 23 08:45:02 baerbel uba: device 3 capacity nsec 507904 bsize 512
Mar 23 08:45:02 baerbel uba: device 3 capacity nsec 507904 bsize 512
Mar 23 08:45:02 baerbel /dev/ub/a: p1


looks quite good so far but when i try to mount /dev/uba1 mount complains about missing filesystemtype

Code:
mount -t vfat /dev/uba1 /mnt/sda1/
mount: wrong fs type, bad option, bad superblock on /dev/uba1,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so


Code:
Mar 23 08:46:08 baerbel FAT: bogus number of reserved sectors
Mar 23 08:46:08 baerbel VFS: Can't find a valid FAT filesystem on dev uba1.


the stick contains one partition containing a fat-filesystem, i have repartitioned and reformatted quite a few times, it works on a second machine with 32bit arch.

may someone has a good idea how to solve this?

regards

georg schild
Back to top
View user's profile Send private message
Ert3R}
n00b
n00b


Joined: 07 May 2004
Posts: 48

PostPosted: Wed Mar 23, 2005 4:17 pm    Post subject: Reply with quote

same problem for me:
Code:

SCSI device sdc: 248320 512-byte hdwr sectors (127 MB)
sdc: assuming Write Enabled
sdc: assuming drive cache: write through
SCSI device sdc: 248320 512-byte hdwr sectors (127 MB)
sdc: assuming Write Enabled
sdc: assuming drive cache: write through
 /dev/scsi/host2/bus0/target0/lun2: p1
VFS: Can't find ext3 filesystem on dev sdc.
FAT: bogus number of reserved sectors
VFS: Can't find a valid FAT filesystem on dev sdc.


Code:
$ mount /dev/sdc /mnt/appoggio/
mount: you must specify the filesystem type
$ mount -t vfat /dev/sdc /mnt/appoggio/
mount: wrong fs type, bad option, bad superblock on /dev/sdc,
       or too many mounted file systems


let us know if you have some success with your stick.
bye
Back to top
View user's profile Send private message
dangertools
Apprentice
Apprentice


Joined: 29 Dec 2003
Posts: 278
Location: Saalfelden, Austria

PostPosted: Thu Mar 24, 2005 1:36 pm    Post subject: Reply with quote

hrhr ;) stupid me (maybe stupid you too, we will see :P)

first i had the option CONFIG_BLK_DEV_UB enabled which is for Low Performance USB-devices, i don't think that this was the faulty one but it was maybe one of them, and second problem was that i had usb-ehci and usb-uhci enabled but not usb-ohci, the 32bit machine next to me has all 3 usb-drivers and works without problems so i have enabled ohci too and now it works again. no problems, no errors, maybe you could try to enable the drivers and disable the other option if enabled.

regards
Back to top
View user's profile Send private message
Ert3R}
n00b
n00b


Joined: 07 May 2004
Posts: 48

PostPosted: Fri Mar 25, 2005 2:38 pm    Post subject: Reply with quote

STUPID ME too! I tried to mount my memory stick doing
Code:
mount -t vfat /dev/sdc /mnt/appoggio/

instead of
Code:
mount -t vfat /dev/sdc1 /mnt/appoggio/
:oops:

bye
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum