Ich habe in der fstab swap auskommentiert. Systemd macht genau das wie ihr beschrieben habt, es scheint swap trotzdem einzubinden:
Code: Alles auswählen
# systemctl status /dev/sdb1
● dev-sdb1.device - WDC_WD5000HHTZ-04N21V0 1
Follow: unit currently follows state of sys-devices-pci0000:00-0000:00:11.0-ata2-host1-target1:0:0-1:0:0:0-block-sdb-sdb1.device
Loaded: loaded
Active: active (plugged) since Mon 2018-02-19 13:28:38 CET; 1h 3min ago
Device: /sys/devices/pci0000:00/0000:00:11.0/ata2/host1/target1:0:0/1:0:0:0/block/sdb/sdb1
Code: Alles auswählen
root@sparkykde:/home/hans# journalctl -b |grep swap
Feb 19 13:28:38 sparkykde kernel: zswap: loaded using pool lzo/zbud
aber - nur die relevanten Teile der Ausgabe:
Code: Alles auswählen
# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sdb 8:16 0 465,8G 0 disk
├─sdb1 8:17 0 5,9G 0 part
├─sdb2 8:18 0 40G 0 part
└─sdb3 8:19 0 419,9G 0 part /media/cinnamonhome
Code: Alles auswählen
cat /proc/swaps
Hingegen:
Code: Alles auswählen
# blkid
/dev/sdb1: UUID="aa201965-5dcb-4abb-8283-c9bcd378aa1e" TYPE="swap" PARTUUID="207d6282-01"
in mount ist auch nichts zu finden: 40161
Wie erklärt sich das ?
nach der Ubuntu Manpage
Eine Datei mit einem Dateinamen *dev-sdb1.swap* hab ich nicht gefundenSwap units must be named after the devices or files they control.
Example: the swap device /dev/sda5 must be configured in a unit file
dev-sda5.swap. For details about the escaping logic used to convert a
file system path to a unit name, see systemd.unit(5).