Skip to contentSkip to conversation

USB drives not recognized after reboot

DISCUSSION Steve Bergman 3 participants 5 messages Oct 25, 2006 – Oct 26, 2006

lore
Share & tools
lore
#0 lore raw

I am running Fedora Core 6 with the vendor kernel which is 2.6.18.

I have 2 250GB LaCie USB 2.0 drives.

These drives work fine if I power them down and then backup up after the server is rebooted.

However, if I reboot the server, without powering down the drives, the server does not see them.

Actually, lsusb does show them as:

Bus 005 Device 005: ID 059f:0651 LaCie, Ltd
Bus 005 Device 004: ID 059f:0651 LaCie, Ltd

However, udev does not notice them and no device files are created.

These are not partitioned, so the correct device file would be /dev/sda with a major of 8 and and minors of 0 and 16.

If I create the device files manually, 'mount' doesn't see them as usb devices. I believe it says it is not a valid block device, but I'm not certain of that and cannot test it right now as the server is currently live.

I need a way to force these drives to be detected at boot up even if I have to manually force it some way in rc.local.

I'm not certain that this is the proper list for this problem, but udev seems a reasonable place to start.

Thank you for any assistance.

-Steve

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#1 lore raw
Quoted 1 line · Steve Bergman

I am running Fedora Core 6 with the vendor kernel which is 2.6.18.

You should try to reproduce it with a plain kernel (like 2.6.18) so we know its not an FC6 specific problem.

Quoted 2 lines

These drives work fine if I power them down and then backup up after the server is rebooted.

Compare or post your boot time logs (/var/log/messages or demsg output) with output seen when the devices are properly detected.

Make sure all the correct modules are loaded, compare your lsmod output for good and bad cases. You definitely need to have scsi_mod, sd_mod, and usb_storage loaded.

Logs should show lines like:

Oct 23 11:39:36 sysa kernel: SCSI subsystem initialized
Oct 23 11:39:36 sysa kernel: Initializing USB Mass Storage driver...
Oct 23 11:39:36 sysa kernel: scsi0 : SCSI emulation for USB Mass Storage devices
Oct 23 11:39:36 sysa kernel: usbcore: registered new driver usb-storage
Oct 23 11:39:36 sysa kernel: USB Mass Storage support registered.
Oct 23 11:39:41 sysa kernel:   Vendor: Generic   Model: STORAGE DEVICE    Rev: 9
321
Oct 23 11:39:41 sysa kernel:   Type:   Direct-Access                      ANSI S
CSI revision: 00
Oct 23 11:39:41 sysa kernel: scsi 0:0:0:0: Attached scsi generic sg0 type 0
Oct 23 11:39:41 sysa kernel: SCSI device sda: 4061232 512-byte hdwr sectors (207
9 MB)
Oct 23 11:39:41 sysa kernel: sda: Write Protect is off
Oct 23 11:39:41 sysa kernel: sda: assuming drive cache: write through
Oct 23 11:39:41 sysa kernel: SCSI device sda: 4061232 512-byte hdwr sectors (207
9 MB)
Oct 23 11:39:41 sysa kernel: sda: Write Protect is off
Oct 23 11:39:41 sysa kernel: sda: assuming drive cache: write through
Oct 23 11:39:41 sysa kernel:  sda: sda1
Oct 23 11:39:41 sysa kernel: sd 0:0:0:0: Attached scsi removable disk sda

You can also ls /sys/block or ls /sys/bus/scsi/devices/ to see if the block layer and scsi core are seeing the devices.

If devices aren't under /sys, it's not a udev issue.

Quoted 15 lines

Actually, lsusb does show them as:

Bus 005 Device 005: ID 059f:0651 LaCie, Ltd
Bus 005 Device 004: ID 059f:0651 LaCie, Ltd

However, udev does not notice them and no device files are created.

These are not partitioned, so the correct device file would be /dev/sda with a major of 8 and and minors of 0 and 16.

If I create the device files manually, 'mount' doesn't see them as usb devices. I believe it says it is not a valid block device, but I'm not certain of that and cannot test it right now as the server is currently live.

Quoted 5 lines

I need a way to force these drives to be detected at boot up even if I have to manually force it some way in rc.local.

I'm not certain that this is the proper list for this problem, but udev seems a reasonable place to start.

More likely a kernel usb mass storage or scsi problem, if all modules are loaded and you can reproduce on mainline kernel post logs showing the problem to [email protected] and [email protected]

-- Patrick Mansfield

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#2 lore raw
In reply to Steve Bergman
Quoted 12 lines · Patrick Mansfield

You should try to reproduce it with a plain kernel (like 2.6.18) so we know its not an FC6 specific problem.

Compare or post your boot time logs (/var/log/messages or demsg output) with output seen when the devices are properly detected.

Make sure all the correct modules are loaded, compare your lsmod output for good and bad cases. You definitely need to have scsi_mod, sd_mod, and usb_storage loaded.

Quoted 4 lines

More likely a kernel usb mass storage or scsi problem, if all modules are loaded and you can reproduce on mainline kernel post logs showing the problem to [email protected] and [email protected]

The problem appears to be that usb_storage is not getting loaded when the system boots. It does get loaded on demand if the drive is powered off and then back on. So I guess linux-usb-devel would be my next stop?

I have things "working" by putting a script that loads usb_storage in /etc/sysconfig/modules/.

It still isn't ready when the system tries to automatically mount it from fstab, but a mount command in /etc/rc.local works. Ugly, but it will do for now.

Thanks,
Steve

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#3 lore raw
In reply to Steve Bergman
Quoted 13 lines · Steve Bergman
Quoted 9 lines · Patrick Mansfield

Make sure all the correct modules are loaded, compare your lsmod output for good and bad cases. You definitely need to have scsi_mod, sd_mod, and usb_storage loaded.

More likely a kernel usb mass storage or scsi problem, if all modules are loaded and you can reproduce on mainline kernel post logs showing the problem to [email protected] and [email protected]

Quoted 3 lines

The problem appears to be that usb_storage is not getting loaded when the system boots. It does get loaded on demand if the drive is powered off and then back on. So I guess linux-usb-devel would be my next stop?

It could be a udev cold plug problem, I don't know various cold plug details and don't even have FC6 installed.

Try [email protected]

-- Patrick Mansfield

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#4 lore raw
In reply to Steve Bergman
Quoted 3 lines · Steve Bergman

The problem appears to be that usb_storage is not getting loaded when the system boots. It does get loaded on demand if the drive is powered off and then back on. So I guess linux-usb-devel would be my next stop?

I think this is due to the some unfortunate interactions described here

http://zaitcev.livejournal.com/93621.html

Please report this in the Red Hat bugzilla so Pete gets some more incentive to, uhm, fix this. Thanks!

David

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel