Click to See Complete Forum and Search --> : How to detect the external enclosure w/o reboot


satimis
11-23-2007, 01:02 PM
Hi folks,


Ubuntu 7.04 workstation
P-III PC - USB1.0 port
external enclosure mounted with ATA-66 12G HD - USB connector


The enclosure can be occasional detected by PC on plugin. Most the time I have to reboot the PC with the enclousre turned on to get it detected. Files/data can be transferred to/from the enclosure w/o problem. Is there any way to get it detected without reboot? TIA


satimis

JayMan8081
11-23-2007, 04:46 PM
Does the enclosure have a separate power adapter or does it get power from the USB cord? I had that same problem when I was using an enclosure powered from the USB cord and it turned out that I had to plug in both connectors at almost the same instant or the drive would not be recognized until I rebooted with it plugged in.

satimis
11-23-2007, 09:18 PM
Does the enclosure have a separate power adapter or does it get power from the USB cord? I had that same problem when I was using an enclosure powered from the USB cord and it turned out that I had to plug in both connectors at almost the same instant or the drive would not be recognized until I rebooted with it plugged in.
The enclosure is powered by a separate power adapter, not on USB cord. Occasionaly it can be detected on plugin. Is there a Unix command to detect it avoiding a reboot? Thanks

satimis

happybunny
11-23-2007, 09:33 PM
dmesg |grep sd ?

satimis
11-24-2007, 01:53 AM
dmesg |grep sd ?
Performed following test;

Switch on the external enclosure and plug the cable to an USB port.

$ fdisk -l
No printout

$ sudo fdisk -l
Password:Sorry, try again.
Password:

Disk /dev/hde: 13.0 GB, 13022324736 bytes
255 heads, 63 sectors/track, 1583 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hde1 1 12 96358+ 83 Linux
/dev/hde2 13 1045 8297572+ 83 Linux
/dev/hde3 1046 1107 498015 82 Linux swap / Solaris
/dev/hde4 1108 1583 3823470 83 Linux

The HD of the PC

$ dmesg | grep sd
$ dmesg | grep sda
$ dmesg | grep sdb
All without printout


$ dmesg | grep usb
[ 196.583017] usbcore: registered new interface driver usbfs
[ 196.583091] usbcore: registered new interface driver hub
[ 196.583176] usbcore: registered new device driver usb
[ 10.848000] usb usb1: configuration #1 chosen from 1 choice
[ 276.488000] usb 1-1: new low speed USB device using uhci_hcd and address 2
[ 276.656000] usb 1-1: configuration #1 chosen from 1 choice
[ 277.832000] usbcore: registered new interface driver hiddev
[ 277.852000] input: USB HID v1.10 Mouse [USB Optical Mouse] on usb-0000:00:07.2-1
[ 277.852000] usbcore: registered new interface driver usbhid
[ 277.852000] drivers/usb/input/hid-core.c: v2.6:USB HID core driver
[ 7668.156000] usb 1-2: new full speed USB device using uhci_hcd and address 3
[ 7668.316000] usb 1-2: configuration #1 chosen from 1 choice
[ 7815.840000] usb 1-2: USB disconnect, address 3

The USB mouse found.


satimis