LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 05-12-2007, 04:33 AM   #1
Harpreet Singh
LQ Newbie
 
Registered: Jul 2006
Posts: 2

Rep: Reputation: 0
Question System unable to detect USB HDD


Hi All,

[root@harrysden ~]# uname -a
Linux harrysden 2.6.20-0119.rt8.3.fc6.ccrmart #1 SMP PREEMPT Thu Mar 29 13:40:55 EDT 2007 i686 i686 i386 GNU/Linux
[root@harrysden ~]#

I am running FC6, when I try connecting my USB HDD to my system it is not detected. I tried connecting the HDD to another port but still the HDD is not detected.

These are the messages that I get when I try to connect the device to first USB port:

May 12 14:26:16 harrysden kernel: usb 2-2: new full speed USB device using uhci_hcd and address 2
May 12 14:26:16 harrysden kernel: usb 2-2: device descriptor read/64, error -71
May 12 14:26:16 harrysden kernel: usb 2-2: device descriptor read/64, error -71
May 12 14:26:16 harrysden kernel: usb 2-2: new full speed USB device using uhci_hcd and address 3
May 12 14:26:16 harrysden kernel: usb 2-2: device descriptor read/64, error -71
May 12 14:26:17 harrysden kernel: usb 2-2: device descriptor read/64, error -71
May 12 14:26:17 harrysden kernel: usb 2-2: new full speed USB device using uhci_hcd and address 4
May 12 14:26:17 harrysden kernel: usb 2-2: device not accepting address 4, error -71
May 12 14:26:17 harrysden kernel: usb 2-2: new full speed USB device using uhci_hcd and address 5
May 12 14:26:18 harrysden kernel: usb 2-2: device not accepting address 5, error -71

These are the messages that I get when I try to connect the device to second USB port:

May 12 14:39:31 harrysden kernel: usb 2-1: new full speed USB device using uhci_hcd and address 6
May 12 14:39:31 harrysden kernel: usb 2-1: device descriptor read/64, error -71
May 12 14:39:31 harrysden kernel: usb 2-1: device descriptor read/64, error -71
May 12 14:39:32 harrysden kernel: usb 2-1: new full speed USB device using uhci_hcd and address 7
May 12 14:39:32 harrysden kernel: usb 2-1: device descriptor read/64, error -71
May 12 14:39:32 harrysden kernel: usb 2-1: device descriptor read/64, error -71
May 12 14:39:32 harrysden kernel: usb 2-1: new full speed USB device using uhci_hcd and address 8
May 12 14:39:32 harrysden kernel: usb 2-1: device not accepting address 8, error -71
May 12 14:39:33 harrysden kernel: usb 2-1: new full speed USB device using uhci_hcd and address 9
May 12 14:39:33 harrysden kernel: usb 2-1: device not accepting address 9, error -71

Following is the output of the lspci command listing all the USB devices

[root@harrysden ~]# lspci | grep -i usb
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #3 (rev 02)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #4 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02)
[root@harrysden ~]#


I have some very important data on the HDD is there anyway to get all the DATA from the HDD?

Any help will be really appreciated. Please do let me know if any other information is needed to help solve the problem.

-Harpreet Singh
 
Old 05-12-2007, 05:04 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Try restarting the dbus and hal and udev daemons.

If the device is detected but the automount system doesn't kick in you can use "hal-device", "hal-device-manager", and udevinfo to examine how the system sees your device. Hopefully the filesystem is OK.

Code:
udevinfo -q env -n /dev/sdb1
ID_VENDOR=SanDisk
ID_MODEL=Cruzer_Mini
ID_REVISION=0.1
ID_SERIAL=SanDisk_Cruzer_Mini_SNDK4F87642EAA601103
ID_TYPE=disk
ID_BUS=usb
ID_PATH=pci-0000:00:02.2-usb-0:2:1.0-scsi-0:0:0:0
ID_FS_USAGE=filesystem
ID_FS_TYPE=vfat
ID_FS_VERSION=FAT16
ID_FS_UUID=3B69-1AFD
ID_FS_LABEL=
ID_FS_LABEL_SAFE=
With this example, I see that the filesystem is FAT16. That I should use -t VFAT. And if I wanted to I could use "UUID=3B69-1AFD" in an /etc/fstab entry to create an entry that will mount it regardless of which usb port it is plugged into.

Also look at the output of a command like:
Code:
udevtest /class/usb_device/usbdev1.1
This program is for debugging only, it does not create any node,
or run any program specified by a RUN key. It may show incorrect results,
if rules match against subsystem specfic kernel event variables.

main: looking at device '/class/usb_device/usbdev1.1' from subsystem 'usb_device'
run_program: '/bin/sh -c 'K=usbdev1.1; K=${K#usbdev}; printf bus/usb/%03i/%03i ${K%%.*} ${K#*.}''
run_program: '/bin/sh' (stdout) 'bus/usb/001/001'
run_program: '/bin/sh' returned with status 0
udev_rules_get_name: rule applied, 'usbdev1.1' becomes 'bus/usb/001/001'
udev_db_get_device: found a symlink as db file
udev_device_event: device '/class/usb_device/usbdev1.1' already in database, validate currently present symlinks
udev_node_add: creating device node '/dev/bus/usb/001/001', major = '189', minor = '0', mode = '0644', uid = '0', gid = '0'
main: run: 'socket:/org/freedesktop/hal/udev_event'
main: run: 'socket:/org/kernel/udev/monitor'
In your instance, I think you need to run "sudo udevtest /class/usb_device/usbdev2.1"

Also check if you have the usb related kernel modules
Code:
lsmod | grep usb
usbhid                 69792  0
usb_storage           105280  2
scsi_mod              173744  3 sg,sd_mod,usb_storage
usbcore               148064  6 uhci_hcd,usbhid,usb_storage,ndiswrapper,ehci_hcd,ohci_hcd
ide_core              174720  4 usb_storage,ide_cd,amd74xx,ide_disk

Last edited by jschiwal; 05-12-2007 at 05:35 AM.
 
Old 05-14-2007, 09:39 AM   #3
Harpreet Singh
LQ Newbie
 
Registered: Jul 2006
Posts: 2

Original Poster
Rep: Reputation: 0
Hi jschiwal,

Thanks for that information but, it seems I have ran out of luck. Now the HDD is not at all being detected.

-Harpreet Singh
 
Old 05-15-2007, 08:58 AM   #4
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,274

Rep: Reputation: 63
It looks like your disk isn't getting enough power from the USB ports. After looking at your output I notice you've been plugging it into UHCI ports and your lspci output shows you have an EHCI (USB2) controller. Did you try all of your ports? USB hard disks work much better when plugged into EHCI. I've never tried UHCI but I think it's intended for certain motherboard chips. Another thing you might try is a LiveCD distro and see if the disk detects when you boot with it.
 
  


Reply



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 USB HDD wont detect vicky_me Linux - Hardware 4 11-21-2006 04:14 AM
Unable to see an external USB HDD dpuane Linux - Hardware 3 11-07-2006 07:25 AM
Cfdisk unable to detect majority of system partitions/drives during install SamuraiNinjaGuy Slackware - Installation 2 04-20-2006 08:38 AM
xorg unable to detect usb mouse athanatos Slackware 3 05-27-2005 02:34 PM
xemacs configure unable to detect x11 window system macshark Linux - Software 0 11-22-2003 02:03 AM

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

All times are GMT -5. The time now is 07:05 AM.

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