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.
signature.asc
Description: This is a digitally signed message part.