DebianThis forum is for the discussion of Debian 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.
We've just swtiched from Mandrake10.0 to Debian at work. We had problems with using our flashcard reader through Mandrake but muddled through. When we upgraded from Mandrake 9.2 to 10.0 the card reader wasn't picked up anymore so we left one machine on our network running 9.2 just so we could still use the card reader.
When it works - we just plug it in and it appeared as /mnt/memory-card, we just mounted it and copied the files from it.
How do I get at it in debian? I've plugged it in and looked in the /mnt folder - nothing.
I've tried mount -t vfat /dev/sda1 /mnt/memory-card but it says mount: /dev/sda1 is not a valid block device"
So, you've got Debian testing/unstable with 2.6 kernel and hotplug. This means that the device should work OK. However, there's no automounting in Debian (or if there is, I don't know how to make it work). For mounting the device manually, just create a directory where you want to mount it and then see this thread for further info:
indicates that you've got discover installed, you could try just plugging the flashcard reader in and rebooting and seeing if it is noticed during bootup and the proper device (/dev/sda1) is automatically created. If you haven't got the discover package installed, then install it first.
If this doesn't work, you might have to create /dev/sda1 manually, using mknod. See
man mknod
to get more info. If the man page seems too difficult to understand, you may (if you're in luck) find more pragmatic advices by doing a google search for "mknod /dev/sda1". Hope this helps.
It took the better part of a day and two kernel recompiles for me to get it going, but I did it. I think that your problem is that you just don't have the kernel set up for proper usb support. That was one of my big problems. You need to have plug n play enabled, and all of the modules listed in the link above. Get them all running and you should be able to access the device.
I discovered one thing that the site above doesn't mention. The sg_map command for me listed /dev/sda as my device, but when I tried to mount it, I kept getting an "unsupported file system" error. I finally tracked it down on Google though. Because there's already a valid file system on the card, you don't want to access the device itself, but the (first and only) partition on the file system. Changing the device to /dev/hda1 did the trick. Now it's working perfectly for me and I can work to set up automounting via autofs...
Edit: Here are a couple of pages about configuring autofs:
Umm... I just noticed that I've been discussing how to make USB memory cards work under Debian while you've been asking information on how to make USB memory card READERS work. Sorry about the confusion, all my fault.
Luckily, David the H. points you to the more appropriate information.
And ironically, it was this thread and another similar one I read just afterward that got me interested in getting my own flash reader to work, resulting in my ability to provide the above information.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.