Monday, June 18, 2012

Mounting Android tablet to ArchLinux laptop

I'm using Arch Linux on my laptop, and have ASUS Transformer TF101 tablet with Android 4.0.3. And yes, it doesn't recognize my Transformer as USB device. In Android 2.3.6 (which I have on my phone) it just prompts me to allow connection as USB storage, nothing more.
To mount Transformer and be able to use for data transfer through MTP, I did the following (as root):
1. Installed libmtp (Library implementation of the Media Transfer Protocol):
# pacman -S libmtp
2. Installed mtpfs (A FUSE filesystem that supports reading and writing from any MTP device):
# pacman -S mtpfs
3. Created a mount point:
# mkdir /media/Transformer
4. Changed permissions on that directory:
# chmod 777 /media/Transformer
5. Mounted my tablet:
mtpfs /media/Transformer -o allow_other
6. ...
7. PROFIT

Now, I can access the filesystem on my tablet using terminal. The outstanding issue I still have - when I try to navigate over it from Dolphin (as my local user not root), it  blocks the access for some reason:( Need to find out the solution...