Mount Nexus 4, Nexus 7 and Nexus 10 to Linux Computer [How-To]

Tips & Tricks

Mount Nexus 4, Nexus 7 and Nexus 10 to Linux Computer [How-To]

So you just have got your Nexus 4, Nexus 7 or Nexus 10 and when you connect it to Ubuntu or any other Linux version, it doesn’t show up any auto play box to share your files. Don’t be worried, in fact the Nexus family works differently on Linux operating system, Linux doesn’t detect the phone automatically, you have to mount your Nexus 4, Nexus 10 and Nexus 7 to Linux manually, here’s step-by-step guide that walk you through how to mount Nexus 4 to Linux machine, once you’re done, you’ll be able to transfer files between Nexus devices and Linux.

Before you start first enable developer options and USB debugging on your Nexus 4, check out this story to learn how you can do so.


Step #1: Install all required modules on your computer, to do so open up terminal window and enter following command:

sudo apt-get install mtp-tools mtpfs

Step #2: Configure rules, for unfamiliar, this rule helps you Linux to detect the phone when you connect, enter following command to do so:

sudo gedit /etc/udev/rules.d/51-android.rules

The above command will fire up notepad.

Step #3: Paste the below text to notepad:

#LG – Nexus 4
SUBSYSTEM==”usb”, ATTR{idVendor}==”1004″, MODE=”0666″
#Samsung – Nexus 7 & 10
SUBSYSTEM==”usb”, SYSFS{idVendor}==”18d1″, MODE=”0666″

Step #4: Make the file executable by entering following command to terminal window:

sudo chmod +x /etc/udev/rules.d/51-android.rules

Step #5: Now enter another following command to restart udev service:

sudo service udev restart

Step #6: Wait for few minutes.

Step #7: Create the mount point and permission for your device by entering following commands:

For Nexus 4, enter following commands:

sudo mkdir /media/nexus4
chmod 755 /media/nexus4

For Nexus 7, enter following commands:

sudo mkdir /media/nexus7
chmod 755 /media/nexus7

For Nexus 10, enter following commands:

sudo mkdir /media/nexus10
chmod 755 /media/nexus10

Step #8: Plug your device to computer and make sure the MTP is enabled on the device.

Step #9: Mount your device by entering following command:

For Nexus 4:

sudo mtpfs -o allow_other /media/nexus4

For Nexus 7:

sudo mtpfs -o allow_other /media/nexus7

For Nexus 10:

sudo mtpfs -o allow_other /media/nexus10

Step #10: Unmount device by entering following command:

For Nexus 4:

sudo umount /media/nexus4

For Nexus 7:

sudo umount /media/nexus7

For Nexus 10:

sudo umount /media/nexus10

Step #11: Whenever you need to transfer files between your Nexus device and Linux, plug device and enter commands given in step 9. If you don’t want to enter commands, download gMTP from here [Official Ubuntu Center] and install it. Then simply run the app when you plug the device to computer, and click on mount SD card.

That’s it, you’re done, enjoy!

Via: XDA

Related posts:

  1. How To Root Nexus 4 on Linux – Guide
  2. Learn How To Root Nexus 4 – Guide
  3. Flash ClockworkMod (CWM) Recovery on Nexus 7
  4. How to Unbrick the Nexus 7
  5. Learn How to Root Nexus Q

You can follow us on Twitter for random streams or free Newsletter Subscritions Join RSS or join our Facebook page to keep yourself updated on all the latest from Android, Google, TIps & Tricks, HTC, Android App Reviews, Android Mobiles, Honeycomb, Google Chrome, Chrome OS, Gadgets, Google News, webOS, android firmware and Chrome Extensions.
Tags:  ,  ,  ,  ,  ,  ,  ,  ,  ,  

Being a technology enthusiast, Abdur Rehman feels satisfaction when he is among latest gadgets and covering new waves of tech world.


  1. Arun Saha

    December 30th, 2012

    I appreciate the detailed specific and sequenced instructions. Great job!

    I followed it for Nexus10, but it did not work. Following are the logs. Is there anything I am missing? Any suggestions?

    $ sudo mtpfs -o allow_other /media/nexus10/
    [sudo] password for arun:
    Listing raw device(s)
    Device 0 (VID=18d1 and PID=4ee1) is UNKNOWN.
    Please report this VID/PID and the device model to the libmtp development team
    Found 1 device(s):
    18d1:4ee1 @ bus 1, dev 6
    Attempting to connect device
    Android device detected, assigning default bug flags
    Listing File Information on Device with name: (NULL)

  2. NI

    February 17th, 2013

    Doesn’t work at all, waste of time!

  3. Joe Bloe

    March 10th, 2013

    It mounts, but then:
    “Could not display “/media/nexus4/Internal storage”.
    The location is not a folder.”
    …not terribly helpful.

  4. Rama

    December 2nd, 2013

    Mostly works for me on my Nexus 5, modifying the 4 to a 5. It opens up all the files, but the photo and video files don’t open well or quickly. It seems to take about 60 seconds (at least) to open a file. They ‘stick’, but do finally open.

    Reads the dates the pics taken as from 1969.

    This is on LXLE 64bit on AMD QuadCore, 4GB SD3 RAM

    Bummer. So close.

  5. G Carter

    November 20th, 2014

    This worked perfect. My Nexus 10 Android Lolipop and Linux Mint 17 are connected.


Leave a Comment

Name *

Mail (will not be published) *

Website (optional)

Your Comment *