SD Cards and the Emulator

From a command prompt / terminal navigate to the android sdk’s tools folder.

Resetting the emulator

To reset the emulator and wipe all the stored data, returning as it were to factory settings run:

emulator -wipe-data

Create a blank SD card image:

mksdcard <size> <filename>

e.g. mksdcard 512M halfagig.sd

will create a 512 MegaByte sdcard image called halfgig.sd.

Mounting an SD Card in the emulator:

emulator -sdcard <filepathandname>

This will mount the card under the path /sdcard

Mounting an SD Card image under Linux:

mount -o loop [filename] [/media/mountpoint]

Leave a Reply