Monday, October 10, 2011

Acer Iconia A100 - Mount microSD card from Linux Mint 10 & 11

It doesn't seem AcerSync has anything to do with Linux. If you need to manage directories and files of both internal storage (/mnt/sdcard) and SD card (i.e. /mnt/external_sd) in your A100 from Linux Mint (or other Unbuntu respin), you can try the following:


Install mtpfs & mtp-tools
vpcp115kg ~ # apt-get install mtpfs mtp-tools
vpcp115kg ~ # mkdir /media/a100
vpcp115kg ~ # chmod 775 /media/a100



Mount the storage
Connect A100 to your computer with an USB cable, then
vpcp115kg ~ # date; mtpfs -o allow_other /media/a100; date
Sun Oct 10 20:22:29 HKT 2011
fuse: mountpoint is not empty
fuse: if you are sure this is safe, use the 'nonempty' mount option
Sun Oct 10 20:22:51 HKT 2011
vpcp115kg ~ # ls /media/a100
ビデオ             data       JustReader  Music          pulse           tmp
ビデオ             DCIM       Kobo        myalbum        Ringtones       wwwjdic
Alarms             Download   LOST.DIR    Notifications  SpeedSoftware   漫画
Android            dropbox    lost+found  Pictures       su              音楽
apkinstaller.temp  Evernote   Mikulu      Playlists      Summer Player
astrid             extracted  Movies      Podcasts       TitaniumBackup
vpcp115kg ~ #
 

Certainly you just need to enter the command mtpfs -o allow_other /media/a100
It takes about 30 seconds to mount the storage. You can now manipulate your files from Linux. Just like how you deal with other external media, same rule applies, unmount it before disconnect the USB cable.


Same file / directory name
As both internal storage and SD card are treated as a single transactional file system, directories and files from both locations are combined into a single mount point through mtpfs. If there is a folder called /xyz in both locations, the one from internal storage has preference over SD card. It is kind of odd but I can see the advantage of mtpfs over traditional block device: concurrent access is possible from the mount point and from the tablet.