Gentoo Archives: gentoo-user

From: n952162 <n952162@×××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] swaps mounted randomly [RESOLVED]
Date: Wed, 18 Mar 2020 18:40:30
Message-Id: 713e3f2d-0e8f-b649-a76d-d272eccf5122@web.de
In Reply to: Re: [gentoo-user] swaps mounted randomly by n952162
1 Okay, after many hours of investigation and experimentation, I finally
2 figured this out.
3
4 For many years now, I have written my /etc/fstab using the
5 /dev/disk/by-id directory, because I think it's easier to keep track of
6 the names there - it's the only way to do it symbolically.
7
8 It's always struck me that nobody else does that and I've wondered
9 why...  now I know...
10
11 It turns out, that, now, on my computer, those names aren't set up yet. 
12 The "missing" devices caused the localmounts service to fail - partially
13 or fully, randomly - including for the swaps.
14
15 When I go through the nasty process of using blkid(8) and specifying the
16 *UUID=* device name in fstab, then the problem goes away.
17
18
19
20 On 2020-03-17 13:37, n952162 wrote:
21 >
22 > There's new information on this, and new questions...
23 >
24 > I discovered that not only are my swaps not mounted, but the other
25 > filesystems listed in /etc/fstab aren't, either.
26 >
27 > These are, apparently, mounted by the localmount RC service.
28 >
29 > Its status is *started*.  But if I /restart/ it, then my fstab
30 > filesystems get mounted.
31 >
32 > Question: /etc/init.d/localhost says:
33 >
34 > description="Mounts disks and swap according to /etc/fstab."
35 >
36 > but I can't see where that script mounts swaps.  Is the description
37 > obsolete?
38 >
39 > Question 2: how can one see the output from the RC "e-trace"
40 > statements (e.g. ebegin/eend)?
41 >
42 > I don't find it in /var/log/*
43 >
44 >
45 > On 2020-03-04 09:09, n952162 wrote:
46 >> Hi,
47 >>
48 >> I have 3 swap devices and files.  At boot, it seems indeterminate
49 >> which ones get "mounted" (as swap areas).
50 >>
51 >> Does anyone have an idea why they're not all mounted?
52 >>
53 >> Here are the swap lines from my fstab:
54 >>
55 >> #LABEL=swap        none        swap        sw        0 0
56 >>
57 >>  /dev/disk/by-id/ata-TOSHIBA_DT01ACA300_xxxxxxxx-part1    none
58 >> swap    sw,pri=10    0 0
59 >>
60 >> /swap    none    swap    sw,pri=5    0 0
61 >>
62 >> /lcl/WDC_WD20EFRX-68EUZN0_WD-yyyyyyyyyy/1/swap        none swap   
63 >> sw,pri=1    0 0
64 >>

Replies