I have bought a LG Nexus 5 smartphone, but after plugin in under Fedora (20) there was no response from the OS to mount it automatically. The dmesg | tail command gave me this:
1 2 3 4 5 6 |
[46671.901161] usb 2-1: new high-speed USB device number 5 using ehci-pci [46672.016275] usb 2-1: New USB device found, idVendor=18d1, idProduct=4ee1 [46672.016281] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [46672.016284] usb 2-1: Product: Nexus 5 [46672.016287] usb 2-1: Manufacturer: LGE [46672.016290] usb 2-1: SerialNumber: 04be158d3444ab82 |
Ok, this is something, now i had to do this:
1 2 3 |
# yum install fuse fuse-libs libmtp simple-mtpfs # touch /etc/udev/rules.d/51-nexus.rules # nano /etc/udev/rules.d/51-nexus.rules |
And add those lines onto that file
1 2 |
# LGE Nexus 5 SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0666" |
OK, almost the last thing was to add to lines into my .bashrc file:
1 2 |
alias nexusmount="simple-mtpfs /path/to/my/mount-point" alias nexusumount="fusermount -u /path/to/my/mount-point" |
Now i had to restart my Fedora and voila after restart and plugin my Nexus 5 phone i do the nexusmount command from the terminal and it works!
Sources:
http://l33tsource.com/blog/2014/04/19/Mount-Nexus-5-on-Fedora/
http://tacticalvim.wordpress.com/2012/12/08/mounting-nexus-4-via-mtp-in-fedora-17/