How To: Mount a Google Nexus 7 Tablet in Linux

In 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


sudo umount mtpfs

Source:, I just paraphrased it a little to simplify.

One thought on “How To: Mount a Google Nexus 7 Tablet in Linux”

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.