Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a Seagate 160GB IDE drive that I put into a Macally PHR-100AC external enclosure (Firewire400/USB2.0 3.5" case). It works beautifully...until I disconnect it and try reconnecting it. I can use it perfectly either through firewire or usb with no problems, but after I unmount the drive and disconnect the cable, it will no longer work unless I reboot the machine (which basically defeats the purpose of an external drive).
The first question I'm sure everyone would ask is "Do I unmount the drive before disconnecting it?" and yes I do. After I disconnect it and then reconnect it, there is no mention of the machine finding it or scanning or anything according to dmesg. I plug it back in and it's as if I didn't. I do have the proper modules loaded (ohci1394, ieee1394, usbcore, usb_storage, ehci_hcd, uhci_hcd, etc.).
Also, if I connect it as firewire and disconnect it, then connect it as usb, it will work again, but after I disconnect the usb, it doesn't work on either. Any help would be great because this is quite annoying. Thanks.
PS: If anyone wants to hop on over to my other post as well (I am being told that I cannot post a URL as I have too few posts under my belt, so please just search for my other posts), I am having another problem that no one seems to be responding to. Thanks again.
As I said, I do unmount the drive before disconnecting. The problem is that after I reconnect the drive, it isn't recongnized as being reconnected, hence there is no device node to mount it with.
are you able to unmount it properly with out getting error in /var/log/messages , if so you first need to stop using it (from any process) and then you can re-connect it.
I see no explicit errors. The following is the entire event related to connecting the drive via usb and subsequently disconnecting it.
Code:
Aug 16 13:40:18 localhost kernel: usb 4-1: new high speed USB device using ehci_hcd and address 14
Aug 16 13:40:19 localhost kernel: Initializing USB Mass Storage driver...
Aug 16 13:40:19 localhost usb.agent[23312]: usb-storage: loaded successfully
Aug 16 13:40:19 localhost kernel: scsi1 : SCSI emulation for USB Mass Storage devices
Aug 16 13:40:19 localhost kernel: usbcore: registered new driver usb-storage
Aug 16 13:40:19 localhost kernel: USB Mass Storage support registered.
Aug 16 13:40:24 localhost kernel: Vendor: ST316002 Model: 3A Rev: 0 0
Aug 16 13:40:24 localhost kernel: Type: Direct-Access ANSI SCSI revision: 00
Aug 16 13:40:39 localhost hal.hotplug[23418]: timout(10000 ms) waiting for /devices/pci0000:00/0000:00:1d.7/usb4/4-1/4-1:1.0/host1/target1:0:0/1:0:0:0
Aug 16 13:40:49 localhost scsi.agent[23423]: Attribute /sys/devices/pci0000:00/0000:00:1d.7/usb4/4-1/4-1:1.0/host1/target1:0:0/1:0:0:0/type does not exist
Aug 16 13:40:49 localhost kernel: usb 4-1: USB disconnect, address 14
Not sure what that really means before the disconnect. But other than that, when I unmount the drive, it appears to unmount cleanly. If any processes were actively using the drive, it would not allow me to unmount it which leads me to believe that it is fine.
I believe you want to look at '/sbin/usbmodules' and '/sbin/hotplug' ... I'll give it a go on my RH box and post up what I find.
- SMiTTY
Just tried on my RHEL 4 box and it works without issues. I have a Maxtor 300G. I plug it in, and it automounts. I unmount, unplug, wait 5 secs, plug back in and it automounts.
Is 'dbus-daemon-1' running on your box? If not, I'm betting that's your problem.
Let us know.
SMiTTY
Last edited by SMiTTY_Cali; 08-30-2005 at 07:19 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.