I’m folling this guide for adding a swap partition, so my laptop can hibernate.
My issue is, i cant initialize the swap partition with mkswap, the outputs say its mounted and unmounted at the same time, guess this is schrödingers swapspace.
This is the console output:
❯ lsblk
nvme0n1 259:0 0 953.9G 0 disk
├─nvme0n1p1 259:1 0 200M 0 part /boot/efi
├─nvme0n1p2 259:2 0 16M 0 part
├─nvme0n1p3 259:3 0 195.3G 0 part
├─nvme0n1p4 259:4 0 691.4G 0 part /
└─nvme0n1p5 259:5 0 66.9G 0 part [SWAP]
❯ sudo mkswap /dev/nvme0n1p5
mkswap: error: /dev/nvme0n1p5 is mounted; will not make swapspace
❯ sudo umount /dev/nvme0n1p5
umount: /dev/nvme0n1p5: not mounted.
❯ sudo blkid /dev/nvme0n1p5
/dev/nvme0n1p5: LABEL="/swap" UUID="" TYPE="swap" PARTLABEL="swap" PARTUUID=""
How do I continue to setup the swap partition so i can enable hibernation on my laptop?
Thanks in advance for any help!
Mod edit:- Topic title corrected spelling.