Android 4.1 use the MTP (Media Transfer Protocol) and Linux doesn't natively support MTP. Something it doesn't work well with Linux/Ubuntu. When I connect my Nexus 7 to a Server running Linux using USB, none USB device appears and I have to mount it via MTP for accessing the file system.
How to Connect Nexus 7 to Linux
Open the terminal window and type the commands to setup.
* First install the necessary tools:
sudo apt-get install mtp-tools mtpfs
* Set up a UDEV rule
gksu gedit /etc/udev/rules.d/51-android.rules
* Type this text in it. Make sure all are in a single line:
SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", ATTR{idProduct}=="6860", MODE="0666", OWNER="your-username-in-the-linux"
* Set up a mount point
sudo service udev restart
sudo mkdir /media/Nexus7
sudo chmod a+rwx /media/Nexus7
* Plug your Nexus 7 in and select MTP on the tablet, then enter:
sudo mtpfs -o allow_other /media/Nexus7
* Now You can browse your Android phone contents or add/remove/modify files using Nautilus. When you need To unmount, try this:
sudo umount mtpfs
Works great. Thank you.
ReplyDeleteIt works with my Nexus 7!
ReplyDeleteThank you!
I just get Playlists and Internal folders. Clicking Internal just opens the device again.
ReplyDelete@Matt.
ReplyDeleteGot same issue as yours initially,
Fixed by subs ATTR{idVendor} and ATTR{idProduct} values with your own Google device ID from lsusb.
run lsusb, you will see this something like,
Bus 001 Device 010: ID 18d1:4e41 Google Inc.
18d1 is the idVendor
4e41 is the idProduct
Thanks, that helped a bunch!
ReplyDeleteThanks, really good info here!
ReplyDeleteWorks with my Nexus 7, Thanks !
ReplyDeletethanks..
ReplyDeletethanks a lot...helped me a lot :)
ReplyDeleteThanks a million!
ReplyDeleteThanks!
ReplyDeleteThanks! you are the man! I think I love u!... can you explain why is it necessary?
ReplyDeleteThanks again.
Thank you!
ReplyDeleteThank you. This worked well for me with Daniel's comment making all the difference. I only see the folders:
ReplyDeleteAlarms DCIM Movies Notifications Playlists Ringtones
Android Download Music Pictures Podcasts
I wanted to copy my clockworkmod backup to ubuntu but I am still struggling to see that :(
this didn't work for me... i followed the directions but it is saying file not found when i double click the Nexus7 folder
ReplyDeleteThanks!
ReplyDeleteREALLY thank you, guy!
ReplyDeleteGreat and simple, thank you!
ReplyDeleteWorked on Linux Mint + Nexus 7
Thanks a lot!
ReplyDeleteWorked in my ubuntu 12.04 LTS
Works on Ubuntu 11.04 with Daniel's comment, i.e. the idVendor and idProduct needed changing.
ReplyDeletethanks a lot works well
ReplyDeleteThanks a lot, works fine
ReplyDeleteThanks, it worked first time!
ReplyDeleteRay Carbuhn
10x - Works with Daniels note. But it's slooooooooow. Better install ES File Explorer on the tablet and transfer files from/to shared PC foler(s)
ReplyDelete10x - Works with Daniels note about lsusb. But so slooooooow. Better install ES File Explorer from market and then transfer from/to shared PC folder(s)
ReplyDeleteFor those who don't want to deal with MTP, there's always mounting over wifi with sshfs and the SSHDroid app.
ReplyDeleteI've been using that on my gnexus and nexus 7.
thanks
ReplyDeleteCouldn't quite get this method to work. downloaded a program from the Ubuntu software center called gMTP. Was able to get my music on to my Nexus using that. Not as seemless as dragging and dropping files there but it did what I needed it to so.
ReplyDeleteThis method did not work for me. I ended up downloading gMTP from the Ubuntu software center. I was able to connect and copy my music from my Ubuntu Pc to the Nexus 7 pretty quickly. Not as easy as drag and drop or copy and paste but did what I needed
ReplyDeleteif you don't get this worked on nautilus, try other file managers like PCManFM.
ReplyDeletethanks!!
ReplyDeleteworks well thank you guys!!!!
ReplyDeleteFollowed this and everything worked fine. Was able to move movies and stuff to my Nexus 7. Thanks Alot :D
ReplyDeleteThank you SO MUCH.
ReplyDeleteIt worked flawlessly.
Nexus7 running jellybean 4.2.2 (unmodified). And ubuntu 12.04.