Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I would like to rsync my music with my Android phone (Galaxy Nexus), I'm trying to work out the mount path to use from the shell. The mount command doesn't show up on the phone. In Nautilus the location of a music file is shown as:

gphoto2://[usb:001,009]/Music/foo.mp3

How would I mount this location from the shell?

(I know about Banshee and other music players. I just want to use the easy, reliable, crashless rsync.)

% cat /etc/issue
Ubuntu 12.04.1 LTS \n \l

% uname -a
Linux guava 3.2.0-35-generic #55-Ubuntu SMP Wed Dec 5 17:42:16 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
share|improve this question
1  
Did you look in /mnt or /media ? –  Sparhawk Dec 30 '12 at 3:13
    
Thanks for the replies, I'm on the road and I'll check the solutions when I can :-) –  Sonia Hamilton Dec 31 '12 at 23:04
    
Did you ever get it sorted out? –  tgies Mar 25 '13 at 16:09
    
No - it got put into the "too hard backet", though gvfs-mount -l is hand –  Sonia Hamilton Mar 26 '13 at 3:55
add comment

3 Answers

gphoto is automounting your Android device. To find out where the actual mountpoint lies, use gvfs-mount -l. I believe the actual mountpoints all end up in ~/.gvfs.

share|improve this answer
add comment

I have a Samsung Galaxy Tab 2 7.0 tablet, and it seems to act the same as yours. It does not get mounted automatically very well at all, and not in any usual way. I have sometimes gotten it to mount correctly, although often none of the folder contents are visible.

So, I started looking into it just today, and discovered a method that works very well, using this site: http://blog.itsbilal.com/index.php/2012/12/connect-an-android-4-0-phonetablet-to-ubuntu-the-reliable-way/

He mounts it in a subdirectory of your home directory; for my setup, it creates two folders, "Card" and "Tablet".

The storage is not in any of the usual places, but that doesn't really matter. I haven't actually figured out how to make it automatically mount using fstab, but I did create two shortcuts to mount and unmount on demand. If you want Unity quicklists, there was an article here that might help, although I didn't use this one.

PS... I believe that the phone needs to be unlocked in order to mount successfully.

share|improve this answer
add comment

I rsync to my android like this (bash script):

if [ -n "`lsusb | grep -i Samsung`" ]
then
    phone=`mktemp --directory`
    go-mtpfs $phone &
    sleep 3s
    # Setting -T /tmp even though this is a security risk (/tmp race).
    # Without that rsync fails on renaming .foo to foo for some reason.
    opts="--archive --delete --update --progress -T /tmp"
    rsync $opts ~/from/my/stuff $phone/Card/stuff
    fusermount -u $phone
fi
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.