Well, some new recognitions ...

It turns out that  those /dev/disk subdirectories don't necessarily have
all the disk devices represented:

1. by-id/
2.   by-partuuid/
3.   by-path/
4.   by-uuid/

On my computer, only by-id/ - the subdirectory that's not set up in time
- has  links to /dev/sda?. Furthermore, by-path/ has even fewer of my
drives represented in it.  I haven't a clue what's going on.  Since my
swap file is on /dev/sda1, there's no way I can put it into/etc/fstab
because I can't ensure the underlying filesystem is mounted in time.

Another enigma - although /etc/init.d/localmount says:

description="Mounts disks and swap according to /etc/fstab."

there's also /etc/init.d/swap, which calls swapon.

TODO: does mount -a mount swaps? ... I suspect not - the /description/
is apparently bogus.


On 2020-03-18 19:35, n952162 wrote:

Okay, after many hours of investigation and experimentation, I finally
figured this out.

For many years now, I have written my /etc/fstab using the
/dev/disk/by-id directory, because I think it's easier to keep track
of the names there - it's the only way to do it symbolically.

It's always struck me that nobody else does that and I've wondered
why...  now I know...

It turns out, that, now, on my computer, those names aren't set up
yet.  The "missing" devices caused the localmounts service to fail -
partially or fully, randomly - including for the swaps.

When I go through the nasty process of using blkid(8) and specifying
the *UUID=* device name in fstab, then the problem goes away.



On 2020-03-17 13:37, n952162 wrote:

There's new information on this, and new questions...

I discovered that not only are my swaps not mounted, but the other
filesystems listed in /etc/fstab aren't, either.

These are, apparently, mounted by the localmount RC service.

Its status is *started*.  But if I /restart/ it, then my fstab
filesystems get mounted.

Question: /etc/init.d/localhost says:

description="Mounts disks and swap according to /etc/fstab."

but I can't see where that script mounts swaps.  Is the description
obsolete?

Question 2: how can one see the output from the RC "e-trace"
statements (e.g. ebegin/eend)?

I don't find it in /var/log/*


On 2020-03-04 09:09, n952162 wrote:
Hi,

I have 3 swap devices and files.  At boot, it seems indeterminate
which ones get "mounted" (as swap areas).

Does anyone have an idea why they're not all mounted?

Here are the swap lines from my fstab:

#LABEL=swap        none        swap        sw        0 0

 /dev/disk/by-id/ata-TOSHIBA_DT01ACA300_xxxxxxxx-part1    none
swap    sw,pri=10    0 0

/swap    none    swap    sw,pri=5    0 0

/lcl/WDC_WD20EFRX-68EUZN0_WD-yyyyyyyyyy/1/swap        none swap   
sw,pri=1    0 0

Reply via email to