LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   USB Mass Storage not detected (https://www.linuxquestions.org/questions/slackware-14/usb-mass-storage-not-detected-411121/)

kavius 02-02-2006 11:32 PM

USB Mass Storage not detected
 
Quote:

Warning!!
The problem discussed in this thread appears to be due to a hardware problem. If you are curious, feel free to read on. If you are looking for a solution to your own problem I suggest the link lestoil suggested to me:

http://www.linuxquestions.org/linux/...d_Reader_HowTo
I used to be able to mount my USB key easily, but it's been a while since I've used Linux seriously and now I can't figure out how to mount the stupid thing.

I followed directions on this site: http://www.linux-usb.org/USB-guide/c607.html#AEN609 (and a couple others that I can't seem to remember now) and I keep getting to the same point... No devices are every listed in /dev/proc/usb/devices.

I did read one thread on this site that seemed to indicate to me that I am going to need to be compiling modules, but want to make sure before I go making things worse.

Current contents of the drivers:

usbdevfs
hub
usb-storage

also the output from dmesg:

usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb-uhci.c: $Revision: 1.275 $ time 19:56:21 Jan 20 2005
usb-uhci.c: High bandwidth mode enabled
usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
usb.c: registered new driver usb-storage

and modprobe

usb-storage 62336 0 (unused)
usbcore 58860 1 [usb-storage]

And this is where I scratch my head and go huhhhh?
:newbie:

lestoil 02-03-2006 12:06 AM

What version of SW and what kernel? Are you using udev? With that info the right help will come.You can scan LQ tutorials hardware section for articles on usb/firewire hard drives and flash card readers to get you started. And at linuxforums.org there is How to mount usb flash drives in linux. Have fun.

BroX 02-03-2006 08:05 AM

What is the output of dmesg when you plug in the USB key? If it's recognised, it should be something like this:
Code:

root@sphritzs:/home/leon$ tail -f /var/log/messages
Feb  3 15:00:53 sphritzs kernel: usb 1-4: new high speed USB device using ehci_hcd and address 3
Feb  3 15:00:53 sphritzs kernel: scsi1 : SCSI emulation for USB Mass Storage devices
Feb  3 15:00:58 sphritzs kernel:  Vendor: SanDisk  Model: Cruzer Micro      Rev: 0.2
Feb  3 15:00:58 sphritzs kernel:  Type:  Direct-Access                      ANSI SCSI revision: 02
Feb  3 15:00:58 sphritzs kernel: SCSI device sda: 1000944 512-byte hdwr sectors (512 MB)
Feb  3 15:00:58 sphritzs kernel: sda: Write Protect is off
Feb  3 15:00:58 sphritzs kernel: SCSI device sda: 1000944 512-byte hdwr sectors (512 MB)
Feb  3 15:00:58 sphritzs kernel: sda: Write Protect is off
Feb  3 15:00:58 sphritzs kernel:  sda: sda1
Feb  3 15:00:58 sphritzs kernel: Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0

So, the USB key can then be mounted as
Code:

# mount /dev/sda1 /mnt/your-mount-point-here/
Cheers, Leon.

vbisis 02-03-2006 08:52 AM

try modprobe sg

kavius 02-03-2006 10:30 AM

When I plug in the USB device, there is no change in dmesg (actually, the one I posted was with the device plugged in).

"modprobe sg".... Didn't know about the "sg" driver. I had looked at a couple of other modules related to scsi, but didn't know about that one. I'll give it a try when I get home tonight (at work right now).

Just a little more history. I had backed up a bunch of data to a USB drive I borrowed from work (OS was basic install of 8.x), and wiped my hard drive. I haven't used a USB drive since, and then recently my boss asked me about this data. Fast forward a year and I have done a fresh install on that machine (Slack 10.x). So I took the drive home, plugged it in, tried to mount /dev/sda1... nothing. That was two weeks ago.

cwwilson721 02-03-2006 01:51 PM

Oops! Others already said this...Darn my slow connection....lol

spooge 02-04-2006 02:22 AM

try
Code:

fdisk -l
should show the new drive
and then mount it
Code:

mount /dev/sdc1 /mnt/usb
works for me

nutronix 02-04-2006 05:19 AM

my USB entry in fstab ;

/dev/sda1 /mnt/USBdrive auto user,rw,noauto 0 0

as root in /mnt i = mkdir USBdrive

rebooted.....et voilą.
good luck

ps = i also uncommented the usb mass storage entry in /etc/rc.d/rc.modules

kavius 02-04-2006 04:05 PM

I don't seem to have the sg module. Shouldn't that have installed with my installation (Slackware 10.1)? I will attempt to compile it over the next couple of days.

"fdisk -l" showed only /dev/hda1-9 and I've already uncommented the modprobe line for the usb-storage.

It appears as though my USB device is not being detected at all.

detpenguin 02-04-2006 05:33 PM

this thread helped me get mine working...

kavius 02-04-2006 07:45 PM

detpenguin:
None of that helped. My device does not appear to be being detected at all. I followed all of the steps and the output from my dmesg only changed after hotplug restarts:

usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
uhci.c: USB Universal Host Controller Interface driver v1.1
usb-uhci.c: $Revision: 1.275 $ time 19:56:21 Jan 20 2005
usb-uhci.c: High bandwidth mode enabled
usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
usb-uhci.c: $Revision: 1.275 $ time 19:56:21 Jan 20 2005
usb-uhci.c: High bandwidth mode enabled
usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
uhci.c: USB Universal Host Controller Interface driver v1.1
usb.c: deregistering driver usb-storage
usb.c: deregistering driver usbdevfs
usb.c: deregistering driver hub
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
uhci.c: USB Universal Host Controller Interface driver v1.1
usb-uhci.c: $Revision: 1.275 $ time 19:56:21 Jan 20 2005
usb-uhci.c: High bandwidth mode enabled
usb-uhci.c: v1.275:USB Universal Host Controller Interface driver

lestoil 02-04-2006 08:59 PM

kavius http://www.linuxquestions.org/linux/...d_Reader_HowTo should get things going for you. Though it is for card readers it applies to flash drives and hard drives. Step by step. It's an LQ tutorial.

kavius 02-05-2006 10:15 PM

lestoil:
Sorry, for some reason I didn't notice your first post. SW 10.1, Kernel 2.4.29. I have since downloaded the code for 2.6.13 from the slackware site and compiled that. No help. Infact my sound card doesn't work... booo. Kind of ironic, since the data I am trying to get off the USB device are all of my music files <chuckle />. Fortunately, I backed up the 2.4 kernel so no worries there.

I tried the link you suggested: no effect. After recompiling the kernel, and rebooting, I plug in the device and cat /proc/scsi/scsi. There are no attached devices listed.

detpenguin 02-05-2006 10:36 PM

plug your usb key in, and as root in a terminal type

Quote:

tail /var/log/messages
and post the results...

kavius 02-05-2006 10:51 PM

This one is totally meaningless to me....

root@loki:/usr/src/linux-2.6.13# tail /var/log/messages
Feb 6 03:58:04 loki udev[2488]: removing device node '/dev/vcc/1'
Feb 6 03:58:04 loki udev[2494]: removing device node '/dev/vcc/a1'
Feb 6 03:58:05 loki udev[2506]: configured rule in '/etc/udev/rules.d/udev.rules' at line 99 applied, added symlink '%k'
Feb 6 03:58:05 loki udev[2506]: configured rule in '/etc/udev/rules.d/udev.rules' at line 99 applied, 'vcs7' becomes 'vcc/%n'
Feb 6 03:58:05 loki udev[2506]: creating device node '/dev/vcc/7'
Feb 6 03:58:05 loki udev[2512]: configured rule in '/etc/udev/rules.d/udev.rules' at line 101 applied, added symlink '%k'
Feb 6 03:58:05 loki udev[2512]: configured rule in '/etc/udev/rules.d/udev.rules' at line 101 applied, 'vcsa7' becomes 'vcc/a%n'
Feb 6 03:58:05 loki udev[2512]: creating device node '/dev/vcc/a7'
Feb 6 04:17:35 loki -- MARK --
Feb 6 04:37:35 loki -- MARK --

Current time is 04:59


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