Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with 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.
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.
I looked around in several support forums and googled a while, but didn't get a solution for my problem:
- I want to mount a 6in1 Card Reader Writer (Hama 00046944) as an USB
mass storage device
- When I want to mount the card reader with the fstab entry:
/dev/sda1 /media/cfread vfat defaults,user 0 0
at the exisiting mount point /media/cfreader
I get "/dev/sda1 is not a valid block device"
(BTW, I tried ths with sdb, sdc and sdd as well)
I want to know, if there is any solution to this problem, or if I should simply give up. I really appreciate any help, even if it says "don't buy cheap card readers".
I can provide the following information on my fruitless efforts:
Linux version: SuSe 8.2, Kernel 2.4.20
Messages from the console:
Oct 11 12:25:52 OFNsOWN kernel: usb-uhci.c: interrupt, status 3, frame# 949
Oct 11 12:25:52 OFNsOWN kernel: sda : READ CAPACITY failed.
Oct 11 12:25:52 OFNsOWN kernel: sda : status = 1, message = 00, host = 0, driver = 08
Oct 11 12:25:52 OFNsOWN kernel: Info fld=0x0, Current sd00:00: sns = f0 2
Oct 11 12:25:52 OFNsOWN kernel: ASC=3a ASCQ= 0
Oct 11 12:25:52 OFNsOWN kernel: Raw sense data:0xf0 0x00 0x02 0x00 0x00 0x00 0x00 0x0a 0x00 0x00 0x00 0x00 0x3a 0x00 0x00 0x00 0x00 0x00
Oct 11 12:25:52 OFNsOWN kernel: sda : block size assumed to be 512 bytes, disk size 1GB.
Oct 11 12:25:52 OFNsOWN kernel: sda: test WP failed, assume Write Enabled
Oct 11 12:25:52 OFNsOWN kernel: I/O error: dev 08:00, sector 2
Oct 11 12:25:52 OFNsOWN kernel: I/O error: dev 08:00, sector 0
Oct 11 12:25:52 OFNsOWN kernel: unable to read partition table
Oct 11 12:25:52 OFNsOWN kernel: I/O error: dev 08:00, sector 0
usbview shows for mass storage the following entry:
Mass Storage Device
Manufacturer: Generic
Serial Number: 9206051
Speed: 12Mb/s (full)
USB Version: 1.10
Device Class: 00(>ifc )
Device Subclass: 00
Device Protocol: 00
Maximum Default Endpoint Size: 8
Number of Configurations: 1
Vendor Id: 058f
Product Id: 9360
Revision Number: 1.00
Config Number: 1
Number of Interfaces: 1
Attributes: 80
MaxPower Needed: 100mA
Interface Number: 0
Name: usb-storage
Alternate Number: 0
Class: 08(stor.)
Sub Class: 6
Protocol: 50
Number of Endpoints: 2
Endpoint Address: 01
Direction: out
Attribute: 2
Type: Bulk
Max Packet Size: 64
Interval: 0ms
Endpoint Address: 82
Direction: in
Attribute: 2
Type: Bulk
Max Packet Size: 64
Interval: 0ms
Thanks for all the help
Oliver F. Nandico
--
--------------------+---------------------------------------------------
Oliver F. Nandico |eMail: news at O-F-N dot de
Josephsburgstr. 55B |Phone: +49 89 68008586
81673 München |
Germany |
Try adding the following line in your fstab: none /proc/bus/usb usbdevfs defaults 0 0
I stumbled across that while googling for something else yesterday. I don't actually have a USB card reader, but I intend to buy one (for SmartMedia cards). Looking forward to your posts with interest.
Well, the usbdevfs file system is the file system showing the usb devices in the proc file system.
You need to mount it to use usbview for example (and of course I did mount it)
Unfortunately this has nothing to do with the actual device (the scsi removable disk device)
mounted (at least I try) on top of the usb mass storage device.
So, this hasn't solved the problem. I think I saw a similar misleading post somewhere yesterday.
Solved: USB CF Card Reader/Write not a valid block device
My problem with the CF Card Reader is solved:
The trick was to configure the kerner opt "Probe all LUNS" for SCSI support.
The Kernel Configuration for SCSI
#
# SCSI support type (disk, tape, CD-ROM)
#
CONFIG_BLK_DEV_SD=y
CONFIG_SD_EXTRA_DEVS=40
# CONFIG_CHR_DEV_ST is not set
# CONFIG_CHR_DEV_OSST is not set
CONFIG_BLK_DEV_SR=y
# CONFIG_BLK_DEV_SR_VENDOR is not set
CONFIG_SR_EXTRA_DEVS=32
CONFIG_CHR_DEV_SCH=y
CONFIG_CHR_DEV_SG=y
#
# Some SCSI devices (e.g. CD jukebox) support multiple LUNs
#
CONFIG_SCSI_DEBUG_QUEUES=y
CONFIG_SCSI_MULTI_LUN=y <--- This is the crucial one
CONFIG_SCSI_CONSTANTS=y
CONFIG_SCSI_LOGGING=y
Just to be complete my USB configuration flags:
#
# USB support
#
CONFIG_USB=y
CONFIG_USB_DEBUG=y
#
# USB Host Controller Drivers
#
CONFIG_USB_EHCI_HCD=y
CONFIG_USB_UHCI=y
# CONFIG_USB_UHCI_ALT is not set
CONFIG_USB_OHCI=y
#
# USB Device Class drivers
#
# CONFIG_USB_AUDIO is not set
# CONFIG_USB_BLUETOOTH is not set
# CONFIG_USB_MIDI is not set
CONFIG_USB_STORAGE=y
CONFIG_USB_STORAGE_DEBUG=y
CONFIG_USB_STORAGE_DATAFAB=y
# CONFIG_USB_STORAGE_FREECOM is not set
# CONFIG_USB_STORAGE_ISD200 is not set
# CONFIG_USB_STORAGE_DPCM is not set
CONFIG_USB_STORAGE_HP8200e=y
CONFIG_USB_STORAGE_SDDR09=y
CONFIG_USB_STORAGE_SDDR55=y
# CONFIG_USB_STORAGE_JUMPSHOT is not set
# CONFIG_USB_ACM is not set
# CONFIG_USB_SPEEDTOUCH is not set
# CONFIG_USB_PRINTER is not set
The console shows no the follwing messages:
Oct 12 15:57:52 OFNsOWN kernel: sda : READ CAPACITY failed.
Oct 12 15:57:52 OFNsOWN kernel: sda : status = 1, message = 00, host = 0, driver = 08
Oct 12 15:57:52 OFNsOWN kernel: Info fld=0x0, Current sd00:00: sense key Not Ready
Oct 12 15:57:52 OFNsOWN kernel: Additional sense indicates Medium not present
Oct 12 15:57:52 OFNsOWN kernel: sda : block size assumed to be 512 bytes, disk size 1GB.
Oct 12 15:57:52 OFNsOWN kernel: sda: test WP failed, assume Write Enabled
Oct 12 15:57:52 OFNsOWN kernel: I/O error: dev 08:00, sector 0
Oct 12 15:57:52 OFNsOWN kernel: unable to read partition table
Oct 12 15:57:52 OFNsOWN kernel: sdc : READ CAPACITY failed.
Oct 12 15:57:52 OFNsOWN kernel: sdc : status = 1, message = 00, host = 0, driver = 08
Oct 12 15:57:52 OFNsOWN kernel: Info fld=0x0, Current sd00:00: sense key Not Ready
Oct 12 15:57:52 OFNsOWN kernel: Additional sense indicates Medium not present
Oct 12 15:57:52 OFNsOWN kernel: sdc : block size assumed to be 512 bytes, disk size 1GB.
Oct 12 15:57:52 OFNsOWN kernel: sdc: test WP failed, assume Write Enabled
Oct 12 15:57:52 OFNsOWN kernel: I/O error: dev 08:20, sector 0
Oct 12 15:57:52 OFNsOWN kernel: unable to read partition table
Oct 12 15:57:52 OFNsOWN kernel: sdd : READ CAPACITY failed.
Oct 12 15:57:52 OFNsOWN kernel: sdd : status = 1, message = 00, host = 0, driver = 08
Oct 12 15:57:52 OFNsOWN kernel: Info fld=0x0, Current sd00:00: sense key Not Ready
Oct 12 15:57:52 OFNsOWN kernel: Additional sense indicates Medium not present
Oct 12 15:57:52 OFNsOWN kernel: sdd : block size assumed to be 512 bytes, disk size 1GB.
Oct 12 15:57:52 OFNsOWN kernel: sdd: test WP failed, assume Write Enabled
Oct 12 15:57:52 OFNsOWN kernel: I/O error: dev 08:30, sector 0
Oct 12 15:57:52 OFNsOWN kernel: unable to read partition table
!!! Note: The messages show errors on /dev/sda /dev/sdc and /dev/sdd, which is
!!! ok, as no cards sit in these slots.
!!! But: No error messages on /sdb (Success!!!)
So now you know that the CF Card Reader has to be configured as /dev/sdb1
Mount -t vfat /dev/sdb1 /media/cfread (<- my mountpoint) does the rest.
I hope everybody else running into the same problems will profit from this information
Hi there,
I'm having the same problem with a USB CF storage device (SanDisc Cruzer 256Mb). Could you run me through how to set up the kernel so it thinks sda is a valid block device, which it happily did before I plugged that darned stick in
Thanks
Rob
I just picked up one these newfangled USB 6-in-1 multi-card readers from Acomdata for CompactFlash, SmartMedia / X-Media, SD/MMC and Sony Memorystick. You can actually detect and mount these devices without having to recompile the kernel.
To detect it, add the following kernel option to your /etc/lilo.conf: append="max_scsi_luns=6". This enables multi-LUN probing on the SCSI devices without having to recompile the kernel with the "Probe all LUNS" SCSI option.
To mount SmartMedia, your kernel needs the SDDR09 and SDDR55 usb storage modules compiled in; both Knoppix and Slackware enable these by default. Check your /usr/src/linux/.config or /boot/config file for CONFIG_USB_STORAGE_SDDR09=y and CONFIG_USB_STORAGE_SDDR55=y.
Mount as follows: mount -t vfat /dev/sdc1 /mnt/sdc1 (the SmartMedia device is detected on my system as /dev/sdc).
Hi Spurious,
Sounds promising, I've looked in .config and SDDR09 and SDDR55 are both enabled, I'm not using lilo though, I'm using grub, where should I put the kernel option (append="max_scsi_luns_6")? grub.conf doesn't look to me like the right place to put it below is what my grub.conf looks like:-
Originally posted by dhbiker where should I put the kernel option (append="max_scsi_luns_6")? grub.conf doesn't look to me like the right place to put it below is what my grub.conf looks like:-
However I want to jump this thread because I have similar setup, Soyo 6-in-1 reader connected to USB which I can't get to work.
I too have SDDR09 and 55 enabled and I just tried the max_scsi_luns kernel paramters but I still can't see the CF drive or mount it. My dsmesg says:
Code:
Initializing USB Mass Storage driver...
scsi0 : SCSI emulation for USB Mass Storage devices
Vendor: SOYO Model: CF/MD Rev: 0204
Type: Direct-Access ANSI SCSI revision: 02
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
drivers/usb/core/usb.c: registered new driver usb-storage
USB Mass Storage support registered.
It doesn't assign it to any device as far as I can tell.
I have these modules loaded (snipped the ones that could matter):
I've only played with the 2.6.0-test11 kernel on my Knoppix box, but I did compile the "Probe all LUNS" under SCSI options (ie. CONFIG_SCSI_MULTI_LUN=y in your .config). This worked.
If the "max_scsi_luns" kernel option in lilo/grub doesn't work with kernel 2.6, then I guess we'll have to recompile the 2.6 kernel.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.