Gentoo Archives: gentoo-user

From: Joseph <syscon780@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] USB permission/owner - change not allowed as root
Date: Mon, 30 Dec 2013 17:22:30
Message-Id: 20131230172244.GN15186@syscon7.ed.shawcable.net
In Reply to: Re: [gentoo-user] USB permission/owner - change not allowed as root by "Randolph Maaßen"
1 On 12/30/13 17:36, Randolph Maaßen wrote:
2 [snip]
3 >>
4 >> With the line in fstab:
5 >>
6 >> /dev/sdb1 /media/stick auto noauto,rw,users
7 >> 0 0
8 >>
9 >> Some USB stick are mounted as root:root and I can not change that even as
10 >> root.
11 >> When I remove this like from fstab.
12 >> The USB stick are mounting correctly as joseph:users owner except they have
13 >> different mounting location which I don't like.
14 >>
15 >> --
16 >> Joseph
17 >>
18 >
19 >You can specify the user/group that mounts a device with some mount
20 >options. I think they are uid=<username>/gid=<groupname> but I'm not
21 >sure and unfortunatly not on my Linux box at the moment.
22
23 I've tried in fstab:
24 /dev/sdb1 /media/stick auto noauto,uid=1000,gid=100,umask=077 0 0
25
26 but I'm getting an error:
27 Error mounting system-managed device /dev/sdb1: Command-line `mount "/media/stick"' exited with non-zero exit status 32: mount: wrong fs type, bad option, bad
28 superblock on /dev/sdb1,
29
30 What am I missing?
31
32 --
33 Joseph

Replies

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