You are not logged in.

#1 2012-09-24 04:25:37

nadman10
Member
From: Erie, PA
Registered: 2005-10-15
Posts: 200

[SOLVED]USB flash drive no longer showing up in /dev

My USB flash drives are no longer showing up in /dev. I also don't see them in /dev/disks/... either. Dmesg outputs:

[731969.826862] usb 1-1: new high-speed USB device number 5 using ehci_hcd

Any ideas on where to start?

Last edited by nadman10 (2012-09-26 22:12:22)

Offline

#2 2012-09-24 04:31:21

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,412

Re: [SOLVED]USB flash drive no longer showing up in /dev

Corrupt mbr or gpt?  Maybe see if fdisk/gdisk/parted recognizes it.

Offline

#3 2012-09-24 04:34:25

nadman10
Member
From: Erie, PA
Registered: 2005-10-15
Posts: 200

Re: [SOLVED]USB flash drive no longer showing up in /dev

It happens with all USB drives, so I doubt that. None of those programs see it without the block device showing up.

Offline

#4 2012-09-24 05:37:40

nadman10
Member
From: Erie, PA
Registered: 2005-10-15
Posts: 200

Re: [SOLVED]USB flash drive no longer showing up in /dev

ls -l outputs:

Bus 001 Device 005: ID 0781:5530 SanDisk Corp. Cruzer
Couldn't open device, some information will be missing
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x0781 SanDisk Corp.
  idProduct          0x5530 Cruzer
  bcdDevice            1.00
  iManufacturer           1 
  iProduct                2 
  iSerial                 3 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           32
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              200mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk-Only
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               1

Bus 002 Device 002: ID 045e:0040 Microsoft Corp. Wheel Mouse Optical
Couldn't open device, some information will be missing
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0         8
  idVendor           0x045e Microsoft Corp.
  idProduct          0x0040 Wheel Mouse Optical
  bcdDevice            3.00
  iManufacturer           1 
  iProduct                3 
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           34
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xa0
      (Bus Powered)
      Remote Wakeup
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      1 Boot Interface Subclass
      bInterfaceProtocol      2 Mouse
      iInterface              0 
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.10
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      72
         Report Descriptors: 
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0004  1x 4 bytes
        bInterval              10

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Couldn't open device, some information will be missing
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            9 Hub
  bDeviceSubClass         0 Unused
  bDeviceProtocol         0 Full speed (or root) hub
  bMaxPacketSize0        64
  idVendor           0x1d6b Linux Foundation
  idProduct          0x0002 2.0 root hub
  bcdDevice            3.05
  iManufacturer           3 
  iProduct                2 
  iSerial                 1 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           25
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9 Hub
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      0 Full speed (or root) hub
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0004  1x 4 bytes
        bInterval              12

Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Couldn't open device, some information will be missing
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            9 Hub
  bDeviceSubClass         0 Unused
  bDeviceProtocol         0 Full speed (or root) hub
  bMaxPacketSize0        64
  idVendor           0x1d6b Linux Foundation
  idProduct          0x0001 1.1 root hub
  bcdDevice            3.05
  iManufacturer           3 
  iProduct                2 
  iSerial                 1 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           25
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9 Hub
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      0 Full speed (or root) hub
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0002  1x 2 bytes
        bInterval             255

Offline

#5 2012-09-24 05:58:14

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 13,793

Re: [SOLVED]USB flash drive no longer showing up in /dev

Well, it is not a bad start...

[35839.389912] usb 7-1: new high-speed USB device number 3 using ehci_hcd
[35840.135132] usbcore: registered new interface driver uas
[35840.140873] Initializing USB Mass Storage driver...
[35840.141043] scsi6 : usb-storage 7-1:1.0
[35840.141150] usbcore: registered new interface driver usb-storage
[35840.141151] USB Mass Storage support registered.
[35841.144825] scsi 6:0:0:0: Direct-Access     USB      Flash Disk       1100 PQ: 0 ANSI: 0 CCS
[35841.149681] sd 6:0:0:0: [sdb] 1957888 512-byte logical blocks: (1.00 GB/956 MiB)
[35841.150680] sd 6:0:0:0: [sdb] Write Protect is off
[35841.150687] sd 6:0:0:0: [sdb] Mode Sense: 43 00 00 00
[35841.152148] sd 6:0:0:0: [sdb] No Caching mode page present
[35841.152156] sd 6:0:0:0: [sdb] Assuming drive cache: write through
[35841.155055] sd 6:0:0:0: [sdb] No Caching mode page present
[35841.155062] sd 6:0:0:0: [sdb] Assuming drive cache: write through
[35841.156065]  sdb: sdb1
[35841.158174] sd 6:0:0:0: [sdb] No Caching mode page present
[35841.158180] sd 6:0:0:0: [sdb] Assuming drive cache: write through
[35841.158184] sd 6:0:0:0: [sdb] Attached SCSI disk
ewaller@odin:~ 1002 %lsmod | grep usb
usb_storage            44760  0 
scsi_mod              133152  5 uas,usb_storage,libata,sd_mod,sr_mod
usbcore               147434  5 uas,uhci_hcd,uvcvideo,usb_storage,ehci_hcd
usb_common               954  1 usbcore
ewaller@odin:~ 1003 %

...but -- Look at the kernel modules you have loaded (lsmod)  There should be a couple dozen modules, including usbcore and usb_storage.  How do yours look?

(BTW, I am very close to calling it a night)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
You assume people are rational and influenced by evidence.  You must not work with the public much. -- Trilby
----
How to Ask Questions the Smart Way

Offline

#6 2012-09-24 21:01:39

nadman10
Member
From: Erie, PA
Registered: 2005-10-15
Posts: 200

Re: [SOLVED]USB flash drive no longer showing up in /dev

lsmod outputs:

Module                  Size  Used by
fuse                   60222  2 
snd_hda_codec_hdmi     21248  1 
snd_hda_codec_realtek    50748  1 
snd_hda_intel          21808  4 
snd_hda_codec          83164  3 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_intel
snd_pcm                61301  3 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel
snd_page_alloc          5901  2 snd_pcm,snd_hda_intel
powernow_k8            12012  1 
snd_hwdep               4746  1 snd_hda_codec
snd_timer              14902  1 snd_pcm
snd                    44906  15 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_hda_codec,snd_hda_intel
soundcore               4378  1 snd
mperf                   1023  1 powernow_k8
forcedeth              50565  0 
i2c_nforce2             4456  0 
k8temp                  2590  0 
kvm_amd                46302  0 
kvm                   315149  1 kvm_amd
ppdev                   4750  0 
parport_pc             26569  0 
evdev                   7662  4 
processor              24235  1 powernow_k8
fan                     1902  0 
parport                26063  2 ppdev,parport_pc
pcspkr                  1455  0 
thermal                 6563  0 
button                  3614  0 
vboxdrv               195748  0 
ext4                  398870  3 
crc16                   1091  1 ext4
jbd2                   66342  1 ext4
mbcache                 4345  1 ext4
hid_generic              709  0 
sd_mod                 26991  5 
usbhid                 32107  0 
pata_amd                8155  0 
hid                    67908  2 hid_generic,usbhid
pata_acpi               2388  0 
ohci_hcd               19024  0 
ata_generic             2423  0 
sata_nv                17444  4 
libata                146119  4 pata_acpi,sata_nv,pata_amd,ata_generic
ehci_hcd               35958  0 
scsi_mod              112591  2 libata,sd_mod
usbcore               123890  3 ohci_hcd,ehci_hcd,usbhid
usb_common               622  1 usbcore
floppy                 48646  0 
radeon                782747  2 
i2c_algo_bit            4615  1 radeon
drm_kms_helper         29069  1 radeon
ttm                    46603  1 radeon
drm                   182234  4 ttm,drm_kms_helper,radeon
agpgart                21935  2 drm,ttm
i2c_core               16720  5 drm,drm_kms_helper,i2c_algo_bit,radeon,i2c_nforce2

So, I do see usbcore, but not usb_storage. I tried to manually load usb_storage using:

modprobe usb_storage

But had no luck.

Offline

#7 2012-09-24 23:36:14

Trilby
Forum Moderator
From: Massachusetts, USA
Registered: 2011-11-29
Posts: 14,751
Website

Re: [SOLVED]USB flash drive no longer showing up in /dev

Forgive me if this is too simple - but I've been guilty of it a number of times myself: have you rebooted since your last kernel upgrade?

This is the expected outcome if the kernel that is actively running does not match what is installed on disk.


InterrobangSlider
• How's my coding? See this page.
• How's my moderating? Feel free to email any concerns, complaints, or objections.

Offline

#8 2012-09-26 22:12:06

nadman10
Member
From: Erie, PA
Registered: 2005-10-15
Posts: 200

Re: [SOLVED]USB flash drive no longer showing up in /dev

Trilby wrote:

Forgive me if this is too simple - but I've been guilty of it a number of times myself: have you rebooted since your last kernel upgrade?

This is the expected outcome if the kernel that is actively running does not match what is installed on disk.

Two giant dumb dumb mistakes in one week.... I'm on a roll here. Thanks guys for your help.

Offline

#9 2013-05-14 14:34:55

sanderd17
Member
Registered: 2011-06-11
Posts: 32

Re: [SOLVED]USB flash drive no longer showing up in /dev

Trilby wrote:

Forgive me if this is too simple - but I've been guilty of it a number of times myself: have you rebooted since your last kernel upgrade?

This is the expected outcome if the kernel that is actively running does not match what is installed on disk.

Damn, I wondered why I could only connect my USB drives after a reboot. It seems like kernel releases happen more often than me plugging in an USB stick.

Thanks for that.

Offline

Board footer

Powered by FluxBB