How To: Mount a Google Nexus 7 Tablet in Linux
r3dux | November 3, 2012In Windows you can just plug it in and it’ll mount and recognise just fine, but in Linux you need to work a little bit harder. Not that much harder, though – it’s a 4-step….
1 – Get the right tools
sudo apt-get install mtp-tools mtpfs |
2 – Set up a udev rule to do the right thing on connection
gksu gedit /etc/udev/rules.d/51-android.rules |
Add this text to the rule to specify the Vendor ID, Product ID and user who has access to the device (change YOUR-USERNAME-HERE to your username, obv):
SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", ATTR{idProduct}=="6860", MODE="0666", OWNER="YOUR-USERNAME-HERE" |
3 – Restart udev and set up a mount point
sudo service udev restart sudo mkdir /media/Nexus7 sudo chmod a+rwx /media/Nexus7 |
4 – Hook it up
Plug in your Nexus 7 and select MTP device as the connection type.
Then enter:
sudo mtpfs -o allow_other /media/Nexus7 |
At this point you should be able to read/write to your N7 via the /media/Nexus7 folder through any means you choose.
When you need to, just run either of the following for a clean dismount:
sudo umount /media/Nexus7 |
or
sudo umount mtpfs |
Source: http://www.nexus7tablethelp.com/2012/07/connect-nexus-7-to-linux-via-mtp-using.html, I just paraphrased it a little to simplify.










