Gentoo Archives: gentoo-user

From: Daniel Frey <djqfrey@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] MTP auto-mount? (Kindle Fire HD)
Date: Wed, 19 Sep 2012 01:32:03
Message-Id: 50592006.4070804@gmail.com
In Reply to: [gentoo-user] MTP auto-mount? (Kindle Fire HD) by Mark Knecht
1 On 09/18/2012 10:37 AM, Mark Knecht wrote:
2 > Hi all,
3 > Are there any known tricks for auto-mounting an MTP device? I think
4 > this stuff is used on some newer Android phone so I'm hoping someone
5 > has a nice solution.
6
7 MTP is used on a quite a few newer Android devices, including my Nexus
8 7. I haven't found an automount solution yet, but it is possible to
9 create an fstab entry, though
10
11 >
12 > My wife decided to buy the new Kindle Fire HD based on our good
13 > experience with the original Kindle Fire. The new device is very nice
14 > - faster, nicer screen, better networking, etc. - but no longer
15 > presents itself as a USB Mass Storage device like my older Kindle
16 > Fire. Rather it uses Media Transfer Protocol. (MTP) I've managed to
17 > get it mounted using a package from the poly-c overlay called jmtpfs.
18 > Info is located here:
19 >
20 > http://research.jacquette.com/jmtpfs-exchanging-files-between-android-devices-and-linux/
21 >
22 > I've copied some movies over and they play fine on the new device
23 > but it's all by-hand manual mounting, etc. When the device is plugged
24 > in I get this sort of info in dmesg:
25 >
26 > [15720.370654] usb 2-2: new high-speed USB device number 4 using ehci_hcd
27 > [15720.490935] usb 2-2: New USB device found, idVendor=1949, idProduct=0007
28 > [15720.490940] usb 2-2: New USB device strings: Mfr=2, Product=3, SerialNumber=4
29 > [15720.490944] usb 2-2: Product: Kindle
30 > [15720.490947] usb 2-2: Manufacturer: Amazon
31 > [15720.490949] usb 2-2: SerialNumber: REMOVED
32 >
33 > and based on one post I read for Ubuntu (or maybe Arch - I don't
34 > remember) I've created this udev rule:
35 >
36 > mark@c2stable ~ $ cat /etc/udev/rules.d/51-android.rules
37 > UBSYSTEM=="usb", ATTR{idVendor}=="1949", ATTR{idProduct}=="0007", MODE="0666"
38 > mark@c2stable ~ $
39
40 I documented what I had to do to mount my Nexus 7 on the forums, under
41 my own Nexus 7 thread, although now that I think about it, I don't think
42 I put an fstab entry in it. I do have one in my /etc/fstab, though:
43
44 mtpfs /mnt/nexus7 fuse user,noauto,allow_other 0 0
45
46 Make sure the mountpoint will be writeable.
47
48 > Anyway, it's all usable but a bit clumsy. Is there a sensible way I
49 > can have the device recognized and mounted via rules in fstab? (Or any
50 > other fixed file?)
51
52 I haven't looked to see if there's a way to automount it yet though.
53
54 >
55 > Thanks,
56 > Mark