[Guide] How to mount Nexus 4 on Ubuntu

Il Nexus 4 like all other Nexus models does not offer the possibility to store your data on one external memory, but only in the inner one, all this has gods PRO , such as greater speed of access to data but also of data AGAINST: recognition of the internal memory may not be so immediate with all devices.

By focusing on Linux and especially on Ubuntu and its derivatives it is not so difficult to run into problems concerning the assembly of the internal memory of the Nexus 4, making it difficult for the user even the simplest operations of file transfer via USB; in this article we will show 2 methods that will allow you to access the internal memory of the Nexus 4 using the MTP protocol.

1 - GNOME Virtual File System (GVFS)

GVFS supports MTP protocol used by the Nexus 4 for USB connection, and it is already present in the versions of Ubuntu starting from 13.04Therefore, no particular problems should be encountered with device recognition.

If instead it is used Ubuntu 12.04 or 12.10, È necessario install the GVFS backport with the following terminal commands:

$ sudo add-apt-repository ppa: langdalepl / gvfs-mtp
$ sudo apt-get update && sudo apt-get dist-upgrade

After the installation of GVFS it is recommended to restart the system: in subsequent connections via USB, Ubuntu will correctly mount the internal memory of the Nexus 4 and will be directly accessible from Nautilus.

2 - ASSEMBLY OF THE NEXUS 4 USING THE TERMINAL

If the previous method does not work, or if you do not use GNOME, it is still possible to mount the device using the terminal, the procedure is less immediate but still simple and functional to 100%:

  1. Enable the Debug USB in the Nexus 4
  2. Install the modules for the proper functioning of the MTP on Ubuntu with the following terminal command
    $ sudo apt-get install mtp-tools mtpfs
  3. Configure the file "51-android.rules“: From the terminal we open the file with the command
    $ sudo gedit /etc/udev/rules.d/51-android.rules

    an empty text file will open in which we will have to add:

    #LG - Nexus 4
    SUBSYSTEM == "usb", ATTR {idVendor} == "1004 ?, MODE =" 0666?

  4. Give the execution permits to the file just modified with:
    $ sudo chmod + x /etc/udev/rules.d/51-android.rules
  5. Restart the service Udev:
    $ sudo service udev restart
  6. Create a assembly point specific to the Nexus 4:
    $ sudo mkdir / media / nexus4
    $ sudo chmod 755 / media / nexus4
  7. Connect the Nexus to the PC, choosing as MTP protocol (and not PTP)
  8. Run this command from the terminal every time, after connecting the Nexus 4 to the PC:
    $ sudo mtpfs -o allow_other / media / nexus4
  9. To disassemble the Nexus 4, before physically disconnecting it from the USB paste this command into the terminal:
    $ sudo umount / media / nexus4

I leave you with a video tutorial that shows the latter method in detail


Source OMG Ubuntu! | Link

Receive the latest posts by email

Enter the email and choose the inscriptions on the new page

InTheBit.it
Added devices
  • Compare Smartphone (0)
  • Compare Notebook (0)
Compare