How to add a swap drive to your system

How to add a swap drive to your system, in this case I did this for a virtual machine (qemu) running Arch Linux. See at the bottom for information about the virtual drive for qemu. List current available to system disks: sudo blkid List all disks: sudo lsblk Format as swap: sudo mkswap /dev/vdb gives back the UUID Now the new swap disk will be shown when executing this again: sudo blkid (also give the UUID) ...

2. Oktober 2019 · 1 Minute · utzer