dzhou
October 16, 2020, 2:24pm
1
Hi Robert,
I created a swap disk by:
sudo dd if=/dev/zero of=/swap bs=1024k count=1000
fallocate -l 256m /swap
chmod 0600 /swap
mkswap /swap
Setting up swapspace version 1, size = 256 MiB (268431360 bytes)
no label, UUID=9a7d1303-3562-4f25-b4e9-201645133850
swapon /swap
also added into etc/fstab
/swap none swap sw 0 0
But blkid tool doesn’t list the swap disk ID.
I am trying to setup the swap disk for hibernate and resume.
Thank you,
David
blkid only shows block device, if you want swap disk id to show up, carve up the partition and create a new dedicated partition for the swap.
voodoo@nuc-git:~$ sudo blkid
/dev/sdc1: UUID="beda4ce0-b7dd-4659-9d94-19ca623107b8" TYPE="ext4" PARTUUID="fb478bf9-01"
/dev/sdb1: LABEL="apt_cache" UUID="676cb796-5261-408e-befe-29a25ae2c990" TYPE="ext4" PARTUUID="b581f7d0-01"
/dev/sda1: LABEL="webdata" UUID="78f7a9f1-4e59-4591-9511-60eb406522fb" TYPE="ext4" PARTUUID="0a9c2a64-01"
/dev/sdd1: UUID="c689b0bf-4d17-4c56-a65b-4f9a9503e793" TYPE="swap" PARTUUID="e8247138-01"
voodoo@nuc-git:~$
Regards,