The New Stuff

238 Views

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.

Instructions

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 51.android 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

Recently Published

samsung-malaysia-galaxy-tab-a
»

Samsung Galaxy Tab A 8.0 and 9.7 Coming To Malaysia

These tabs have the same 64-bit Quad-Core Snapdragon 410 processor ...

find-official-samsung-galaxy-s6-accessories-easily-with-new-app
»

Find Official Samsung Galaxy S6 Accessories Easily With New App

Your Samsung GS6 is already awesome, but when you use some awesome ...

very-functional-moto-e-android-5.1-unofficial-build-available
»

Very Functional Moto E Android 5.1 Unofficial Build Available

The Motorola’s much-affordable Moto E is not a high-end phone but ...

If you root Galaxy S6, S6 Edge, you lose Samsung Pay
»

If you root Galaxy S6, S6 Edge, you lose Samsung Pay

The development community has already started finding ways to root ...

Sony Android 5.0 Lollipop update for Xperia C3 and T2 Ultra Official
»

Sony Android 5.0 Lollipop update for Xperia C3 and T2 Ultra Official

Sony is continually updating various Xperia phones to Android 5.0 ...

Facebook’s new Hello app makes calling and blocking easy
»

Facebook’s new Hello app makes calling and blocking easy

Looking for something which makes you really comfortable with your ...

article image
»

Canadian Galaxy S4 gets Android 5.0.1 update

The Samsung Galaxy S4 is getting the Android Lollipop update by ...

article image
»

Android 5.0.2 rolling out to AT&T LG G2

After some Samsung devices, AT&T-branded LG’s G2 is getting the ...

article image
»

AT&T rolling out Android 5.0 for Galaxy Alpha and Galaxy S5 Active

AT&T is now rolling out the Android 5.0 Lollipop update for two ...