 |
 |
 |
 |
| Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum. |

20th November 2012, 10:56 PM
|
|
Registered User
|
|
Join Date: Nov 2012
Location: France
Posts: 2

|
|
|
Automount Nexus 7 in Nautilus
Hi!
I've received a Nexus 7 recently and I'd like it to be mounted directly in Nautilus as a simple USB key.
I found this page, explaining how to do it on Ubuntu 12.04: http://bernaerts.dyndns.org/linux/24...unt-nexus7-mtp
Based on this website, here is what I've done: - Created the directory /media/Nexus7
- Created the file /etc/udev/rules.d/99-android.rules (same owner and chmod as the other rules files in the directory)
- Filled the file with this (renamed go-mtpfs to mtpfs binary file):
Code:
# Google Nexus 7 16 Gb Bootloader & recovery mode
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e40", MODE="0666" # Bootloader
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="d001", MODE="0666" # Recovery
# Google Nexus 7 16 Gb PTP mode (camera)
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e43", MODE="0666" # PTP media
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e44", MODE="0666" # PTP media with USB debug on
# Google Nexus 7 16 Gb MTP mode (multimedia device)
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e41", MODE="0666" # MTP media
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e42", MODE="0666" # MTP media with USB debug on
# Google Nexus 7 MTP mode : automatic mount when plugged (all android versions)
ENV{ID_MODEL}=="Nexus", ENV{ID_MODEL_ID}=="4e41", ACTION=="add", RUN+="/usr/bin/sudo -u yourlogin /usr/bin/mtpfs /media/Nexus7"
ENV{ID_MODEL}=="Nexus", ENV{ID_MODEL_ID}=="4e42", ACTION=="add", RUN+="/usr/bin/sudo -u yourlogin /usr/bin/mtpfs /media/Nexus7"
ENV{ID_MODEL}=="Nexus_7", ENV{ID_MODEL_ID}=="4e41", ACTION=="add", RUN+="/usr/bin/sudo -u yourlogin /usr/bin/mtpfs /media/Nexus7"
ENV{ID_MODEL}=="Nexus_7", ENV{ID_MODEL_ID}=="4e42", ACTION=="add", RUN+="/usr/bin/sudo -u yourlogin /usr/bin/mtpfs /media/Nexus7"
# Google Nexus 7 MTP mode : automatic unmount when unplugged (all android versions)
ENV{ID_MODEL}=="Nexus", ENV{ID_MODEL_ID}=="4e41", ACTION=="remove", RUN+="/bin/umount /media/Nexus7"
ENV{ID_MODEL}=="Nexus", ENV{ID_MODEL_ID}=="4e42", ACTION=="remove", RUN+="/bin/umount /media/Nexus7"
ENV{ID_MODEL}=="Nexus_7", ENV{ID_MODEL_ID}=="4e41", ACTION=="remove", RUN+="/bin/umount /media/Nexus7"
ENV{ID_MODEL}=="Nexus_7", ENV{ID_MODEL_ID}=="4e42", ACTION=="remove", RUN+="/bin/umount /media/Nexus7"
- Replaced "yourlogin" with my actual login.
I must be missing something... It seems like the udev rule doesn't work when I plug the Nexus 7.
When I do this to fake the Nexus 7 connection:
Code:
$ udevadm test --action=add /devices/pci0000:00/0000:00:1d.7/usb1/1-8
I can see that the rule tries to be applied, but nothing happens eventually...
Do you have the same problem? Or do you know what's wrong in udev?
Thanks
Last edited by Creak; 20th November 2012 at 11:02 PM.
|

21st November 2012, 11:08 AM
|
|
Registered User
|
|
Join Date: Dec 2006
Posts: 1,718

|
|
|
Re: Automount Nexus 7 in Nautilus
What exactly happens when you plug it in?
Code:
tail -f /var/log/messages
And /media might not be the best location since it's on a ramdisk. Try /mnt/Nexus7 instead
Last edited by george_toolan; 21st November 2012 at 11:11 AM.
|

22nd November 2012, 06:01 PM
|
|
Registered User
|
|
Join Date: Nov 2012
Location: France
Posts: 2

|
|
|
Re: Automount Nexus 7 in Nautilus
Here is what the tail says:
Code:
Nov 22 18:53:01 slibar kernel: [ 769.540024] usb 1-8: new high-speed USB device number 6 using ehci_hcd
Nov 22 18:53:02 slibar kernel: [ 769.668085] usb 1-8: New USB device found, idVendor=18d1, idProduct=4e41
Nov 22 18:53:02 slibar kernel: [ 769.668090] usb 1-8: New USB device strings: Mfr=2, Product=3, SerialNumber=4
Nov 22 18:53:02 slibar kernel: [ 769.668093] usb 1-8: Product: Nexus 7
Nov 22 18:53:02 slibar kernel: [ 769.668095] usb 1-8: Manufacturer: asus
Nov 22 18:53:02 slibar kernel: [ 769.668097] usb 1-8: SerialNumber: 015d2568743ffa05
Thanks for the tips, I changed the folder to /mnt/Nexus7. I had few hopes, but the result is still the same.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 14:18 (Wednesday, 22-05-2013)
|
|
 |
 |
 |
 |
|
|