Gentoo Archives: gentoo-user

From: Walter Dnes <waltdnes@××××××××.org>
To: Gentoo Users List <gentoo-user@l.g.o>
Subject: [gentoo-user] Regular user can't mount/unmount mtpfs; root is OK
Date: Thu, 24 Jul 2014 22:08:41
1 I sent this a day or 2 ago, but it doesn't show up on the list for me.
2 Apologies to anyone seeing a duplicate.
4 I'm a total noobie at mtpfs/FUSE. My "excellent adventure" started
5 yesterday when I got a clearout 7" tablet, and took a sample photo, and
6 tried mounting the tablet... no /dev/sdb to be found anywhere. I went
7 to "Mr. Google" for help, and found out that MTP is the "new and
8 improved" way of doing things. So I installed mtpfs. It works great
9 for root, but a regular user can't mount the tablet. The mtpfs command
10 immediately returns to the command prompt, with no error message or any
11 other info. The tablet is not mounted...
13 [d531][waltdnes][~] mtpfs ~/tablet
14 [d531][waltdnes][~]
16 Before anyone asks...
18 1) Yes, I have enabled FUSE in the kernel. At first I hadn't, but I got
19 a big red warning when I tried compiling mtpfs. I tweaked and rebuilt
20 the kernel, and rebooted, then built mtpfs.
22 2) Yes, I am a member of plugdev...
24 [d531][root][~] grep plugdev /etc/group
25 plugdev:x:247:waltdnes,user2
27 3) This PC uses mdev rather than udev. Could that be the problem?
29 I've figured out a kludge to get around it. This involves issuing a
30 few commands as root. I've added them into a file in /etc/sudoers.d/
31 but I'd really rather prefer a cleaner solution.
33 [d531][root][~] mtpfs -o allow_other /home/waltdnes/tablet
34 Device 0 (VID=0bb4 and PID=2008) is UNKNOWN.
35 Please report this VID/PID and the device model to the libmtp development team
36 Android device detected, assigning default bug flags
38 When I was finished, I tried...
40 [d531][waltdnes][~] fusermount -u tablet
41 fusermount: entry for /home/waltdnes/tablet not found in /etc/mtab
43 I had to unmount as root...
45 [d531][root][~] fusermount -u /home/waltdnes/tablet
47 I experienced similar problems with simple-mtpfs, so that's not a
48 solution either. Any ideas?
50 --
51 Walter Dnes <waltdnes@××××××××.org>
52 I don't run "desktop environments"; I run useful applications