title: How can I use dd to write an image to my android phones SD card?
body: <p>I'm trying to use my android phone in place of a card reader to write a <code>.img</code> file to its external(removable) sd card(<code>/mnt/emc</code>) but when I try to do this from a terminal on the phone(<code>dd if=foobar.img of=/mnt/emmc</code>) dd complains that I'm writing to a directory.   The galaxy s2 mounts it's internal storage to <code>/mnt/sdcard</code>, and then mounts the external sd card as a directory inside of that.  Apparently using DD from a computer that has the SD mounted over USB will silently corrupt the image on write because of how the device shelters it's storage somehow.  Is what I'm trying to do even possible? </p>