Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 20th November 2012, 10:56 PM
Creak Offline
Registered User
 
Join Date: Nov 2012
Location: France
Posts: 2
linuxfirefox
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.
Reply With Quote
  #2  
Old 21st November 2012, 11:08 AM
george_toolan Offline
Registered User
 
Join Date: Dec 2006
Posts: 1,718
linuxfirefox
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.
Reply With Quote
  #3  
Old 22nd November 2012, 06:01 PM
Creak Offline
Registered User
 
Join Date: Nov 2012
Location: France
Posts: 2
linuxfirefox
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.
Reply With Quote
Reply

Tags
automount, nautilus, nexus

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't mount Nexus BocasThunder Using Fedora 2 28th October 2012 03:15 PM
Nexus Personal mini guide nickeh Guides & Solutions (No Questions) 13 17th June 2011 01:22 AM
Problem with autoMount and nautilus, totem nUnpunk Using Fedora 0 11th November 2005 10:05 PM
Hauppauge Nexus recnelis Hardware & Laptops 0 2nd October 2004 12:26 PM


Current GMT-time: 14:18 (Wednesday, 22-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat