Nexus 4 unlocked and rooted

07/03/2013

Saving this as I know I”ll need to refer to the mount instructions

You are unable to just plug in your Nexus 4 in Linux but it is very easy to mount and unmount to move data to/from your sdcard. This is one option that will allow you to utilize Nautilis (or any other file browser) to copy files to/from your Nexus 4. This is written for Ubuntu, but should work the same for other Linux systems. Also, this should work for Nexus 7 and 10.

1. Enable Developer options and enable USB debugging.
2. Install necessary modules to your computer:
sudo apt-get install mtp-tools mtpfs
3. Configure 51-android.rules:
sudo gedit /etc/udev/rules.d/51-android.rules
paste the following at the end of the file (if the file does not exist then just paste):
#LG – Nexus 4
SUBSYSTEM==”usb”, ATTR{idVendor}==”1004″, MODE=”0666″
#Samsung – Nexus 7 & 10
SUBSYSTEM==”usb”, SYSFS{idVendor}==”18d1″, MODE=”0666″

Save and exit.
4. Make the file executable:
sudo chmod +x /etc/udev/rules.d/51-android.rules
5. Restart udev
sudo service udev restart
6. Create mount point and permissions (will need to do this for other Nexus”” if using for the 7 or 10)
sudo mkdir /media/nexus4
chmod 755 /media/nexus4

7. Plug in the Nexus 4 and make sure MTP is enabled.

8. Mount with the following command:
sudo mtpfs -o allow_other /media/nexus4

9. When you have completed your work you must unmount:
sudo umount /media/nexus4

Now each time you need to copy from/to your Nexus 4 to your Linux computer you only need to plug in and run 8, then 9 when you have completed your work.

http://forum.xda-developers.com/showthread.php?t=2004182