Notice: uuid changes are not always reflected until after a reboot...
1, determine your swap with
sudo fdisk -l
2, do mkswap on your swap partition - RECORD THE UUID WHICH THIS COMMAND OUTPUTS
sudo mkswap /dev/
3, now use this UUID to put into fstab and resume files...
$ sudo vim /etc/initramfs-tools/conf.d/resume
#Edit the RESUME line as below:
RESUME=UUID="the-swap-partition-uuid-from-vol_ID"
4,
update-initramfs -u
5, reboot normally after this finishes
sudo swapon -s
ls -la /dev/disk/by-uuid/
DONT change any symlinks etc. just try these instructions
没有评论:
发表评论