All Forums
 Embedded Linux
 Linux FAQ
 How do I mount an ATA CF or PCMCIA card?
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Author Topic  

jlackey

213 Posts

Posted - 06 May 2002 :  14:20:35  Show Profile  Email Poster
How do I mount an ATA or PCMCIA card on my PC running Linux?

If you've never done it before, first make a mount directory:
mkdir /mnt/flash1

Then issue the following command:
mount -t vfat /dev/hde1 /mnt/flash1

You can usually leave out the '-t vfat' option. Linux will figure it out. If necessary, replace /dev/hde1 with the device on your PC that is the PCMCIA/CF slot for the card you want to format.

How do I mount an ATA card on my board?

If the 'cardmgr' program is not running, then it must be started before the card can be mounted. To run it just enter 'cardmgr' or put a line in the /etc/inittab script to run cardmgr.

To mount a PCMCIA or compact flash card:
mount /dev/hda1 /mnt

To mount the 2nd PCMCIA or compact flash card on ADS Bitsy boards:
mkdir /mnt2 (you only need to do this the first time)
mount /dev/hdc1 /mnt2

Note that the first device is /dev/hda1 regardless which slot it uses and the second device is /dev/hdc1 regardless of which slot it uses.

What if my PC doesn't have a PCMCIA or CF slot?

If your PC has USB, you can use a USB CF reader (e.g. a SanDisk ImageMate). These devices are USB storage devices that emulate SCSI drives. When you connect one to a Linux PC with no SCSI drives and insert a card, you can access the card by mounting the first SCSI drive/partition:
mount /dev/sda1 /mnt/flash1


19-Nov-2002: jlackey - add USB CF reader Q&A
  Topic  
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Jump To:
Eurotech Support Forums © Eurotech Inc. Go To Top Of Page
This page was generated in 0.03 seconds. Snitz Forums 2000