Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] USB permission/owner - change not allowed as root
Date: Tue, 31 Dec 2013 08:50:27
Message-Id: 52C28534.6060207@gmail.com
In Reply to: Re: [gentoo-user] USB permission/owner - change not allowed as root by Joseph
1 On 30/12/2013 19:22, Joseph wrote:
2 > On 12/30/13 17:36, Randolph Maaßen wrote:
3 > [snip]
4 >>>
5 >>> With the line in fstab:
6 >>>
7 >>> /dev/sdb1 /media/stick auto noauto,rw,users
8 >>> 0 0
9 >>>
10 >>> Some USB stick are mounted as root:root and I can not change that
11 >>> even as
12 >>> root.
13 >>> When I remove this like from fstab.
14 >>> The USB stick are mounting correctly as joseph:users owner except
15 >>> they have
16 >>> different mounting location which I don't like.
17 >>>
18 >>> --
19 >>> Joseph
20 >>>
21 >>
22 >> You can specify the user/group that mounts a device with some mount
23 >> options. I think they are uid=<username>/gid=<groupname> but I'm not
24 >> sure and unfortunatly not on my Linux box at the moment.
25 >
26 > I've tried in fstab:
27 > /dev/sdb1 /media/stick auto
28 > noauto,uid=1000,gid=100,umask=077 0 0
29 >
30 > but I'm getting an error:
31 > Error mounting system-managed device /dev/sdb1: Command-line `mount
32 > "/media/stick"' exited with non-zero exit status 32: mount: wrong fs
33 > type, bad option, bad superblock on /dev/sdb1,
34 >
35 > What am I missing?
36 >
37
38 mount cannot auto-identify the fs type on your USB stick, or /dev/sdb1
39 is the wrong node.
40
41 blkid as Bruce mentioned will help identify what is really going on.
42 Also, tail -f /var/log/messages, insert the stick, and post the entries
43 that produces.
44
45
46
47
48 --
49 Alan McKinnon
50 alan.mckinnon@×××××.com

Replies

Subject Author
Re: [gentoo-user] USB permission/owner - change not allowed as root Joseph <syscon780@×××××.com>