Not really a Perl question, but to help you out:
It will most likely work like a USB Key drive. If you are on Linux, look at the tail of /var/log/messages for an entry after you put the SD card in it's reader. It will tell you
which device was found and it's identifier. Something like:
sb 1-3: new high speed USB device using ehci_hcd and address 4
kernel: [ 1181.921444] usb 1-3: New USB device found,
kernel: [ 1182.925597] sd 9:0:0:0: Attached scsi generic sg3 type 0
kernel: [ 1184.324359] sd 9:0:0:0: [sdc] 7936000 512-byte logical bloc
+ks: (4.06 GB/3.78 GiB)
kernel: [ 1184.379333] sd 9:0:0:0: [sdc] Attached SCSI removable disk
So looking at it, you will have /dev/sdc, so all you need to do to read it, is as root:
system( "mount -t vfat /dev/sdc1 /mnt/mySDcard");
Normally these cards have only 1 partition and are formatted vfat, but you could have something different. Once that
mount command finishes, your SD filesystem will be in your /mnt/mySDcard, for you to write or read from. You can make any mountpoint you desire, and most systems have an Automounter daemon going and will mount your card automatically wherever it is designed to do it, usually somewhere under /mnt. You can type the command "mount" to see where the various filesystems get mounted by the Automounter daemon. Only root can do the mount command, so you may need to use sudo, or log in as root.
|