LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 11-23-2007, 11:01 AM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,688

Rep: Reputation: 55
How to detect the external enclosure w/o reboot


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
 
Old 11-24-2007, 11:11 AM   #2
Vincent_Vega
Member
 
Registered: Nov 2003
Location: South Jersey
Distribution: Slackware, Raspbian, Manjaro
Posts: 826

Rep: Reputation: 31
How do you know it's not being detected? Have you looked at the log files after plugging it in? Use:
Code:
tail -s 3 -f /var/log/messages
in a console (as root) before you plug it in. Watch the messages come up after plugging it in. Maybe you can mount it manually without any reboot needed.
 
Old 11-26-2007, 04:47 AM   #3
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,688

Original Poster
Rep: Reputation: 55
Quote:
Originally Posted by Vincent_Vega View Post
How do you know it's not being detected? Have you looked at the log files after plugging it in? Use:
Code:
tail -s 3 -f /var/log/messages
in a console (as root) before you plug it in. Watch the messages come up after plugging it in. Maybe you can mount it manually without any reboot needed.
Thanks for your advice.


# tail -s 3 -f /var/log/messages
Code:
Nov 26 18:50:27 ubuntu704 kernel: [   66.604000] Bluetooth: RFCOMM socket layer initialized
Nov 26 18:50:27 ubuntu704 kernel: [   66.604000] Bluetooth: RFCOMM TTY layer initialized
Nov 26 18:50:27 ubuntu704 kernel: [   66.604000] Bluetooth: RFCOMM ver 1.8
Nov 26 18:50:46 ubuntu704 gconfd (satimis-5253): starting (version 2.18.0.1), pid 5253 user 'satimis'
Nov 26 18:50:46 ubuntu704 gconfd (satimis-5253): Resolved address "xml:readonly:/etc/gconf/gconf.xml.mandatory" to a read-only configuration source at position 0
Nov 26 18:50:46 ubuntu704 gconfd (satimis-5253): Resolved address "xml:readwrite:/home/satimis/.gconf" to a writable configuration source at position 1
Nov 26 18:50:46 ubuntu704 gconfd (satimis-5253): Resolved address "xml:readonly:/etc/gconf/gconf.xml.defaults" to a read-only configuration source at position 2
Nov 26 18:50:46 ubuntu704 gconfd (satimis-5253): Resolved address "xml:readonly:/var/lib/gconf/debian.defaults" to a read-only configuration source at position 3
Nov 26 18:50:46 ubuntu704 gconfd (satimis-5253): Resolved address "xml:readonly:/var/lib/gconf/defaults" to a read-only configuration source at position 4
Nov 26 18:51:01 ubuntu704 gconfd (satimis-5253): Resolved address "xml:readwrite:/home/satimis/.gconf" to a writable configuration source at position 0
Plugin the USB cable and switch on the enclosue

Code:
Nov 26 18:57:22 ubuntu704 kernel: [  480.728000] usb 1-2: new full speed USB device using uhci_hcd and address 3
Nov 26 18:57:22 ubuntu704 kernel: [  480.944000] usb 1-2: configuration #1 chosen from 1 choice
Nov 26 18:57:22 ubuntu704 kernel: [  480.948000] hub 1-2:1.0: USB hub found
Nov 26 18:57:22 ubuntu704 kernel: [  480.952000] hub 1-2:1.0: 4 ports detected

start another terminal
# fdisk -l
Code:
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 partitions of the HD of the PC.


It seems the enclosure detected. But fdisk can't find it.


satimis

Last edited by satimis; 11-26-2007 at 05:00 AM.
 
Old 11-27-2007, 01:24 PM   #4
Vincent_Vega
Member
 
Registered: Nov 2003
Location: South Jersey
Distribution: Slackware, Raspbian, Manjaro
Posts: 826

Rep: Reputation: 31
Are you plugging in a usb hub that the hard drive is plugged into or just the hard drive itself?
 
Old 11-27-2007, 02:13 PM   #5
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
If you are plugging the drive into a hub rather than directly to the motherboard that can cause all kinds of problems; speed####, detection, other. I would try plugging straight into the motherboard and see if that helps.

Good luck
Lazlow
 
Old 11-27-2007, 07:36 PM   #6
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,688

Original Poster
Rep: Reputation: 55
Hi folks,


Thanks for your advice.


The HD mounted on the enclosure and the enclosure itself have no problem. They work fine on other workstations as well as on server. Whenever connecting the enclosure to USB hub of a PC the HD can be detected automatically, "fdiks -l" displaying the partitions on the HD. I can transfer files between the enclosure and PC without problem.


I suppose the problem coming from the P-III workstation which already reaches its time to retire. The workstation fails to boot, first taking prolonged to boot and now stopping to boot at all. The Intel P-III already reaches its life end.


I'll treat the P-III PC as scrap. I have a spare AMD Athlon64 3000+ PC with 1G RAM and will run it as workstation. I'm waiting Sun's Sparc CPU coming to the market. Then I'll build a new server replacing my current AMD Athlon64 X2 3800+ server and run the same as wrokstation. It'll be a powerful workstation with 4G RAM. Today computer components are cheap.


Anyway lot of thanks for your advice and time.


satimis
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
External HD enclosure IDE to USB une Linux - Hardware 5 01-27-2007 08:52 AM
operating system on a external enclosure rar4x Linux - General 5 06-19-2006 01:09 PM
External enclosure with USB connection satimis Linux - Hardware 1 04-09-2006 07:20 PM
external enclosure for hdd jcwalnut Linux - Hardware 2 09-22-2004 02:58 PM
External Speedzter5 Enclosure JimmyJ Linux - Hardware 1 05-06-2004 12:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration