LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-02-2006, 11:32 PM   #1
kavius
Member
 
Registered: Feb 2003
Location: Halifax, NS, CAN
Distribution: Ubuntu
Posts: 71

Rep: Reputation: 16
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?

Last edited by kavius; 02-06-2006 at 10:52 PM.
 
Old 02-03-2006, 12:06 AM   #2
lestoil
Member
 
Registered: Apr 2004
Location: new york
Distribution: win2k,ubuntu,sw13,arch,centos5.3
Posts: 815

Rep: Reputation: 31
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.

Last edited by lestoil; 02-03-2006 at 12:15 AM.
 
Old 02-03-2006, 08:05 AM   #3
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-15.0
Posts: 833

Rep: Reputation: 90
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.
 
Old 02-03-2006, 08:52 AM   #4
vbisis
Member
 
Registered: Dec 2005
Distribution: Slackware
Posts: 250

Rep: Reputation: 34
try modprobe sg
 
Old 02-03-2006, 10:30 AM   #5
kavius
Member
 
Registered: Feb 2003
Location: Halifax, NS, CAN
Distribution: Ubuntu
Posts: 71

Original Poster
Rep: Reputation: 16
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.
 
Old 02-03-2006, 01:51 PM   #6
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
Oops! Others already said this...Darn my slow connection....lol

Last edited by cwwilson721; 02-03-2006 at 01:53 PM.
 
Old 02-04-2006, 02:22 AM   #7
spooge
Member
 
Registered: Nov 2001
Location: n chicago, IL. USA
Distribution: Slackware
Posts: 307

Rep: Reputation: 31
try
Code:
fdisk -l
should show the new drive
and then mount it
Code:
mount /dev/sdc1 /mnt/usb
works for me

Last edited by spooge; 02-04-2006 at 02:24 AM.
 
Old 02-04-2006, 05:19 AM   #8
nutronix
Member
 
Registered: Jan 2003
Location: montreal
Distribution: Slackware and Debian
Posts: 139
Blog Entries: 1

Rep: Reputation: 20
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

Last edited by nutronix; 02-04-2006 at 05:25 AM.
 
Old 02-04-2006, 04:05 PM   #9
kavius
Member
 
Registered: Feb 2003
Location: Halifax, NS, CAN
Distribution: Ubuntu
Posts: 71

Original Poster
Rep: Reputation: 16
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.

Last edited by kavius; 02-04-2006 at 04:10 PM.
 
Old 02-04-2006, 05:33 PM   #10
detpenguin
Senior Member
 
Registered: Oct 2003
Location: lost in the midwest...
Distribution: Slackware
Posts: 1,098

Rep: Reputation: 54
this thread helped me get mine working...
 
Old 02-04-2006, 07:45 PM   #11
kavius
Member
 
Registered: Feb 2003
Location: Halifax, NS, CAN
Distribution: Ubuntu
Posts: 71

Original Poster
Rep: Reputation: 16
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
 
Old 02-04-2006, 08:59 PM   #12
lestoil
Member
 
Registered: Apr 2004
Location: new york
Distribution: win2k,ubuntu,sw13,arch,centos5.3
Posts: 815

Rep: Reputation: 31
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.
 
Old 02-05-2006, 10:15 PM   #13
kavius
Member
 
Registered: Feb 2003
Location: Halifax, NS, CAN
Distribution: Ubuntu
Posts: 71

Original Poster
Rep: Reputation: 16
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.
 
Old 02-05-2006, 10:36 PM   #14
detpenguin
Senior Member
 
Registered: Oct 2003
Location: lost in the midwest...
Distribution: Slackware
Posts: 1,098

Rep: Reputation: 54
plug your usb key in, and as root in a terminal type

Quote:
tail /var/log/messages
and post the results...
 
Old 02-05-2006, 10:51 PM   #15
kavius
Member
 
Registered: Feb 2003
Location: Halifax, NS, CAN
Distribution: Ubuntu
Posts: 71

Original Poster
Rep: Reputation: 16
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

Last edited by kavius; 02-05-2006 at 10:53 PM.
 
  


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
After plug in apacer ht202 usb mass storage into usb port. Nothing appear. tellmeimhong Linux - Hardware 3 02-04-2006 02:32 AM
USB Mass Storage Zebee Linux - Hardware 2 08-03-2003 08:17 PM
usb mass storage Erwan Linux - Hardware 6 07-08-2003 05:39 PM
usb mass storage mohapi Linux - Hardware 3 06-03-2003 12:44 AM
USB Mass Storage mrsolo Linux - Hardware 11 10-25-2002 06:24 PM

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

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