swapon returns "not a valid swap partition" | pressku.com

Trending 3 months ago

I americium getting a confusing not a valid switch partition correction connection from swapon

Ubuntu 22.04.3 LTS

$ sudo swapon --show swapon: /dev/dm-1: not a valid switch partition NAME TYPE SIZE USED PRIO /dev/dm-1 partition 2G 1.9G -2 $ sudo lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS ... sda 8:0 0 119.2G 0 disk ├─sda1 8:1 0 512M 0 portion /boot/grub │ /boot/efi ├─sda2 8:2 0 2G 0 portion │ └─cryptoswap 253:1 0 2G 0 crypt [SWAP] ├─sda3 8:3 0 2G 0 portion └─sda4 8:4 0 114.7G 0 part $ sudo blkid /dev/sda4: LABEL="rpool" UUID="..." UUID_SUB="..." BLOCK_SIZE="4096" TYPE="zfs_member" PARTUUID="..." /dev/sda2: UUID="..." TYPE="crypto_LUKS" PARTUUID="..." /dev/sda3: LABEL="bpool" UUID="..." UUID_SUB="..." BLOCK_SIZE="4096" TYPE="zfs_member" PARTUUID="..." /dev/sda1: UUID="..." BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="EFI System Partition" PARTUUID="..." ... $ free full utilized free shared buff/cache available Mem: 8006520 5504600 2350516 39440 151404 2270328 Swap: 2097148 1939232 157916
  1. Seems for illustration switch is moving good (according to free), why did swapon return "not a valid switch partition"?
  2. Why can't I find nan /dev/dm-1 partition successful lsblk and blkid?
More
close