$ swapon -s
Filename Type Size Used Priority
/dev/dm-2 partition 16777212 0 -2
texas:~$ sudo lvdisplay
[sudo] password for tim:
--- Logical volume ---
LV Path /dev/ubuntu-vg/root
LV Name root
VG Name ubuntu-vg
LV UUID vEByY0-UUvE-OgLU-caQo-gku0-yt05-9l70KP
LV Write Access read/write
LV Creation host, time ubuntu, 2018-07-07 15:08:49 +0100
LV Status available
# open 1
LV Size 420.00 GiB
Current LE 107520
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:1
--- Logical volume ---
LV Path /dev/ubuntu-vg/swap_1
LV Name swap_1
VG Name ubuntu-vg
LV UUID L3AKIc-rK4X-uy4l-jFuM-C1fc-TrNt-yodzsL
LV Write Access read/write
LV Creation host, time ubuntu, 2018-07-07 15:08:49 +0100
LV Status available
# open 2
LV Size 16.00 GiB
Current LE 4096
Segments 2
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:2
Edit /etc/initramfs-tools/conf.d/resume
:
RESUME=/dev/mapper/ubuntu--vg-swap_1
Edit /etc/default/grub
:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=/dev/mapper/ubuntu--vg-swap_1"
sudo update-initramfs -u -k all
sudo update-grub
Anyone know if this works on Ubuntu 22.04? Also, I'm new to Linux, can anyone translate some of the commands up top, ie. can you go through what needs to be done in the steps above to set up my machine to do this?