On 09/18/2012 10:37 AM, Mark Knecht wrote: > Hi all, > Are there any known tricks for auto-mounting an MTP device? I think > this stuff is used on some newer Android phone so I'm hoping someone > has a nice solution.
MTP is used on a quite a few newer Android devices, including my Nexus 7. I haven't found an automount solution yet, but it is possible to create an fstab entry, though > > My wife decided to buy the new Kindle Fire HD based on our good > experience with the original Kindle Fire. The new device is very nice > - faster, nicer screen, better networking, etc. - but no longer > presents itself as a USB Mass Storage device like my older Kindle > Fire. Rather it uses Media Transfer Protocol. (MTP) I've managed to > get it mounted using a package from the poly-c overlay called jmtpfs. > Info is located here: > > http://research.jacquette.com/jmtpfs-exchanging-files-between-android-devices-and-linux/ > > I've copied some movies over and they play fine on the new device > but it's all by-hand manual mounting, etc. When the device is plugged > in I get this sort of info in dmesg: > > [15720.370654] usb 2-2: new high-speed USB device number 4 using ehci_hcd > [15720.490935] usb 2-2: New USB device found, idVendor=1949, idProduct=0007 > [15720.490940] usb 2-2: New USB device strings: Mfr=2, Product=3, > SerialNumber=4 > [15720.490944] usb 2-2: Product: Kindle > [15720.490947] usb 2-2: Manufacturer: Amazon > [15720.490949] usb 2-2: SerialNumber: REMOVED > > and based on one post I read for Ubuntu (or maybe Arch - I don't > remember) I've created this udev rule: > > mark@c2stable ~ $ cat /etc/udev/rules.d/51-android.rules > UBSYSTEM=="usb", ATTR{idVendor}=="1949", ATTR{idProduct}=="0007", MODE="0666" > mark@c2stable ~ $ I documented what I had to do to mount my Nexus 7 on the forums, under my own Nexus 7 thread, although now that I think about it, I don't think I put an fstab entry in it. I do have one in my /etc/fstab, though: mtpfs /mnt/nexus7 fuse user,noauto,allow_other 0 0 Make sure the mountpoint will be writeable. > Anyway, it's all usable but a bit clumsy. Is there a sensible way I > can have the device recognized and mounted via rules in fstab? (Or any > other fixed file?) I haven't looked to see if there's a way to automount it yet though. > > Thanks, > Mark