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 have desktop machine with an Intel 82365SL compatible PCMCIA card reader/writer. Under SuSE 8.0, I was able to successfully modify /etc/pcmcia/ide.opts so that CompactFlash memory cards would automatically mount when inserted (device: /dev/hde1, mount point:
/media/cf1). After I installed Suse 8.1 and copied my olde ide.opts file over, the CF memory card no longer mounts. Using Cardinfo, I can see the card is properly detected as an ATA/IDE Fixed Disk. When I try to manually mount it with the following command:
mount -v -t vfat /dev/hde1 /media/cf1
I get an error: "mount: /dev/hde1 is not a valid block device"
Here is the full contents of my /etc/pcmica/ide.opts:
# ATA/IDE drive adapter configuration
#
# The address format is "scheme,socket,serial_no[,part]".
#
# For multi-partition devices, first return list of partitions in
# $PARTS. Then, we'll get called for each partition.
#
case "$ADDRESS" in
*,*,*,1)
#INFO="Sample IDE setup"
DO_FSTAB="y" ; DO_FSCK="y" ; DO_MOUNT="y"
FSTYPE="vfat"
OPTS=""
MOUNTPT="/media/cf1"
;;
*,*,*)
PARTS="1"
# Card eject policy options
NO_CHECK=n
NO_FUSER=n
;;
esac
The card reader uses interrupts 9 and 11 (I presume 9 for slot 0 and 11 for slot 1).
Interrupt 9 is shared with acpi and usb-uhci
Interrupt 11 is shared with usb-uhci
Could this have something to do with the problem? If so, then why is cardinfo able to detect the card properly?
I tried disabling the USB controller just for kicks using the BIOS settings, but that didn't seem to actually disable it. Am I barking up the wrong tree? I've run out of ideas and really need your help.
Eventually, the card reader is not the problem, but the PCMCIA subsystem itself. It may be you ran into an odd bug that was discussed on a SuSE mailing list a while ago, see e.g.: http://lists.suse.com/archive/suse-l...-Oct/2511.html
Quote:
To answer my own question: I got to looking around at pcmcia
information and remembered the external (non-kernel) pcmcia project on
source forge (http://pcmcia-cs.sourceforge.net) and was prepared to
recompile the kernel to use that version. (Actually I did try to
recompile and got an odd error message, but that's for another time...)
Anyway, there is a message on the above page about pcmcia and the 2.4
kernel. Among other things it mentions that
"o Someone changed the name of the "ide_cs" driver in the 2.4 tree to
"ide-cs". To deal with this annoyance, edit /etc/pcmcia/config and
change every instance of "ide_cs" to "ide-cs". Yes this means that
the same config file won't work for 2.2 kernels. No you cannot just
rename the module or add an alias to /etc/modules.conf; the string
is also embedded in the module."
However, I now have a different problem: when I insert the CF card, the device automatically mounts, however normal users cannot access it. The perms on the mount point change such that only root can access it. I even tried adding OPTS="user" to my /etc/pcmcia/ide.opts, but it made no difference. Here's my system info:
/etc/pcmcia/ide.opts:
case "$ADDRESS" in
*,*,*,1)
#INFO="Sample IDE setup"
DO_FSTAB="y" ; DO_FSCK="y" ; DO_MOUNT="y"
FSTYPE="vfat"
OPTS="user"
MOUNTPT="/media/cf1"
;;
*,*,*)
PARTS="1"
# Card eject policy options
NO_CHECK=n
NO_FUSER=n
;;
esac
Relevant entry in mtab with card inserted:
/dev/hde1 /media/cf2 vfat rw,noexec,nosuid,nodev 0 0
Relevant entry in fstab with card inserted:
/dev/hde1 /media/cf2 vfat user 0 0
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.