1 |
Well, some new recognitions ... |
2 |
|
3 |
It turns out that those /dev/disk subdirectories don't necessarily have |
4 |
all the disk devices represented: |
5 |
|
6 |
1. by-id/ |
7 |
2. by-partuuid/ |
8 |
3. by-path/ |
9 |
4. by-uuid/ |
10 |
|
11 |
On my computer, only by-id/ - the subdirectory that's not set up in time |
12 |
- has links to /dev/sda?. Furthermore, by-path/ has even fewer of my |
13 |
drives represented in it. I haven't a clue what's going on. Since my |
14 |
swap file is on /dev/sda1, there's no way I can put it into/etc/fstab |
15 |
because I can't ensure the underlying filesystem is mounted in time. |
16 |
|
17 |
Another enigma - although /etc/init.d/localmount says: |
18 |
|
19 |
description="Mounts disks and swap according to /etc/fstab." |
20 |
|
21 |
there's also /etc/init.d/swap, which calls swapon. |
22 |
|
23 |
TODO: does mount -a mount swaps? ... I suspect not - the /description/ |
24 |
is apparently bogus. |
25 |
|
26 |
|
27 |
On 2020-03-18 19:35, n952162 wrote: |
28 |
> |
29 |
> Okay, after many hours of investigation and experimentation, I finally |
30 |
> figured this out. |
31 |
> |
32 |
> For many years now, I have written my /etc/fstab using the |
33 |
> /dev/disk/by-id directory, because I think it's easier to keep track |
34 |
> of the names there - it's the only way to do it symbolically. |
35 |
> |
36 |
> It's always struck me that nobody else does that and I've wondered |
37 |
> why... now I know... |
38 |
> |
39 |
> It turns out, that, now, on my computer, those names aren't set up |
40 |
> yet. The "missing" devices caused the localmounts service to fail - |
41 |
> partially or fully, randomly - including for the swaps. |
42 |
> |
43 |
> When I go through the nasty process of using blkid(8) and specifying |
44 |
> the *UUID=* device name in fstab, then the problem goes away. |
45 |
> |
46 |
> |
47 |
> |
48 |
> On 2020-03-17 13:37, n952162 wrote: |
49 |
>> |
50 |
>> There's new information on this, and new questions... |
51 |
>> |
52 |
>> I discovered that not only are my swaps not mounted, but the other |
53 |
>> filesystems listed in /etc/fstab aren't, either. |
54 |
>> |
55 |
>> These are, apparently, mounted by the localmount RC service. |
56 |
>> |
57 |
>> Its status is *started*. But if I /restart/ it, then my fstab |
58 |
>> filesystems get mounted. |
59 |
>> |
60 |
>> Question: /etc/init.d/localhost says: |
61 |
>> |
62 |
>> description="Mounts disks and swap according to /etc/fstab." |
63 |
>> |
64 |
>> but I can't see where that script mounts swaps. Is the description |
65 |
>> obsolete? |
66 |
>> |
67 |
>> Question 2: how can one see the output from the RC "e-trace" |
68 |
>> statements (e.g. ebegin/eend)? |
69 |
>> |
70 |
>> I don't find it in /var/log/* |
71 |
>> |
72 |
>> |
73 |
>> On 2020-03-04 09:09, n952162 wrote: |
74 |
>>> Hi, |
75 |
>>> |
76 |
>>> I have 3 swap devices and files. At boot, it seems indeterminate |
77 |
>>> which ones get "mounted" (as swap areas). |
78 |
>>> |
79 |
>>> Does anyone have an idea why they're not all mounted? |
80 |
>>> |
81 |
>>> Here are the swap lines from my fstab: |
82 |
>>> |
83 |
>>> #LABEL=swap none swap sw 0 0 |
84 |
>>> |
85 |
>>> /dev/disk/by-id/ata-TOSHIBA_DT01ACA300_xxxxxxxx-part1 none |
86 |
>>> swap sw,pri=10 0 0 |
87 |
>>> |
88 |
>>> /swap none swap sw,pri=5 0 0 |
89 |
>>> |
90 |
>>> /lcl/WDC_WD20EFRX-68EUZN0_WD-yyyyyyyyyy/1/swap none swap |
91 |
>>> sw,pri=1 0 0 |
92 |
>>> |