Pages

Saturday, April 6, 2013

Mounting the Micro-SD Card

So you want to see the files on the SD card - or rather, the micro-SD card - that you just inserted into the SMILE. It's quite easy:
  1. After inserting the card into the slot (which is just next to the power switch), take a look at the last few kernel messages. You can use the dmesg command for that. The important thing is finding out the device name associated with the SD card. In our case, the device is mmcblk0, mmcblk1p1, or the like. You are likely to get similar results. Note that our device was a 2 GB card.

    root@SMILEplug:~# dmesg
    ...
    mmc0: new high speed SD card at address 2711
    mmcblk0: mmc0:2711 SD02G 1.87 GiB
    mmcblk0:
  2. Next, we'll mount the device. We use vfat as the file system type since this SD card was a FAT32 device, the msot popular format for SD card and USB memory sticks.

    root@SMILEplug:~# mkdir /media/sdcard (only needed if the sdcard directory does not exist)

    root@SMILEplug:~# mount -t vfat /dev/mmcblk0 /media/sdcard/
Finally, to verify that you can see the card's contents:

root@SMILEplug:~#
ls /media/sdcard

No comments:

Post a Comment