LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-20-2004, 07:09 AM   #1
jkobrien
Member
 
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slackware, LFS, Ubuntu, RedHat, Slamd64
Posts: 507

Rep: Reputation: 30
usbkey only works once after boot


Hi LQers,

I'm running Slackware 10, with custom compiled kernel 2.6.7

If I boot up with a usbkey in the usb slot I can mount and unmount it to my heart's content, but if I unplug it (after unmounting it) and then replug and try to mount it, I get...

mount: special device /dev/sdb1 does not exist

I've compiled in all the things you're supposed to (usbcore, usb-uhci, usb-storage, scsi_mod, sg, sd_mod) and also udev.

The relevant line of fstab is...

/dev/sdb1 /mnt/usbkey vfat noauto,user 0 0

The command lsusb gives me the following output...

Bus 004 Device 002: ID 08ec:0012 M-Systems Flash Disk Pioneers
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 003: ID 046d:c00c Logitech, Inc. Optical Wheel Mouse
Bus 001 Device 001: ID 0000:0000

I don't know how to interpret this. Does it mean that sdb1 is the wrong entry in fstab?

Any help would be much appreciated,

John
 
Old 10-20-2004, 07:12 AM   #2
0.o
Member
 
Registered: May 2004
Location: Raleigh, NC
Distribution: Debian, Solaris, HP-UX, AIX
Posts: 208

Rep: Reputation: 35
After you stick it back in is it still known as sdb1? dmesg | grep sd .
 
Old 10-21-2004, 07:21 AM   #3
jkobrien
Member
 
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slackware, LFS, Ubuntu, RedHat, Slamd64
Posts: 507

Original Poster
Rep: Reputation: 30
I get...

Attached scsi removable disk sdb at scsi2, channel 0, id 0, lun 0
Attached scsi removable disk sdb at scsi3, channel 0, id 0, lun 0

Does this mean that I should be using sdb2? There's no such device under /dev though.

Thanks,

John
 
Old 10-28-2004, 05:50 AM   #4
jkobrien
Member
 
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slackware, LFS, Ubuntu, RedHat, Slamd64
Posts: 507

Original Poster
Rep: Reputation: 30
Bump
 
Old 11-23-2004, 11:40 AM   #5
jkobrien
Member
 
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slackware, LFS, Ubuntu, RedHat, Slamd64
Posts: 507

Original Poster
Rep: Reputation: 30
Hi,

I found the problem, but not the solution...

when I plug the stick in, the following appears at the end of /var/log/messages:

Code:
Nov 23 17:25:09 pharm87 kernel: usb 1-6: new high speed USB device using address 6
Nov 23 17:25:09 pharm87 kernel: usb 1-6: Product: disgo
Nov 23 17:25:09 pharm87 kernel: usb 1-6: Manufacturer: M-Sys
Nov 23 17:25:09 pharm87 kernel: usb 1-6: SerialNumber: 1781413425000B20
Nov 23 17:25:09 pharm87 kernel: scsi5 : SCSI emulation for USB Mass Storage devices
Nov 23 17:25:10 pharm87 kernel:   Vendor:           Model: disgo             Rev: 4.70
Nov 23 17:25:10 pharm87 kernel:   Type:   Direct-Access                      ANSI SCSI revision: 02
Nov 23 17:25:10 pharm87 kernel: Attached scsi removable disk sdb at scsi5, channel 0, id 0, lun 0
Nov 23 17:25:10 pharm87 scsi.agent[3730]: disk at /devices/pci0000:00/0000:00:1d.7/usb1/1-6/1-6:1.0/host5/5:0:0:0
Nov 23 17:25:10 pharm87 modprobe: FATAL: Module sd_mod not found.
Nov 23 17:25:10 pharm87 usb.agent[3716]: ... no modules for USB product 8ec/12/200
Nov 23 17:25:10 pharm87 udev[3793]: creating device node '/dev/sdb'
So, it's not finding the scsi disk support module. Now, I have this built into the kernel and, according to the docs, can't have it as a module because my root file system is on a scsi hard disk.

Any and all suggestions gratefully received...

John
 
Old 12-06-2004, 04:37 AM   #6
cyberhawk
Member
 
Registered: May 2003
Distribution: Slackware 10
Posts: 34

Rep: Reputation: 15
stop and restart your hotplug service
with
/etc/rc.d/rc.hotplug stop
and then
/etc/rc.d/rc.hotplug start

this should fix it
 
Old 01-06-2005, 05:41 AM   #7
jkobrien
Member
 
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slackware, LFS, Ubuntu, RedHat, Slamd64
Posts: 507

Original Poster
Rep: Reputation: 30
In case someone with a similar problem stumbles across this thread, I fixed it by upgrading the kernel to 2.6.10

Also, I made the following .config changes (which possibly would have fixed my problem without the kernel upgrade):

CONFIG_USB_ARCH_HAS_HCD=y
CONFIG_USB_ARCH_HAS_OHCI=y
CONFIG_USB_OHCI_HCD=y

Now I can unplug and replug all I want, and have no problem reading my memory stick, my mp3 player or my digitial camera all through my usb port.

John
 
  


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
automounting usbkey using udev bbenn Linux - Software 0 10-04-2005 04:16 AM
Slackware image on usbkey DarkNeo Linux - Software 5 08-15-2005 06:44 AM
zipslack & usbkey eno_on Linux - General 1 01-08-2005 11:23 PM
Usbkey Lobais Linux - Hardware 3 09-28-2004 08:28 AM
Unable to setup usbkey for use in fedora tuckerg76 Fedora 2 03-23-2004 02:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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