uname -r
6.8.0-111-generic
sudo grep -E "submenu |menuentry " /boot/grub/grub.cfg | cut -d "'" -f2
[sudo] password for mike:
Ubuntu
Advanced options for Ubuntu
Ubuntu, with Linux 6.8.0-111-generic
Ubuntu, with Linux 6.8.0-111-generic (recovery mode)
Ubuntu, with Linux 6.8.0-110-generic
Ubuntu, with Linux 6.8.0-110-generic (recovery mode)
memtest86+
Memory test (memtest86+x64.efi, serial console)
UEFI Firmware Settings
grubを更新する。
1
sudoedit /etc/default/grub
grubのdiffは以下。
1
2
-GRUB_DEFAULT=0
+GRUB_DEFAULT="Advanced options for Ubuntu>Ubuntu, with Linux 6.8.0-110-generic"
更新して再起動
1
2
sudo update-grub
sudo reboot
再起動後にチェック
1
2
uname -r
6.8.0-110-generic
autoremove対策
linuxカーネルがautoremoveされないように、autoからmarkにする。
1
2
3
4
5
6
7
8
9
10
11
sudo apt-mark manual \
linux-image-6.8.0-110-generic \
linux-modules-6.8.0-110-generic \
linux-modules-extra-6.8.0-110-generic \
linux-headers-6.8.0-110 \
linux-headers-6.8.0-110-generic
linux-image-6.8.0-110-generic set to manually installed.
linux-modules-6.8.0-110-generic set to manually installed.
linux-modules-extra-6.8.0-110-generic set to manually installed.
linux-headers-6.8.0-110 set to manually installed.
linux-headers-6.8.0-110-generic set to manually installed.