LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 12-31-2002, 10:40 AM   #1
Shak
Member
 
Registered: May 2002
Location: Huddersfield
Distribution: Redhat (7.2, 7.3, 8.0), Debian, Slackware, Gentoo, FreeBSD
Posts: 169

Rep: Reputation: 30
Multi Card Reader (usb mass storage)


Hiyas,

Yeeps, this seems to be a problem and a half, I wonder if anyone on here can help me!

Right, heres the scenario: I have a USB card reader that reads 6 types of cards (CF/SD etc). It works in Windows, but I need to use it in Linux - because of PsiLinux.

I added the modules I thought I was going to need: (Im running a default redhat kernel as I havent got round to recompiling yet :P)

Code:
[root@ernie usbmgr]# /sbin/lsmod
Module                  Size  Used by    Not tainted
usb-storage            62552   0
msdos                   8348   0  (autoclean)
sg                     37644   0
vfat                   13276   0  (autoclean)
fat                    40056   0  (autoclean) [msdos vfat]
sd_mod                 13584   0  (autoclean)
sr_mod                 18200   0  (autoclean)
cdrom                  34176   0  [sr_mod ide-cd]
scsi_mod              110408   5  [usb-storage sg sd_mod sr_mod ide-scsi]
mousedev                5688   1
keybdev                 2976   0  (unused)
hid                    22404   0  (unused)
input                   6240   0  [mousedev keybdev hid]
ehci-hcd               18024   0  (unused)
usb-ohci               22056   0  (unused)
usbcore                80512   1  [usb-storage hid ehci-hcd usb-ohci]
ext3                   72960   3
jbd                    56688   3  [ext3]
Right, looks all well and good to me. When I plug the device in I get:

Code:
Initializing USB Mass Storage driver...
scsi0 : SCSI emulation for USB Mass Storage devices
  Vendor: Generic   Model: USB Storage-SMC   Rev: 0207
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 8
USB Mass Storage support registered.
Showing in dmesg and /var/log/messages. I thne used a tool called SCSI enquiry to see which device it was:

Code:
[root@ernie sg_utils-1.02]# ./scsi_inquiry /dev/sda
    Generic   USB Storage-SMC   0207, byte_7=0x0
And checked in /proc/scsi/scsi:

Code:
[root@ernie sg_utils-1.02]# cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
  Vendor: Generic  Model: USB Storage-SMC  Rev: 0207
  Type:   Direct-Access                    ANSI SCSI revision: 02
Host: scsi1 Channel: 00 Id: 00 Lun: 00
  Vendor: LITE-ON  Model: LTR-32123S       Rev: XS0F
  Type:   CD-ROM                           ANSI SCSI revision: 02
Therefore it looks like I have a system that should mount the disk.

Code:
[root@ernie sg_utils-1.02]# mount /dev/sda /mnt/floppy
/dev/sda: Input/output error
mount: you must specify the filesystem type
Attempt 1: Note its the /dev/sda not any partition, also note that there's an input output error specified.

I then tried with vfat specified, this doesnt seem to work either:

Code:
[root@ernie sg_utils-1.02]# mount /dev/sda /mnt/floppy -t vfat
mount: wrong fs type, bad option, bad superblock on /dev/sda,
       or too many mounted file systems
This time theres no input/output error... so I checked /var/log/messages again to see

Code:
Dec 31 16:20:23 ernie kernel: Device not ready.  Make sure there is a disc in the drive.
Dec 31 16:20:23 ernie kernel: Device 08:00 not ready.
Dec 31 16:20:23 ernie kernel:  I/O error: dev 08:00, sector 0
Dec 31 16:20:23 ernie kernel: FAT: unable to read boot sector
Dec 31 16:20:23 ernie kernel: Device not ready.  Make sure there is a disc in the drive.
It doesnt think theres a disk in it!

Code:
ec 31 16:11:52 ernie /etc/hotplug/usb.agent: Setup usb-storage for USB product
aec/3050/100
Dec 31 16:11:52 ernie kernel: Initializing USB Mass Storage driver...
Dec 31 16:11:52 ernie kernel: usb.c: registered new driver usb-storage
Dec 31 16:11:52 ernie kernel: scsi0 : SCSI emulation for USB Mass Storage devices
Dec 31 16:11:52 ernie kernel:   Vendor: Generic   Model: USB Storage-SMC   Rev:
0207
Dec 31 16:11:52 ernie kernel:   Type:   Direct-Access                      ANSI
SCSI revision: 02
Dec 31 16:11:52 ernie kernel: Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
Dec 31 16:11:52 ernie kernel: sda : READ CAPACITY failed.
Dec 31 16:11:52 ernie kernel: sda : status = 1, message = 00, host = 0, driver = 08
Dec 31 16:11:52 ernie kernel: Current sd00:00: sense key Not Ready
Dec 31 16:11:52 ernie kernel: Additional sense indicates Medium not present
Dec 31 16:11:52 ernie kernel: sda : block size assumed to be 512 bytes, disk size 1GB.
Dec 31 16:11:53 ernie kernel: sda: Write Protect is off
Dec 31 16:11:53 ernie kernel:  sda: I/O error: dev 08:00, sector 0
Dec 31 16:11:53 ernie kernel:  I/O error: dev 08:00, sector 0
Dec 31 16:11:53 ernie kernel:  unable to read partition table
Dec 31 16:11:53 ernie kernel: USB Mass Storage support registered.
Dec 31 16:18:44 ernie kernel: sda : READ CAPACITY failed.
Dec 31 16:18:44 ernie kernel: sda : status = 1, message = 00, host = 0, driver = 08
Dec 31 16:18:44 ernie kernel: Current sd00:00: sense key Not Ready
Dec 31 16:18:44 ernie kernel: Additional sense indicates Medium not present
Dec 31 16:18:44 ernie kernel: sda : block size assumed to be 512 bytes, disk size 1GB.
Dec 31 16:18:44 ernie kernel: sda: Write Protect is off
Dec 31 16:18:44 ernie kernel:  sda: I/O error: dev 08:00, sector 0
Dec 31 16:18:44 ernie kernel:  I/O error: dev 08:00, sector 0
Dec 31 16:18:44 ernie kernel:  unable to read partition table
Dec 31 16:18:44 ernie kernel: Device not ready.  Make sure there is a disc in the drive.
Dec 31 16:19:39 ernie kernel: sda : READ CAPACITY failed.
Dec 31 16:19:39 ernie kernel: sda : status = 1, message = 00, host = 0, driver = 08
Dec 31 16:19:39 ernie kernel: Current sd00:00: sense key Not Ready
Dec 31 16:19:39 ernie kernel: Additional sense indicates Medium not present
Dec 31 16:19:39 ernie kernel: sda : block size assumed to be 512 bytes, disk size 1GB.
And also there seems to be a huge problem with detecting its size, do you reckon this just isn't compatible with Linux?

The model number on it says:

Code:
CR-V10-U6
I googled for it, and I cant find much support anywhere!

Anyone got any ideas?

Shak
 
Old 01-01-2003, 09:45 PM   #2
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
Try /dev/sda1
 
Old 01-02-2003, 12:50 PM   #3
Shak
Member
 
Registered: May 2002
Location: Huddersfield
Distribution: Redhat (7.2, 7.3, 8.0), Debian, Slackware, Gentoo, FreeBSD
Posts: 169

Original Poster
Rep: Reputation: 30
Ive tried it, its says its not a valid block device.

Shak
 
Old 01-02-2003, 02:18 PM   #4
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
Its locating the device, its just not registering a media presence, that's the exact same read I get from a zip drive with no disk in it. Maybe there are 2 actual device readers in there and its too stupid to work unless the first one has something in it... or somesuch. What do you have in there now? Also, what kernel? 2.4.18 if its base RH I'de wager. A lot of usb device upgrades have made it in since 18.

Cheers,

Finegan
 
Old 01-03-2003, 05:24 AM   #5
Shak
Member
 
Registered: May 2002
Location: Huddersfield
Distribution: Redhat (7.2, 7.3, 8.0), Debian, Slackware, Gentoo, FreeBSD
Posts: 169

Original Poster
Rep: Reputation: 30
Im going to try with .20 and upgrade my kernel, Im just lazy and havent rolled my own, also a mate pointed out that I may need:

CONFIG_SCSI_MULTI_LUN enabled and I dont as that allows multi devs. Between us I think we have deduced that the hardware inside should be 4 different SCSI devs, but is only one.

Shak
 
Old 01-13-2003, 04:51 AM   #6
Srikanth W
LQ Newbie
 
Registered: Jan 2003
Location: India
Posts: 3

Rep: Reputation: 0
see next message...

Last edited by Srikanth W; 01-13-2003 at 06:04 AM.
 
Old 01-13-2003, 05:17 AM   #7
Srikanth W
LQ Newbie
 
Registered: Jan 2003
Location: India
Posts: 3

Rep: Reputation: 0
Add this line
/dev/sda /mnt/floppy vfat noauto,user 0 0
to your
/etc/fstab

and try
mount /mnt/floppy

Cheers,
Srikanth.

Last edited by Srikanth W; 01-13-2003 at 06:05 AM.
 
Old 01-13-2003, 06:09 AM   #8
Srikanth W
LQ Newbie
 
Registered: Jan 2003
Location: India
Posts: 3

Rep: Reputation: 0
add
/dev/sda /mnt/floppy vfat noauto,user 0 0
to
/etc/fstab
do
mount /mnt/floppy
 
Old 02-26-2003, 12:42 PM   #9
jomoby
LQ Newbie
 
Registered: Feb 2003
Posts: 4

Rep: Reputation: 0
I have the exact same problem with a 6 in 1 reader, dmesg reports there is no disc in the drive, and fdisk cannot find a partition table for /dev/sda
the deal has 4 places to plug in memory cards, the only ones i have tried are a sony memory stick in the 2nd port and a sd card in the 3rd port, same problem for both, same results if there are no memory cards in the thing.
 
Old 02-26-2003, 01:02 PM   #10
jomoby
LQ Newbie
 
Registered: Feb 2003
Posts: 4

Rep: Reputation: 0
youre mate was right Shake
i just tried compiling 2.4.20 with
CONFIG_SCSI_MULTI_LUN=y
and it works!!
it takes up the first 4 scsi devices

my sony memory stick is on sdd

bash-2.05# fdisk -l /dev/sdd

Disk /dev/sdd: 16 heads, 16 sectors, 991 cylinders
Units = cylinders of 256 * 512 bytes

Device Boot Start End Blocks Id System
/dev/sdd1 * 1 990 126703+ 6 FAT16
 
Old 03-05-2003, 03:12 PM   #11
init.first
LQ Newbie
 
Registered: Mar 2003
Posts: 1

Rep: Reputation: Disabled
Hi,

I have the same problem, using a MBO-CardReader.
The Probleme exists after starting of KDE2. Before starting the device works perfectly, but if I started KDE2 the Reader says "no media found" and gives also the following message - according with the first message on top of this page:

# mount /dev/sda1 /mnt
sda: READ CAPACITY failed.
sda : status = 0, message = 00, host = 7, driver = 00
sda : sense not available
sda : block size assumed to be 512 bytes, disk size 1GB.
sda: I/O error: dev 08:00, sector 0
I/O error: dev 08:00, sector 0
unable to read partition table
mount: no media found
#
 
Old 03-06-2003, 06:47 AM   #12
Shak
Member
 
Registered: May 2002
Location: Huddersfield
Distribution: Redhat (7.2, 7.3, 8.0), Debian, Slackware, Gentoo, FreeBSD
Posts: 169

Original Poster
Rep: Reputation: 30
Unfortunately due to time constraints I still haven't got round to this :X But when I get it fixed Ill write a HOWTO for it

Shak
 
  


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
USB Multi card reader in linux sjmgeezer Linux - Hardware 2 07-21-2005 07:15 AM
multi-card usb reader support MikTheUser Linux - Hardware 1 02-14-2005 04:53 PM
USB multi-card reader; only one card can be mounted in Slack 10. KidsWriter71 Linux - Hardware 6 09-11-2004 07:24 PM
USB multi-card reader woes bgnrsmnd Linux - Newbie 1 11-06-2003 06:36 PM
Smartcard/Flash card reader (usb storage device) Redhat 9 i0scanw Linux - Newbie 0 10-19-2003 05:43 PM

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

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