Jump to content

Problem installing SD/MMC/CF/MS card reader


Guest Linz
 Share

Recommended Posts

Hi!

 

I have some trouble getting my new SD/MMC/CF/MS card reader to work in linux. I don't know if it matters what card I have inserted in the reader, but the one I use is a vfat formatted SD-card which I use in my Palm Tungsten T.

 

Here are some info:

 

Mandrake Control Center says (translated from norwegian):

Vendor: Generic

Bus: SCSI

Location on bus: 0:0:0

Channel: 00

Description: Generic |USB Storage Device

New devfs device: /dev/scsi/host0/bus0/target0/lun0/disc

Old devicefile: /dev/sda

Module: unknown

Diskformat: Generic USB Storage-SMC

Mediaclass: hd (Mass Storage|SCSI|Bulk (Zip))

 

When I try to run:

mount -t vfat /dev/scsi/host0/bus0/target0/lun0/disc /mnt/cardreader/

I get the following error message:

mount: wrong fs type, bad option, bad superblock on /dev/scsi/host0/bus0/target0/lun0/disc,

      or too many mounted file systems

 

If I change the mount to auto:

mount -t auto /dev/scsi/host0/bus0/target0/lun0/disc /mnt/cardreader/

I get the following message:

/dev/scsi/host0/bus0/target0/lun0/disc: Input/output error

mount: you must specify the filesystem type

 

Here is an output of lsmod:

Module Size Used by Tainted: P

sg 34636 0 (autoclean)

vfat 11820 0 (autoclean)

fat 37944 0 (autoclean) [vfat]

appletalk 25700 1 (autoclean)

ipx 21252 1 (autoclean)

binfmt_misc 7020 1

nvidia 1672832 10 (autoclean)

parport_pc 25096 1 (autoclean)

lp 8096 0 (autoclean)

parport 34176 1 (autoclean) [parport_pc lp]

i810_audio 26248 0

soundcore 6276 0 [i810_audio]

ac97_codec 12488 0 [i810_audio]

nfsd 74256 0 (autoclean)

af_packet 14952 1 (autoclean)

floppy 55132 0

8139too 17160 1 (autoclean)

mii 3832 0 (autoclean) [8139too]

ohci1394 19048 0 (unused)

ieee1394 45900 0 [ohci1394]

nls_iso8859-1 3516 1 (autoclean)

ntfs 76812 1 (autoclean)

supermount 15296 2 (autoclean)

sr_mod 16920 0

ide-cd 33856 0

cdrom 31648 0 [sr_mod ide-cd]

ide-scsi 11280 0

sd_mod 13100 0

scsimon 9280 0 (unused)

usb-storage 72952 0

scsi_mod 103284 6 [sg sr_mod ide-scsi sd_mod scsimon usb-storage]

usbmouse 2936 0 (unused)

keybdev 2720 0 (unused)

mousedev 5268 1

hid 20900 0 (unused)

input 5664 0 [usbmouse keybdev mousedev hid]

printer 8448 0 (unused)

ehci-hcd 18568 0 (unused)

usb-uhci 24652 0 (unused)

usbcore 72992 1 [usb-storage usbmouse hid printer ehci-hcd usb-uhci]

rtc 8060 0 (autoclean)

ext3 59916 3

jbd 38972 3 [ext3]

Link to comment
Share on other sites

Is the device being automounted somehow? For example, I have a usb zip drive. When I would plug it in, a icon would appear on my desktop. Clicking the icon would reveal the contents of the zip disk in konqueror, well at least sometimes. I found the automount feature to be pretty buggy. I beleive there was an entry for it in fstab; not sure about that however. I do recall that I couldn't mount it with the mount command when that icon was on the desktop. To fix it, I removed the entry in fstab for it and created a new entry which stopped the automounting and allowed me to use the mount command to mount the device. Try adding this line to /etc/fstab for your reader:

 

/dev/sda /mnt/cardreader vfat user,exec,noauto,defaults,umask=0,rw 0 0

 

If there's any entry for /dev/sda or anything else that looks like it's for your reader in fstab, delete it first.

 

Save the changes and try mounting:

 

$ mount /mnt/cardreader

Link to comment
Share on other sites

Got the same error message as earlier

mount: wrong fs type, bad option, bad superblock on /dev/sdf,

      or too many mounted file systems

 

But when I added the entry in /etc/fstab an icon appeared on the desktop. Seems to do the same as mount /mnt/cardreader

 

I have unplugged and re-plugged the device several times now. When I have plugged it in again it has "advanced" in the device name... /dev/sda --> sdb --> sdc --> sdc...etc to /dev/sdf. All previous devices has "no medium found"

Link to comment
Share on other sites

I mounted mine using a KDE Desktop Shortcut!

 

Plug in the card and make sure it is listed in the hardware in Mandrake Control Centre. A directory with a name like /mnt/memory_card will also have been created.

 

Right click on the KDE desktop and select Create New > Floppy Device (really!!). Under "General" change the icon but select one with the little green arrow! Change the title to Memory Card.

 

Under "device" select /dev/sda1 (/mnt/memory_card) or similar and change the icon to one similar to the icon under General but without the little arrow.

 

Press OK.

 

Now, provided you have the device plugged in and a card in it, double clicking the icon will mount it and open a window to it. To unmount it, right click on it and select unmount (always do this before closing down).

 

Hope this works for you!

 

Another thing just hit me: have you tried using auto instead of vfat in your mount command?

Link to comment
Share on other sites

Hi!

 

I have some trouble getting my new SD/MMC/CF/MS card reader to work in linux. I don't know if it matters what card I have inserted in the reader, but the one I use is a vfat formatted SD-card which I use in my Palm Tungsten T.

 

I have truoble occassionally with my single format S/M card reader. After 5 or 6 logins the icon for sda1 on /mnt/memory_card disappears from the desktop and the entry for sda1 is removed from /etc/fstab.

 

Whenever this happens I simply insert a spare card into the reader, open a console and type: fdisk -l (thats L not 1). This then lists all the HDs I have, including the card, re-displays the icon for sda1 and re-inserts the relevant entry into /etc/fstab.

 

You might want to try doing the same with a card inserted in your reader.

 

If anyone can explain why this happens and how to stop it I would be most interested.

Link to comment
Share on other sites

try /dev/sda1 name the partion

sda is the device

sda1 is the partion

 

Well, in /dev I have only sda, not any sda1 so whenever I try sda1 it replies with "mount: special device /dev/sda1 does not exist"

 

Under "device" select /dev/sda1 (/mnt/memory_card) or similar and change the icon to one similar to the icon under General but without the little arrow.

I can just find my harddisk partitions in the dropdown menu. I have sda listed in the hardware in MCC.

 

Whenever this happens I simply insert a spare card into the reader, open a console and type: fdisk -l (thats L not 1). This then lists all the HDs I have, including the card, re-displays the icon for sda1 and re-inserts the relevant entry into /etc/fstab.

fdisk only lists my harddrive partitions... :-(

Link to comment
Share on other sites

[quote="Linz

fdisk only lists my harddrive partitions... :-(

 

I seem to recall a reading somewhere that there may be problems accessing multi format readers. Not sure if that was valid for 9.0 or 9.1 though. Sorry I can't be of more help.

Link to comment
Share on other sites

I've got a multi card reader that worked by just plugging into usb with a formatted card inserted and booting up. It was detected and works fine for me in 9.1. It made an icon for the desktop automagically too. Now it hotplugs fine too.

 

Here's my relevant fstab code:

/dev/sda1 /mnt/removable auto user,iocharset=iso8859-1,kudzu,codepage=850,noauto,exec 0 0

 

Not pretty, but since it works I don't mess with it.

 

DOlson has a good writeup of getting a CF reader going:

http://pgshopping.com/mdkxp/?c=ttrls/jumpshot

 

I also got some info from linux usb site but turned out I didn't need it. Lucky, eh? :wink: Go to the FAQ and first one is for USB storage devices. http://www.linux-usb.org/

and

http://www.linux-usb.org/USB-guide/x498.html

 

When the reader and card are plugged in, what do you get with this code?:

[root@localhost kelly]# cat /proc/bus/usb/devices | more

 

I can see this relevant code when it is plugged in:

 

C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr= 20mA

I:  If#= 0 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=00 Prot=00 Driver=hid

E:  Ad=81(I) Atr=03(Int.) MxPS=   8 Ivl=10ms

T:  Bus=01 Lev=01 Prnt=01 Port=01 Cnt=02 Dev#=  3 Spd=12  MxCh= 0

D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=16 #Cfgs=  1

P:  Vendor=0aec ProdID=3050 Rev= 1.00

S:  Manufacturer=Generic

S:  Product=USB Storage Device

S:  SerialNumber=20021224094927950

Hope one of these will help you pinpoint what is going on.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...