I have two Android 4.x devices, one 4.0.2 and another 4.4.2. On both, I have installed SSHelper to push data to and from the device using rsync. It worked, but the new environment does not even have a usable rm. I would like to switch over to something that works better and possibly faster.
My next attempt was to use MTP over USB with mtpfs, but that does not work, it freezes. simple-mtpfs is not packaged for Ubuntu 13.10. KDE KIO is able to read from the device over MTP, but that does not help me at all, since I want to write my own script using rsync, and it is not able to write to it.
Then I tried sshfs, I do not get any errors mounting it, but I get IO-errors whenever I even try to cd into the mountpoint. I guess the environment with SSHelper lacks something. It does not work with HTTPS and FTPS Server either. The SFTP provided with the latter works with Filezilla, though.
So how can I get /sdcard to be mounted somewhere on my Linux machine and copy and delete files from it like I want?
adbfsoradb push/adb pull(see my answers here and here). I use the former for quite a while now. Mounts like a normal "drive". Should be usable forrsync, though I didn't try. Of course,adb push/pullare not really suitable for "sync", butadbfsshould be :) – Izzy Dec 11 '13 at 17:13adbfsdoes not sound bad. I guess that requires to install gigabytes of Android SDK? I just have tried to install a SFTP server on the 4.0.2 device. It works fine with Filezilla, but not withsshfs. – Martin Ueding Dec 11 '13 at 17:24apt-get install android-tools-adb. ADB itself is tiny and doesn't depend on the SDK. In turn, the only dependencies foradbfsareadbandfuse. – dotVezz Dec 11 '13 at 17:48adbFSandadbfs-rootless, both did not work. I wrote an email to both developers, let's see what comes around. By the way: I understand that “normal” people just use Google Drive or Dropbox and do not care about accessing the real file system, but is there no usable way to mount the/sdcard? From the Nexus 10, I cannot even get it out the device … – Martin Ueding Dec 11 '13 at 18:24mtpfs? Or do you use Nautilus or Dolphin? – Martin Ueding Dec 11 '13 at 18:43adbfs, you might wish to take a look at Tools for Android (my site), I did some corrections to make things work with Ubuntu 12.04. Guess that should do for 13.04/13.10 as well, but I didn't test. (PS: Ooops, I didn't putadbfsthere for some reason? Need to check that... Ah! Watchout 4adbfs-rootless, that's the working one. The other didn't work for me either) – Izzy Dec 11 '13 at 19:44