If you're a Linux ( Ubuntu ) user and you own a Nexus 4 then this is a guide that you should read. It will teach you how to easily mount and unmount the sdcard of your phone easily so that you'll be able to copy files from your N4 to your PC.

Mostly, this guide will apply go for Ubuntu system but it should work with all the other Linux-based OS versions. It might with the Nexus 7 and Nexus 10 tablets also, but we didn't have the time to test it. You can do it by yourself and then tell us in comments if it worked.

Mounting the SD card of your Nexus 4 should be easy but with Linux it never is. However, we can fix this using the tutorial guide instructions that I've listed  below. This 'how-to' guide should be read and learned by all users of Linux as it will help you easily transfer data files between your Linux PC and your phone.

Before moving to the tutorial, you should read enable these:

  • Enable Developer Options menu. Do it by opening Settings, then 'about phone' menu and after that you should tap seven times on the 'Build Number'   area.
  • Now, from the Developer Options menu, you need to enable the USB Debugging.

That's it, now you can get to the how-to guide.

How to mount the Nexus 4 storage SD card on Linux systems:

  1. Launch the Ubuntu terminal window.
  2. Enter the following command line: sudo apt-get install mtp-tools mtpfs
  3. Now you have to set the 51.android rules which will tell Ubuntu or any other Linux OS how to correctly recognize your Nexus 4, when this is connected with your PC. Enter the following command line in terminal: sudo gedit /etc/udev/rules.d/51-android.rules
  4. Now a 'notepad' will launch and you have to paste the info listed below in that particular file. Enter the text for Nexus 7 and Nexus 10 only if you own such devices:
    • #LG – Nexus 4
      SUBSYSTEM==”usb”, ATTR{idVendor}==”1004?, MODE=”0666?
      #Samsung – Nexus 7 & 10
      SUBSYSTEM==”usb”, SYSFS{idVendor}==”18d1?, MODE=”0666?
  5. Go back to the terminal window and enter the following command line: sudo chmod +x /etc/udev/rules.d/51-android.rules 
  6. That'll turn the file into an executable one. Restart your device using this command: sudo service udev restart
  7. Now you have to make a mount point and permissions for your device to open in Ubuntu. Enter the following command lines:
    • sudo mkdir /media/nexus4
      chmod 755 /media/nexus4
    • Note: In case you want to mount the Nexus 7 / 10, then you will have to repeat step 7 and this time you need to enter the same commands but with the 'nexus7' or 'nexus10' terms.
  8. Next, connect your Google Nexus 4 to your Ubuntu / Linux computer using the USB cable. The MTP option has to be enabled on your smartphone.
  9. Enter the following command in the terminal: sudo mtpfs -o allow_other /media/nexus4 - again, change 'nexus4' with 'nexus7' or 'nexus10' if you own such devices.
  10. When you're done copying all the files, you will need to unmount your Nexus 4 using this command: sudo umount /media/nexus4
  11. These were all the actions you had to take in order to successfully mount your smartphone with your Linux computer.

NOTE: Every time you need to move files between your Nexus 4 and your PC you will have to apply steps 9 and 10.

I hope you managed to complete this tutorial. However, if you cannot mount the device using this method, then you should open the Ubuntu Software Center app and then search for the 'gMTP' utility. You have to install it and then launch it every time you connect your Nexus 4 with your Linux OS, then simply click once to mount the MTP storage.

If you have any problems with this guide or you cannot mount your phone to PC, then you should ask for more help in comments. Also, if you know any other method that is easier, please leave a detailed comment and tell us how to complete the mount/ unmount process of the Google Nexus 4 on Linux computers.

corner-left-up dots-three-vertical