Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

bootubuntuafterrestore [2021/03/27 15:19] – created homerbootubuntuafterrestore [2021/07/18 18:08] (aktuell) – [Make Ubuntu Boot Again!] homer
Zeile 65: Zeile 65:
  
 (compare: https://ubuntuforums.org/showthread.php?t=2401012&p=13800549#post13800549) (compare: https://ubuntuforums.org/showthread.php?t=2401012&p=13800549#post13800549)
 +
 +As I realized after a while that my setup didn't make use of the 5G big swap partition at /dev/mapper/ubuntu--vg-swap_1 but used a rather smaller swap (< 1G!) I had to do some research again. I had to
 +
 +</markdown><cli>
 +sudo swapoff /dev/mapper/ubuntu--vg-swap_1
 +sudo mkswap /dev/mapper/ubuntu--vg-swap_1 $((1024*5000))
 +sudo swapon /dev/mapper/ubuntu--vg-swap_1
 +</cli><markdown>
 +and `htop` as like as `swapon -s` showed me that now the far bigger 5G partition was used as swap.
 +To get that persistent even after an update of the kernel I had also to
 +
 +</markdown><cli>
 +lsblk -o NAME,UUID ## to get the correct UUID of the swap partition
 +sudo <your editor> /etc/initramfs-tools/conf.d/resume # to exchange an old UUID that prevented initramfs from working properly to the new one
 +sudo update-initramfs -k all -u # to update all the kernel variants that could be booted from grub
 +sudo update-grup ## to update grub :-)
 +</cli><markdown>
 +And important thread that helped was https://www.linuxquestions.org/questions/ubuntu-63/ubuntu-19-04-19-10-problem-with-encrypted-swap-partition-4175673274/.
 +
  
 </markdown> </markdown>
 +n>