Gentoo Archives: gentoo-user

From: Ian Zimmerman <itz@××××××××××××.org>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: swaps mounted randomly [not out of the woods yet]
Date: Wed, 18 Mar 2020 23:12:22
Message-Id: 20200318231209.4f4iv3ys7frr7qnw@matica
In Reply to: Re: [gentoo-user] swaps mounted randomly [not out of the woods yet] by n952162
1 On 2020-03-18 22:57, n952162 wrote:
2
3 > Well, some new recognitions ...
4 >
5 > It turns out that those /dev/disk subdirectories don't necessarily have
6 > all the disk devices represented:
7 >
8 > 1. by-id/
9 > 2. by-partuuid/
10 > 3. by-path/
11 > 4. by-uuid/
12
13 There is also by-label, which you can reference from fstab like
14
15 LABEL=foobar /home ext4 defaults ...
16
17 If predictability and readability is the goal, I think using labels is
18 the best option, because you have complete control over them, unlike the
19 device IDs. For example:
20
21 LABEL=my-machine-home-part /home ext4 defaults ...
22
23 This doesn't solve your underlying timing problem, of course. Just apropos.
24
25 --
26 Ian

Replies