I have a USB hard drive for backups. I have to do various modprobes before the device is recognized. Before I unplug the USB drive, I

umount /mnt/usbdrive

But before I unplug the  drive or turn it off, I need to

modprobe -r module_names

Otherwise I get this message:

Jun 5 11:50:25 systemsnetworks su(pam_unix)[3136]: session opened for user root by bobbya(uid=501)
Jun 5 11:50:51 systemsnetworks kernel: usb.c: USB disconnect on device 00:14.2-2 address 4
Jun 5 11:50:51 systemsnetworks kernel: Device not ready. Make sure there is a disc in the drive.
Jun 5 11:50:52 systemsnetworks last message repeated 19 times
Jun 5 11:50:52 systemsnetworks kernel: sdb : READ CAPACITY failed.
Jun 5 11:50:52 systemsnetworks kernel: sdb : status = 1, message = 00, host = 0, driver = 08
Jun 5 11:50:52 systemsnetworks kernel: Info fld=0xa00 (nonstd), Current sd00:00: sense key Not Ready
Jun 5 11:50:52 systemsnetworks kernel: sdb : block size assumed to be 512 bytes, disk size 1GB.
Jun 5 11:50:52 systemsnetworks kernel: sdb: I/O error: dev 08:10, sector 0
Jun 5 11:50:52 systemsnetworks kernel: I/O error: dev 08:10, sector 0
Jun 5 11:50:52 systemsnetworks kernel: unable to read partition table
Jun 5 11:50:53 systemsnetworks devlabel: devlabel service started/restarted


I think I'll just write a shell script with all of the modprobe -r commands before I unplug the USB drive.



-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to