LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 04-04-2006, 02:19 AM   #1
demoman
LQ Newbie
 
Registered: Nov 2005
Posts: 18

Rep: Reputation: 0
Question USB drive detected (dmesg) but no entry in /dev ?!


I cannot mount my USB drive any longer (it did work at some point, after the Ubuntu install) and cannot figure out the issue.
(Incidentally my USB printer also doesn't work but one thing at a time...).

Basically:
  • the drive is detected when I turn it on (see dmesg below)
  • weird "type does not exist" in dmesg
  • it's also in /proc/scsi/scsi (see below)
  • no corresponding entry can be found in /dev/
  • fdisk doesn't see it neither
  • all this was working fine on SuSE and *did* work right after Ubuntu install

All detail below...

Any idea?

Thanks in advance!

Breezy Badger Ubuntu Server 5.1.0

Code:
# uname -a
Linux oooo 2.6.12-9-k7 #1 Mon Oct 10 13:47:52 BST 2005 i686 GNU/Linux
/var/log/messages when I turn on the drive:

Code:
Mar 31 23:18:16 localhost kernel: [4295656.599000] usb 5-2: USB disconnect, address 6
Mar 31 23:18:21 localhost kernel: [4295661.765000] usb 5-2: new high speed USB device using ehci_hcd and address 7
Mar 31 23:18:22 localhost kernel: [4295661.978000] scsi6 : SCSI emulation for USB Mass Storage devices
Mar 31 23:18:22 localhost usb.agent[6438]:      usb-storage: already loaded
Mar 31 23:18:31 localhost kernel: [4295670.945000]   Vendor: USB-HS    Model: WDC WD2500BB-14G  Rev: 0.01
Mar 31 23:18:31 localhost kernel: [4295670.945000]   Type:   Direct-Access                      ANSI SCSI revision: 00
Mar 31 23:18:31 localhost kernel: [4295670.978000] SCSI device sdc: 488397168 512-byte hdwr sectors (250059 MB)
Mar 31 23:18:31 localhost kernel: [4295670.998000] SCSI device sdc: 488397168 512-byte hdwr sectors (250059 MB)
Mar 31 23:18:31 localhost kernel: [4295670.999000]  /dev/scsi/host6/bus0/target0/lun0: p1 p2
Mar 31 23:18:31 localhost kernel: [4295671.045000] Attached scsi disk sdc at scsi6, channel 0, id 0, lun 0
Mar 31 23:18:41 localhost scsi.agent[6475]: Attribute /sys/devices/pci0000:00/0000:00:10.4/usb5/5-2/5-2:1.0/host6/target6:0:0/6:0:0:0/type does not exist
Result of mount:
Code:
#mount -t ext3 /dev/sdc2 /mnt/usblin/
mount: special device /dev/sdc2 does not exist
The USB (WDC) drive is listed in /proc/scsi:
Code:
# more /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: Maxtor 7Y250M0   Rev: YAR5
  Type:   Direct-Access                    ANSI SCSI revision: 05
Host: scsi6 Channel: 00 Id: 00 Lun: 00
  Vendor: USB-HS   Model: WDC WD2500BB-14G Rev: 0.01
  Type:   Direct-Access                    ANSI SCSI revision: 02
Code:
# more /proc/scsi/usb-storage/6
   Host scsi6: usb-storage
       Vendor: BUFFALO INC.
      Product: USB2-IDE Bridge
Serial Number: 00000701080B
     Protocol: Transparent SCSI
    Transport: Bulk
       Quirks:
Nowhere to be found in /dev...
Code:
# ls /dev/s*
/dev/sda  /dev/sda1
And fdisk doesn't seem to see it neither:
Code:
# fdisk -l

Disk /dev/hdb: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdb1   *           1        4678    37576003+  83  Linux
/dev/hdb2            4679        4865     1502077+   5  Extended
/dev/hdb5            4679        4865     1502046   82  Linux swap / Solaris

Disk /dev/hdc: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdc1               1        1246    10008463+  83  Linux
/dev/hdc2            1247        1371     1004062+  82  Linux swap / Solaris
/dev/hdc3            1372        3239    15004710   83  Linux
/dev/hdc4            3240       30401   218178765    5  Extended
/dev/hdc5            3240       30401   218178733+  83  Linux

Disk /dev/sda: 251.0 GB, 251000193024 bytes
255 heads, 63 sectors/track, 30515 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1       30514   245103673+  83  Linux
Just in case, I did a:
Code:
update-usbids
No change.

Interestingly, lsusb doesn't seem too happy:

Code:
# lsusb
Unknown line at line 5924
Unknown line at line 5925
Unknown line at line 5926
Unknown line at line 5927
Unknown line at line 5928
Unknown line at line 5929
Unknown line at line 5930
Unknown line at line 5931
Unknown line at line 5932
Unknown line at line 5933
Unknown line at line 5934
Unknown line at line 5935
Bus 005 Device 007: ID 0411:002a MelCo., Inc.
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 002: ID 04e8:324c Samsung Electronics Co., Ltd ML-1740 Printer
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000

Last edited by demoman; 04-04-2006 at 02:25 AM.
 
Old 04-04-2006, 08:55 AM   #2
tomolesonjr
Member
 
Registered: Mar 2006
Location: Iowa
Distribution: Suse 10.0
Posts: 70

Rep: Reputation: 15
I have suse 10.0. my 80 gb usb hd shows up as sda. but you access it through /media? where as my usb flash shows up as /media/usbdisk_1

Tom
 
Old 04-04-2006, 02:34 PM   #3
adssse
Member
 
Registered: May 2005
Distribution: Ubuntu, Jolicloud
Posts: 136

Rep: Reputation: 15
Can you mount it manually? Have you tried creating a directory such as /mnt/sda1, and then trying 'sudo mount /dev/sda1 /mnt/sda1'?
 
Old 04-04-2006, 03:37 PM   #4
demoman
LQ Newbie
 
Registered: Nov 2005
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by adssse
Can you mount it manually? Have you tried creating a directory such as /mnt/sda1, and then trying 'sudo mount /dev/sda1 /mnt/sda1'?
Yes, I did that:
mount -t ext3 /dev/sdc2 /mnt/usblin/

sda1 is another drive - SATA. The USB drive (sdc according to dmesg) does *NOT* show up in /dev.

Thanks.
 
Old 04-05-2006, 03:46 AM   #5
tomolesonjr
Member
 
Registered: Mar 2006
Location: Iowa
Distribution: Suse 10.0
Posts: 70

Rep: Reputation: 15
Have you tried the modprobe? I have to use it with my zip to get suse to recognize sda in dev.

try modprobe imm. works for my zip to get it to show up. perhaps something like that.
rmmod imm, removes it. that's suse. perhaps there is something similar for you.

good luck!
 
Old 04-05-2006, 04:03 AM   #6
tomolesonjr
Member
 
Registered: Mar 2006
Location: Iowa
Distribution: Suse 10.0
Posts: 70

Rep: Reputation: 15
try lsmod. see if usb_storage appears as a module.
 
Old 04-05-2006, 04:18 AM   #7
tomolesonjr
Member
 
Registered: Mar 2006
Location: Iowa
Distribution: Suse 10.0
Posts: 70

Rep: Reputation: 15
Hi again, I just tried something. do an lsmod. sd_mod, usb_storage, and usbcore.
if they aren't there, do a modprobe sd_mod. that by itself will cause the sda or whatever sd to not show up.

again, good luck.

Tom
 
Old 04-07-2006, 11:28 PM   #8
demoman
LQ Newbie
 
Registered: Nov 2005
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by tomolesonjr
Hi again, I just tried something. do an lsmod. sd_mod, usb_storage, and usbcore.
if they aren't there, do a modprobe sd_mod. that by itself will cause the sda or whatever sd to not show up.

again, good luck.

Tom
Thanks Tom.

Yes, all these modules are there:
Code:
# lsmod | grep -i usb
usblp                  12736  0
usb_storage            74560  2
usbcore               118204  4 usblp,usb_storage,uhci_hcd
scsi_mod              135944  5 sr_mod,sbp2,sd_mod,usb_storage,libata
ide_core              139028  5 usb_storage,ide_disk,ide_cd,ide_generic,via82cxxx
# modprobe sd_mod
#
# ls /dev/s*
/dev/sda  /dev/sda1
# dmesg
{...}
[4890183.677000] Attached scsi disk sdc at scsi8, channel 0, id 0, lun 0
[4890183.697000] usb-storage: device scan complete
# mount -t ext3 /dev/sdc1 /mnt/usblin/
mount: special device /dev/sdc1 does not exist


Thanks anyway!
 
Old 05-11-2006, 07:51 AM   #9
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Did you determine the problem? I'm having a similar issue with 2.6.16.14 and found this thread...
 
  


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
USB drive... /dev/sda1 doesn't show unless I try mounting /dev/sda as vfat finite Linux - Hardware 8 03-10-2009 12:52 AM
USB Harddrive detected, not in /dev Phaux Linux - Hardware 2 01-04-2006 04:49 PM
Plug-in usb hard drive gives errors in /var/log/messeges and dmesg jasone Linux - Hardware 12 11-18-2005 12:19 AM
USB thumb drive detected by usb but not by scsi ashlock Linux - Hardware 6 06-02-2005 02:58 PM
usb flash drive: no /dev entry zarg Slackware 3 09-21-2004 03:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 04:30 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