LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Question about /dev (CF Card Reader) (https://www.linuxquestions.org/questions/linux-newbie-8/question-about-dev-cf-card-reader-599424/)

usafitz 11-13-2007 06:12 PM

Question about /dev (CF Card Reader)
 
Hey all. Thanks again for your help. I'm trying to use a compact flash drive to pass data from a compact flash GPS receiver. Using FC7, when I mount the card reader, it mounts two new /dev entries called "sdc" and "sg3". When I put the GPS CF in there, those go away and I think it's because it can't write to the device.

when I insert a CF storage card, it mounts under /media/disk. So I obviously need to mount the GPS CF card as a read only.

questions:
1. the CF storage card mounts automatically. What would the commands be to mount those if it wasn't automatic (pmount?)?
2. what command can I use to mount the GPS as a read only?

Peacedog 11-13-2007 07:37 PM

Hi usafitz, This should work.
Code:

mount -t vfat -o ro /dev/sdc1 /mnt/your/mount/point
There is more info on cf card readers here.

Good luck. ;-)

MS3FGX 11-13-2007 07:39 PM

You can't "mount" a GPS, it isn't a storage device. You need to find out of there are drivers that support this device specifically. It is using the Compact Flash form factor and pinout, but it isn't a standard CF card in the traditional sense (like SDIO cards).

I'm not even sure that you can do it with a USB card reader. I have Compact Flash WiFi cards, and they only work on my laptop when they are placed in a PCMCIA adapter.

usafitz 11-13-2007 08:37 PM

Yep MS3FGX, looks like you're right. Here's what I get with the command:

[root@localhost dev]# mount -t vfat -o ro /dev/sdc /mnt/GPS
mount: /dev/sdc is not a valid block device

although that is exactly what I was looking for Peacedog. Thanks for the info.

I have some sort of express port instead of a PCMCIA slot, is that going to work the same way in linux?

Peacedog 11-14-2007 07:27 AM

@ MS3FGX, That's a nice catch, I saw "cf card" and "mount" and the rest of the post was blah, blah, blah. ;-)

@ usafitz, What type of GPS is it? There are a couple of projects for Garmin devices.

http://sourceforge.net/projects/garmin-gps/

http://pygarmin.sourceforge.net/

My apologies for not reading the post thoroughly. ;-)

usafitz 11-14-2007 12:46 PM

It's a Haicom HI-305III. It's a pretty sweet piece of hardware. I bought it because it goes perfectly with my Toshiba pocket PC but now figured it would be a fun project to try to get it to work with kismet and what not. Thanks for the references.

Peacedog 11-14-2007 01:18 PM

You might look into one of these.

http://freshmeat.net/projects/gpsd/

http://sourceforge.net/projects/gpsbabel

Good luck. ;-)

usafitz 11-14-2007 05:52 PM

These were great references, Peacedog. I read all of them but didn't have any progress. But that's alright, I'm gunna keep at it. I'm actually learning a lot from it, which is the point of the whole exercise :)

Another option that I have is to run a cable from the firewire port. Do you have any experience with these? what /dev/? could I look for to read from the firewire port?

Peacedog 11-14-2007 07:15 PM

Firewire devices show up on the scsi bus just like usb, i.e. sdX, etc. I've no idea if there are any compatible modules for the firewire subsystem and gps devices. You may find something useful here.
Good luck. ;-)


All times are GMT -5. The time now is 09:43 PM.