Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
02-02-2006, 11:32 PM
|
#1
|
Member
Registered: Feb 2003
Location: Halifax, NS, CAN
Distribution: Ubuntu
Posts: 71
Rep:
|
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.
|
|
|
02-03-2006, 12:06 AM
|
#2
|
Member
Registered: Apr 2004
Location: new york
Distribution: win2k,ubuntu,sw13,arch,centos5.3
Posts: 815
Rep:
|
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.
|
|
|
02-03-2006, 08:05 AM
|
#3
|
Member
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-15.0
Posts: 835
Rep:
|
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.
|
|
|
02-03-2006, 08:52 AM
|
#4
|
Member
Registered: Dec 2005
Distribution: Slackware
Posts: 250
Rep:
|
try modprobe sg
|
|
|
02-03-2006, 10:30 AM
|
#5
|
Member
Registered: Feb 2003
Location: Halifax, NS, CAN
Distribution: Ubuntu
Posts: 71
Original Poster
Rep:
|
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.
|
|
|
02-03-2006, 01:51 PM
|
#6
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Rep:
|
Oops! Others already said this...Darn my slow connection....lol
Last edited by cwwilson721; 02-03-2006 at 01:53 PM.
|
|
|
02-04-2006, 02:22 AM
|
#7
|
Member
Registered: Nov 2001
Location: n chicago, IL. USA
Distribution: Slackware/Debian
Posts: 308
Rep:
|
try 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.
|
|
|
02-04-2006, 05:19 AM
|
#8
|
Member
Registered: Jan 2003
Location: montreal
Distribution: Debian Ubuntu & Slackware
Posts: 148
Rep:
|
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.
|
|
|
02-04-2006, 04:05 PM
|
#9
|
Member
Registered: Feb 2003
Location: Halifax, NS, CAN
Distribution: Ubuntu
Posts: 71
Original Poster
Rep:
|
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.
|
|
|
02-04-2006, 05:33 PM
|
#10
|
Senior Member
Registered: Oct 2003
Location: lost in the midwest...
Distribution: Slackware
Posts: 1,098
Rep:
|
this thread helped me get mine working...
|
|
|
02-04-2006, 07:45 PM
|
#11
|
Member
Registered: Feb 2003
Location: Halifax, NS, CAN
Distribution: Ubuntu
Posts: 71
Original Poster
Rep:
|
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
|
|
|
02-04-2006, 08:59 PM
|
#12
|
Member
Registered: Apr 2004
Location: new york
Distribution: win2k,ubuntu,sw13,arch,centos5.3
Posts: 815
Rep:
|
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.
|
|
|
02-05-2006, 10:15 PM
|
#13
|
Member
Registered: Feb 2003
Location: Halifax, NS, CAN
Distribution: Ubuntu
Posts: 71
Original Poster
Rep:
|
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.
|
|
|
02-05-2006, 10:36 PM
|
#14
|
Senior Member
Registered: Oct 2003
Location: lost in the midwest...
Distribution: Slackware
Posts: 1,098
Rep:
|
plug your usb key in, and as root in a terminal type
and post the results...
|
|
|
02-05-2006, 10:51 PM
|
#15
|
Member
Registered: Feb 2003
Location: Halifax, NS, CAN
Distribution: Ubuntu
Posts: 71
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 06:31 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|