LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-09-2003, 06:20 PM   #1
GOBY
Member
 
Registered: Feb 2003
Location: Austin TX
Distribution: ArchLinux
Posts: 67

Rep: Reputation: 15
before I take this flashcard reader back to the store


Aahhh so close, yet so far away..

From the searches I have done, it seems that there are only a few Compact Flash card readers that will work in Linux, the most popular of which is the SanDisk SDDR-31. Since that one was not available at the local Fry's, I thought I'd waste a weekend and try a couple of others. The one I am trying now is a Digitex CSU-LA1. I was encouraged by the fact that it came with linux instructions.

Well, after two recompiles and an sg-3-utils install, I am unable to find any files on the CF card. Everything I think I need is compiled in or loaded as a module:

USB support
USB mass storage
preliminary USB filesystem
uhci, usb-uhci (I can load one at a time)
/dev virtual filesystem
SCSI support
SCSI disk support (sd_mod.o)
/proc filesystem support

I have not messed with the Memory Technology Devices (MTD) stuff, as everyone seems to do fine without it.

I can make the flash reader's LED go on and off by issuing modprobe uhci, rmmod uhci.

I issue this command, per the instructions:
mount -t usbdevfs none /proc/bus/usb
which seems to go without a hitch, "none" is mounted ok! There is now a /proc/bus/usb/001 and 002 directory, and the devices and drivers files. The 001 and 002 directories contain small files 001 and 002, little 18-byte binaries, but none of the files I know are on the card.

The device, according to sg_map, is /dev/sg0. I know this because my only other "scsi" device is my cd burner, listed as /dev/sr0. sg0 is actually a link to /dev/scsi/host0/bus0/target0/lun0/generic. I have never had devices such as /sda or /sda1 come up.

I put an entry in /etc/fstab:
/dev/sg0 /camera auto noauto,user 0 0
and of coarse made a /camera directory to mount to.
It makes no difference if I put /dev/sg0 in fstab or the whole /dev/scsi/host0... path

Typing mount /camera always leads to the error message "sg0 is not a block device" This occurs whether or not I have uhci loaded, or "none" mounted, or the thing plugged in! What a pissoff!

My questions to you guys:
Am I missing something obvious? Do I have access to the card yet and just don't realize it? Where are the files?
Should I waste more time with this reader, buy a SanDisk reader, or just don't use a CF reader at all? I suppose I can install gphoto to get my damn pictures, but that's not nearly as cool as using the flash card as a miniature drive.

Thanks,
John
 
Old 03-09-2003, 07:37 PM   #2
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
What really matters is whether you get a SCSI device scan read in "dmesg" that mentions /dev/sda. This is after:

modprobe usb-storage

Also, if you are using a stock 8.1 install, that's a year old 2.4.18 kernel. A lot of USB mass storage devices were added in 2.4.19, and a few more in 20. If you are leary of a kernel compile, a slack package of 2.4.19 is available on your favorite Slackware mirror under: Slackware-8.1/patches/packages.

Cheers,

Finegan
 
Old 03-09-2003, 08:04 PM   #3
GOBY
Member
 
Registered: Feb 2003
Location: Austin TX
Distribution: ArchLinux
Posts: 67

Original Poster
Rep: Reputation: 15
Thanks for your reply, finegan.
I upgraded to 2.4.20 and compiled in those options and/or modules.
searching dmesg | less returns no patterns resembling /dev/sda or /dev/sg0, though sg0 does show up in the /dev virtual filesystem. Does it matter that I have no /dev/sda?

lsmod shows the following:
usb-storage is loaded but (unused)
usbcore [uhci usb-storage]
sd_mod also (unused)
 
Old 03-09-2003, 08:09 PM   #4
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
loaded but unused... the device is probably listed as claimed by no active driver... yeah, I guess it isn't supported. Might want to check the 2.4.21-preX changelog to see if its mentioned, but I doubt.

Cheers,

Finegan
 
Old 03-09-2003, 08:36 PM   #5
GOBY
Member
 
Registered: Feb 2003
Location: Austin TX
Distribution: ArchLinux
Posts: 67

Original Poster
Rep: Reputation: 15
Thanks finegan, I think I'll keep my trusty 2.4.20 kernel, load up gphoto (and the USB libraries it requires) then just plug in the camera directly.
 
Old 03-10-2003, 08:19 PM   #6
GOBY
Member
 
Registered: Feb 2003
Location: Austin TX
Distribution: ArchLinux
Posts: 67

Original Poster
Rep: Reputation: 15
Thumbs up UPDATE -- DOOHHHHH YEAH

finegan,
Well after a some dissatisfaction with giving up on the flash drive, and some dependency hell with gphoto2, (I need pkg-config and GTK+- what now!?) I decided to try yet another flash card reader, the abundant SanDisk SDDR-75, and hello, third time's a charm! Here are some good instructions for getting this particular reader to read. You are right that there should be a /dev/sda, and you mount the "partition" /dev/sda1. Anyway, just thought I'd share my experience and recommend SanDisk readers in general.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
* store what ? cigarstub Programming 2 11-04-2005 11:24 AM
HP Photosmart 7550 w/ Flash Card Reader on Suse 9.3. Card Reader and Print Sharing Desert Linux - Hardware 0 07-25-2005 09:25 PM
'alsactrl store' doesn't seem to store... endfx Slackware 1 08-20-2004 02:30 AM
LQ has a store??? Nz_Boy_2004 LQ Suggestions & Feedback 3 05-17-2004 04:39 AM
Flashcard mount problem Johng Linux - Hardware 15 09-02-2003 06:12 AM

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

All times are GMT -5. The time now is 04:34 PM.

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