Help - Search - Members - Calendar
Full Version: Usb Mass Storage Crashes System
Linuxhelp > Support > Hardware Support
illiterate1
Hello, This problem is rather challenging and I am unable to properly phrase this to Google in order to find a solution, so please take a moment to reply.

I am trying to connect an external usb storage drive to the machine, but when I do so the system crashes.

Running a Linux server with hardware RAID. The kernel treats the RAID array as a scsi drive, so the root directory "/" and boot directory "/boot" mount from the filesystems /dev/sda2 and /dev/sda1, respectively. I already have an external usb storage drive at /dev/sdb. When I connect another external usb drive to the machine it tries to take /dev/sda!!! Suddenly everything freezes.

What can I do to get the device to take /dev/sdc instead of /dev/sda? I'm almost certain this is the problem, but there might be a different cause that I have not considered. Please, any suggestions would help.

Here is the output from "df",

Filesystem..............1K-blocks......Used.........Available......Use%....Mounted on
/dev/sda2..............190180372.....9110048....171409640....6%......./
/dev/sda1..............101089..........15278.......80592..........16%...../boot
/dev/sdb1..............192292124...150880620...31643584.....83%...../f1

Its difficult for me to get any dmesg output after the new usb storage drive is connected, so the best I can do is give you the following dmesg output just before I connect the drive.

------------------------------------------------------------------
SCSI subsystem driver Revision: 1.00
0 info table
<7>PCI: Setting latency timer of device 00:1f.2 to 64
scsi0 : Vendor: ADAPTEC Model: AAR-ICHx Version: 2.01.021
Vendor: ADAPTEC Model: RAID 1 Rev: 1.0
Type: Direct-Access ANSI SCSI revision: 00
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
SCSI device sda: 390721537 512-byte hdwr sectors (200049 MB)
Partition check:
sda: sda1 sda2 sda3

Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
scsi1 : SCSI emulation for USB Mass Storage devices
Vendor: WDC WD20 Model: 00JB-00GVA0 Rev: 0 0
Type: Direct-Access ANSI SCSI revision: 02
Attached scsi disk sdb at scsi1, channel 0, id 0, lun 0
SCSI device sdb: 390721968 512-byte hdwr sectors (200050 MB)
sdb: sdb1

----------------------------------------------------------------------

And here is a snip of output from 'lsmod'

Module..................Size......Used by....Not tainted
ide-scsi...............12432.......0
ide-cd.................35772.......0
usb-storage.........69884.......1
usb-uhci..............27404.......0 (unused)
ehci-hcd..............20456.......0 (unused)
usbcore...............82592.......1 [usb-storage hid usb-uhci ehci-hcd]
aarich................397876.......3
sd_mod................13452.......8
scsi_mod............110488.......6 [sg sr_mod ide-scsi usb-storage aarich sd_mod]



I will be happy to provide anymore information that can be relevant to this problem.

Sincerely,
Marc
michaelk
What distribution / version of linux are you running?

Have you tried to connect the 2nd USB (i.e. the failing unit) drive instead to see if it uses /dev/sdb?

What is your hardware configuration? USB controllers / ports, USB 1.0 2.0 etc. Are you plugging both drives into the same USB controller?
Termina
Sounds like you have supermount installed.

You'll probally want to turn supermounting off.

CODE
supermount disable


You might want to check /etc/fstab, and see if there is anything suspicous in there, as well.
illiterate1
>> What distribution / version of linux are you running?

Linux version 2.4.20-8smp (bhcompile@porky.devel.redhat.com) (gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)) #1 SMP Thu Mar 13 17:45:54 EST 2003


>> Have you tried to connect the 2nd USB (i.e. the failing unit) drive instead to see if it uses >> /dev/sdb?

I have several of these USB external drives and they all do the same thing to the system. There's already one drive successfully mounted on the system, using /dev/sdb. So when I connect the 2nd USB drive it tries to use /dev/sda. Its tricky, and I'm a little confused.

>> What is your hardware configuration? USB controllers / ports, USB 1.0 2.0 etc. Are you
>> plugging both drives into the same USB controller?

Yes I am plugging both drives into the same USB controller (there is another USB UHCI Root Hub on the front of the box, but the same thing happens if I plug the 2nd drive in the front). Both controllers are USB 2.0.

Here is some more information.


$ cat /proc/bus/usb/drivers
usbdevfs
hub
96-111: hiddev
hid
usb-storage

$ cat /proc/bus/usb/devices
T: Bus=03 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.00 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 0.00
S: Product=USB UHCI Root Hub
S: SerialNumber=ec00
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=255ms
T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.00 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 0.00
S: Product=USB UHCI Root Hub
S: SerialNumber=e800
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=255ms
T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 4
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.04
S: Manufacturer=Linux 2.4.20-8smp ehci-hcd
S: Product=PCI device 8086:25ad (Intel Corp.)
S: SerialNumber=00:1d.7
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=256ms
T: Bus=01 Lev=01 Prnt=01 Port=02 Cnt=01 Dev#= 2 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=04b4 ProdID=6830 Rev= 0.01
S: Manufacturer=Cypress Semiconductor
S: Product=USB2.0 Storage Device
S: SerialNumber=DEF1065D483E
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=88(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms



Ok, there are probably a million different things I could add to this reply, but I'm not sure where to look...

As for the "supermount" theory, I don't see supermount in /etc/fstab. Nor do I have any results from "locate supermount" or "man supermount". Does that mean its non-existent on my system?

-Marc
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.