Re: Can't Access USB Flash Drive as /dev/sda

From: Tim McCoy (tmccoy_at_hotPOP.com)
Date: 01/31/05


Date: Tue, 01 Feb 2005 09:19:23 +1100

On Mon, 31 Jan 2005 18:41:27 +0000, HaroldWho wrote:

> kernel 2.6.9 on Dell OptiPlex GX110
>
> USB 1.1 support module uhci_hcd and mass storage module usb_storage are
> loaded by modprobe without error messages.
>
> /var/log/messages shows:
>
> kernel: uhci_hcd 0000:00:1f.2: irq 11, io base 0000ff80
> kernel: uhci_hcd 0000:00:1f.2: new USB bus registered, assigned bus number 1
> kernel: hub 1-0:1.0: USB hub found
> kernel: hub 1-0:1.0: 2 ports detected
> kernel: Initializing USB Mass Storage driver...
> kernel: usbcore: registered new driver usb-storage
> kernel: USB Mass Storage support registered.
> kernel: usb 1-2: new full speed USB device using address 2
>
> Now /proc/bus/usb/devices shows the USB host and a "mass storage device."
>
> Next, SCSI disk module sd_mod loaded by modprobe without *any* messages.
> (Basic SCSI support is compiled into kernel; SCSI tape works fine from
> Advansys controller.)
>
> BUT...
>
> /proc/scsi shows no devices present.
>
> # fdisk /dev/sda
> Unable to open /dev/sda
>
> # mount -t auto /dev/sda1 /mnt
> mount: /dev/sda is not a valid block device
>
> With driver from mfr, the flash drive is seen in Win98SE! In fact, I
> formatted it and copied files to it.
>
> Looks like some kind of problem with the SCSI disk driver module sd_mod.
>
> Any ideas?
>
> HaroldWho

After a fresh boot of your system, put the output of "dmesg" when you plug
in your flash drive. It should look something very similar to this:

usb 1-3: new high speed USB device using address 2
scsi2 : SCSI emulation for USB Mass Storage devices
  Vendor: 128MB Model: USB2.0FlashDrive Rev: 2.00
  Type: Direct-Access ANSI SCSI revision: 02
SCSI device sda: 256000 512-byte hdwr sectors (131 MB)
sda: assuming Write Enabled
sda: assuming drive cache: write through
 sda: sda1
Attached scsi removable disk sda at scsi2, channel 0, id 0, lun 0
Attached scsi generic sg2 at scsi2, channel 0, id 0, lun 0, type 0
USB Mass Storage device found at 2

In the kernel, you need at least
USB Mass storage Support (usb-storage)
SCSI Generic Support (sg)

Your mount command is ok, but its always going to be a number after the
sda entry. Id suggest making sure that its FAT32 formatted, and then just
mount with

mkdir /mnt/flash
chmod 777 /mnt/flash
mount -t vfat /dev/sda1 /mnt/flash

Cheers

Tim

-- 
"Linux... because rebooting is for adding new hardware!"
http://home.swiftdsl.com.au/~tmccoy
MSN: timsy_01@hotmail.com
ICQ: 160341067


Relevant Pages

  • Re: Cant Access USB Flash Drive as /dev/sda
    ... > In the kernel, you need at least ... > USB Mass storage Support ... You said that I need USB Mass storage Support and SCSI Generic Support "in ...
    (comp.os.linux.hardware)
  • Re: Q:how to mount external USB-HDD
    ... > Did you recompile your kernel with the SCSI emulation, SCSI Generic, ... USB support and USB mass storage support? ...
    (comp.os.linux.setup)
  • Re: a pair of questions
    ... I'm assuming that the kernel detects your 4-slot reader at boot time, ... SCSI subsystem initialized ... Initializing USB Mass Storage driver... ... the only stanza required would be udev rules. ...
    (Debian-User)
  • Re: Kernel for Dual Core
    ... you don't have, e.g. wireless LAN, EISA, USB NICs, RAID, SCSI etc. - although be aware that USB Mass Storage devices are handled as SCSI so if you use any of those I'd leave everything in the SCSI Peripherals section and just remove the SCSI Controllers. ... if you do a cdrom install of FreeBSD, the Kernel is based on GENERIC. ... To confirm that your running kernel has detected and started both CPUs: ...
    (freebsd-questions)
  • Re: mounting external hard drive on linux
    ... If it's not, enable it as a module, build/install the kernel ... The USB Mass Storage support was checked, ...
    (comp.os.linux.development.system)