LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-02-2006, 06:10 PM   #1
rabalder321
Member
 
Registered: Dec 2005
Posts: 37

Rep: Reputation: 15
USB storage device not working


Hello

I recently upgraded from kernel 2.4.29 to 2.6.11. In the 2.4.29 version, my USB storage device worked fine, but now I can't get it to work.

When I do cat /proc/scsi/scsi under 2.6.11 I get this:

root@rabalder:/usr/src/linux# cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: Maxtor Model: 6L250R0 Rev: BAH4
Type: Direct-Access ANSI SCSI revision: 02


And when I do cat /proc/scsi/usb-storage/0 I get this:

root@rabalder:/usr/src/linux# cat /proc/scsi/usb-storage/0
Host scsi0: usb-storage
Vendor: LaCie
Product: LaCie Hard Drive USB
Serial Number: 10000E000A66001C
Protocol: Transparent SCSI
Transport: Bulk
Quirks:


When I turn the storage device off, I get nothing with the above commands, so I guess my machine really finds the device. The strange thing is that I have no sda devices in /dev/, which I had when running 2.4.29. Could it be I've missed something when compiling the kernel? Or maybe theres just some piece of code I have to pass? I chose to compile with scsi device support, and turned on the /proc, /dev and /dev/pts options under File systems --> Pseudo File systems, and I chose to install scsi support.

I also imported my old config from my (working) 2.4.29 kernel, so I can't see why it shouldn't work.

Thanks for any help!
 
Old 01-02-2006, 10:57 PM   #2
mimithebrain
Member
 
Registered: Nov 2003
Location: ~
Distribution: Ubuntu 10.04
Posts: 843
Blog Entries: 1

Rep: Reputation: 30
enable this:

CONFIG_USB_STORAGE=y

as a module or loaded in the kernel, then (load it)/(install the kernel and reboot).
also, udev is used instead of the older driver.
 
Old 01-03-2006, 03:56 AM   #3
rabalder321
Member
 
Registered: Dec 2005
Posts: 37

Original Poster
Rep: Reputation: 15
Thanks mimithebrain, but CONFIG_USB_STORAGE is already set (to 'm') in my config. I couldn't find and option to choose udev, would you happen to know where this is?

But as my machine finds the device (when I do cat /proc/scsi/scsi and cat /proc/scsi/usb-storage/0), can't I just add some sort of symbolic link or something to /proc/scsi/usb-storage/0?

Thanks
 
Old 01-03-2006, 04:36 AM   #4
rabalder321
Member
 
Registered: Dec 2005
Posts: 37

Original Poster
Rep: Reputation: 15
Hi again, this is a part of what I get when I do dmesg:

ohci_hcd: 2004 Nov 08 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)
ohci_hcd: block sizes: ed 64 td 64
hub 1-0:1.0: state 5 ports 8 chg 0000 evt 0040
ehci_hcd 0000:00:1d.7: GetStatus port 6 status 001803 POWER sig=j CSC CONNECT
hub 1-0:1.0: port 6, status 0501, change 0001, 480 Mb/s
hub 1-0:1.0: debounce: port 6: total 100ms stable 100ms status 0x501
ehci_hcd 0000:00:1d.7: port 6 high speed
ehci_hcd 0000:00:1d.7: GetStatus port 6 status 001005 POWER sig=se0 PE CONNECT
usb 1-6: new high speed USB device using ehci_hcd and address 3
ehci_hcd 0000:00:1d.7: port 6 high speed
ehci_hcd 0000:00:1d.7: GetStatus port 6 status 001005 POWER sig=se0 PE CONNECT
usb 1-6: new device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-6: default language 0x0409
usb 1-6: Product: LaCie Hard Drive USB
usb 1-6: Manufacturer: LaCie
usb 1-6: SerialNumber: 10000E000A66001C
usb 1-6: hotplug
usb 1-6: adding 1-6:1.0 (config #1, interface 0)
usb 1-6:1.0: hotplug
Initializing USB Mass Storage driver...


So the device is found by hotplug, but doesn't exist as a blockdevice.
 
Old 01-03-2006, 11:59 AM   #5
mimithebrain
Member
 
Registered: Nov 2003
Location: ~
Distribution: Ubuntu 10.04
Posts: 843
Blog Entries: 1

Rep: Reputation: 30
What distro are you using? When I reinstalled stage2 gentoo four days ago, I caught on my screen that the old devfs was replaced by udev, and hotplug was "dead and burried" (LOL!).

Now this is of interest to you: http://www.gentoo.org/doc/en/migration-to-2.6.xml

Scroll down to USB storage, there is a bunch of instructions on how to get it working again, as well as look at the rest of the document, important information about the new 2.6 kernel.

 
Old 01-06-2006, 10:31 AM   #6
rabalder321
Member
 
Registered: Dec 2005
Posts: 37

Original Poster
Rep: Reputation: 15
Hello, I managed to fix it. This is what I did (on kernel 2.6.12, Slackware 10.1):

1. tail -f /var/log/messages, to see if the computer actually could find my usb storage device, and it did.

2. Did mknod /dev/sda b 8 0, mknod /dev/sda1 b 8 1, mknod /dev/sda2 b 8 2, etc to 15.

3. Did mkdir /mnt/usbhdd.

4. Did mount -t ntfs /dev/sda1 /mnt/usbhdd/.

Thanks mimithebrain. The page that helped me was http://www.ibiblio.org/pub/Linux/doc...ory-HOWTO.html, and it wasn't that hard. It's just that I didn't know of the mknod command. Hope this helps someone else =)
 
Old 01-06-2006, 06:34 PM   #7
mimithebrain
Member
 
Registered: Nov 2003
Location: ~
Distribution: Ubuntu 10.04
Posts: 843
Blog Entries: 1

Rep: Reputation: 30
eh? the nodes weren't in place? that's most interesting, well, I learn something everyday

Thanks for finding this out rabalder321, it should proove to be interesting for further troubleshooting.
 
  


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
USB drive not working properly, read only device? (USB key storage device) Arodef Linux - Hardware 14 01-01-2010 08:32 AM
get USB storage device working under Mandrake 10.0 ditch* Linux - Hardware 6 09-29-2004 06:55 AM
Assign one USB-storage device to one device file Misel Linux - Hardware 1 08-28-2004 04:52 AM
Variables invloved with working camera/usb storage device connection jimdaworm Slackware 2 04-25-2004 12:12 PM
how can I mount this device: da0: <USB 2.0 Storage Device alkad_mzu *BSD 2 11-15-2003 07:15 PM


All times are GMT -5. The time now is 04:20 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration