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.


I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh

In reply to Re: Read/Write to an MMC card by zentara
in thread Read/Write to an MMC card by IanVand

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.