LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Cannot reconnect external firewire/usb drive (http://www.linuxquestions.org/questions/linux-general-1/cannot-reconnect-external-firewire-usb-drive-353888/)

compujas 08-16-2005 12:56 PM

Cannot reconnect external firewire/usb drive
 
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.

Ammad 08-16-2005 02:37 PM

you should unmount usb drive. don't know details about firewire,
if you want to reconnect usb. try to use

#mount /dev/sdb1 /media/usb

if first using /dev/sda1

compujas 08-16-2005 03:05 PM

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.

Ammad 08-16-2005 03:15 PM

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.

compujas 08-16-2005 03:39 PM

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.

compujas 08-19-2005 09:17 AM

Anyone have any more ideas? It's really quite annoying to have to restart to reconnect an external drive.

SMiTTY_Cali 08-30-2005 06:24 AM

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


All times are GMT -5. The time now is 11:57 AM.