Gentoo Archives: gentoo-user

From: Neil Bothwick <neil@××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] USB permission/owner - change not allowed as root
Date: Wed, 01 Jan 2014 08:19:50
Message-Id: 20140101081935.27311f05@digimed.co.uk
In Reply to: Re: [gentoo-user] USB permission/owner - change not allowed as root by Joseph
1 On Tue, 31 Dec 2013 19:14:36 -0700, Joseph wrote:
2
3 > If I remove the mounting line from fstab they mount with correct
4 > permission "joseph:users" but the mount point is reference as UUID and
5 > it makes it hard to reference it in bash scripts.
6
7 MOUNTPOINT=$(mount | awk '/^\/dev\/sdb1/ {print $3}')
8
9 Then you can let the automounter take care of everything for you. If you
10 use /etc/fstab, the device is mounted as root, but because you have a
11 mixture of filesystems you can specify the correct options for one
12 without breaking another. It is far simpler to let the automounter take
13 care of all of this and just handle the movable mount point.
14
15 There is probably a udisks option that sets the mount point to the device
16 name rather than the volume name or UUID, good luck finding it :)
17
18
19 --
20 Neil Bothwick
21
22 Exercise daily. Eat wisely. Die anyway.

Attachments

File name MIME type
signature.asc application/pgp-signature