[mono-android] detect SD Card path?

Jonathan Pryor jonp at xamarin.com
Thu Jun 7 16:29:50 UTC 2012


On Jun 7, 2012, at 12:10 PM, moelski wrote:
>> adb shell mount 

Your SD card is in fact mounted at /mnt/sdcard:

	/dev/block/vold/259:3 /mnt/sdcard vfat rw,dirsync,nosuid,nodev,noexec,noatime,nodiratime,uid=1000,gid=1015,fmask=0002,dmask=0002,allow_utime

/mnt/sdcard/external_sd is ignorable;

	tmpfs /mnt/sdcard/external_sd tmpfs rw,dirsync,nosuid,nodev,noexec,noatime,nodiratime,size=0k,mode=755,gid=1000 0 0

`tmpfs` is the filesystem type, and in this case means that the contents will be removed when the filesystem is unmounted. Thus, you wouldn't want to store anything on it anyway.


>> adb shell ls -l /mnt/sdcard
> I know that my sdcard contains some very big files - it´s the wikipedia
> offline. These files are not in the listing of /mnt/sdcard. 
> 
> So /mnt/sdcard should be my internal device storage. 

No, /data is your internal storage device:

	/dev/block/mmcblk0p10 /data ext4 rw,nosuid,nodev,noatime,barrier=1,data=ordered,noauto_da_alloc 0 0

 - Jon



More information about the Monodroid mailing list