On Wednesday, 4 March 2020 09:24:31 GMT n952162 wrote: > On 2020-03-04 10:10, Michael wrote: > > On Wednesday, 4 March 2020 08:09:45 GMT 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 > > > > The second entry is missing the device you intend to mount. > > > > When you list the first and third devices do you see anything wrong with > > them? > > > > When you try to enable them manually with 'swapon -v' what do you get? > > > > PS. If any of these swap block devices are actually files within a fs make > > sure you first fill them up with dd, because files with holes in them > > could > > fail to be enabled. Also some fs (btrfs?) are not good candidates for > > having swap files on them, if they move data around with cow. > > The second and third entries are files, created with dd(1), from > /dev/zeros, as shown on the mkswap(8) man page. No word in > /var/log/messages for non-mounted swaps.
I assume you have run something like this: dd if=/dev/zero of=/swap bs=4096 count=xxxxxxxx mkswap -c -f -L moreswap /swap swapon -v -o pri=5 /swap When you run 'swapon -v /swap' does it enable it? Is dmesg happy?
signature.asc
Description: This is a digitally signed message part.

