Trying to hibernate failed because the swap is too small. Debian wiki pages do in my view not clearly explain how to fix this. 2 3
gpartedallows to manage the partitions. But it does not allow to decrease the size of the boot, esp partition. This means the swap partition size cannot be increased. The partition would need to be unmounted, which worries me a bit.rootuser.com guides one to boot from another medium than HD such as USB to be able to configure the partitions. A blog refers to this procedure stating "Doing so is quite easy." But is it? I see others have failed to ultimately increase swap size.
others have described How to configure swap space after system installation?
$ sudo fdisk -l /dev/nvme0n1
Disk /dev/nvme0n1: 476.94 GiB, 512110190592 bytes, 1000215216 sectors
Disk model: SAMSUNG MZVLB512HAJQ-000L7
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: AC1BEA07-5209-41FE-AF1A-79C3D68B3FE4
Device Start End Sectors Size Type
/dev/nvme0n1p1 2048 1050623 1048576 512M EFI System
/dev/nvme0n1p2 1050624 998215679 997165056 475.5G Linux filesystem
/dev/nvme0n1p3 998215680 1000214527 1998848 976M Linux swap
$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 7.7G 0 7.7G 0% /dev
tmpfs 1.6G 2.0M 1.6G 1% /run
/dev/nvme0n1p2 467G 95G 349G 22% /
tmpfs 7.7G 13M 7.7G 1% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
/dev/nvme0n1p1 511M 23M 489M 5% /boot/efi
tmpfs 1.6G 216K 1.6G 1% /run/user/1000
$ mount # edited
/dev/nvme0n1p2 on / type ext4 (rw,relatime,errors=remount-ro)
/dev/nvme0n1p1 on /boot/efi type vfat (rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro)