1 |
Ian Zimmerman wrote: |
2 |
> On 2020-03-18 22:57, n952162 wrote: |
3 |
> |
4 |
>> Well, some new recognitions ... |
5 |
>> |
6 |
>> It turns out that those /dev/disk subdirectories don't necessarily have |
7 |
>> all the disk devices represented: |
8 |
>> |
9 |
>> 1. by-id/ |
10 |
>> 2. by-partuuid/ |
11 |
>> 3. by-path/ |
12 |
>> 4. by-uuid/ |
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 |
|
27 |
Since I use LABEL for most of mine. Here is some real world examples. |
28 |
|
29 |
|
30 |
LABEL=root / ext4 defaults 0 1 |
31 |
LABEL=boot /boot ext2 defaults 0 2 |
32 |
LABEL=usr /usr ext4 defaults 0 2 |
33 |
LABEL=var /var ext4 defaults 0 2 |
34 |
|
35 |
|
36 |
Those are a few from my fstab. I actually use those and it works. Hope |
37 |
that helps. |
38 |
|
39 |
BTW, can a label be changed without redoing the file system? I seem to |
40 |
recall that being done during the file system creation. |
41 |
|
42 |
Dale |
43 |
|
44 |
:-) :-) |