LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (http://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   USB drive works on DSL, not DSL-N. DSL-N has kernel 2.6.12 (http://www.linuxquestions.org/questions/linux-hardware-18/usb-drive-works-on-dsl-not-dsl-n-dsl-n-has-kernel-2-6-12-a-660965/)

mkenyon2 08-06-2008 05:00 PM

USB drive works on DSL, not DSL-N. DSL-N has kernel 2.6.12
 
So, I plug in my USB drive, check dmesg, and get this:
Code:

usb 1-1: new full speed USB device using uhci_hcd and address 3
Yummy! Right? Wrong. I can't mount it.

I try fdisk -l, and only see my hda1.

I ls /dev/sd* and none are lit up as available. (Colored ls)

mount /dev/sda1 /mnt/sda1 gives me:
Code:

mount: /dev/sda1 is not a valid block device
What's up with this? It worked fine in DSL, which was on the 2.4 kernel.

mkenyon2 08-07-2008 12:29 PM

Solution

For my situation, DMESG was posting that the USB was inserted, but nothing about loading it as a drive.

I found a post that suggested this:
Code:

sudo modprobe usb_storage
After that DMESG posted:
Code:

usb-storage: device found at 2
...
SCSI device sda: ...
sda:...
 sda: sda1
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0

I was then able to mount the drive.

To keep this permanent, I created a file called local in /etc/init.d/
Code:

#!/bin/bash
modprobe usb_storage

I set it to executable:
Code:

chmod +x local
and now I can mount any time I need to.

I hope this helps somebody else.


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