As part of the procedure of converting the root filesystem of my computer to btrfs, I chrooted into it and reinstalled grub. Followed this guide: GRUB/Restore the GRUB Bootloader - Manjaro .
I also removed and installed some kernels, using pacman
(mhwd-kernel
didn’t work in chroot), and did mkinitcpio -P
and grub-mkconfig
.
Removed two dkms modules that were causing issues, anbox-ashmem and anbox-binder.
More info about how I got in this situation in my previous forum post.
Now, booted into the actual system, new kernel images are installed into /boot
, but grub only shows the kernel images located in /boot/efi/
.
I am unable to boot from any kernel images apart from the ones located in /boot/efi/
What should I do to restore regular system functions, i.e. boot from the newest installed kernel?
test -d /sys/firmware/efi && echo efi || echo bios
efi
cat /etc/default/grub
GRUB_DEFAULT=0
GRUB_TIMEOUT=1
GRUB_TIMEOUT_STYLE=hidden
GRUB_DISTRIBUTOR=“Manjaro”
GRUB_CMDLINE_LINUX_DEFAULT=“quiet splash loglevel=3 sysrq_always_enabled=1 udev.log_priority=3”
GRUB_CMDLINE_LINUX=""
If you want to enable the save default function, uncomment the following
line, and set GRUB_DEFAULT to saved.
#GRUB_SAVEDEFAULT=true
Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES=“part_gpt part_msdos”
Uncomment to enable booting from LUKS encrypted devices
#GRUB_ENABLE_CRYPTODISK=y
Uncomment to use basic console
GRUB_TERMINAL_INPUT=console
Uncomment to disable graphical terminal
#GRUB_TERMINAL_OUTPUT=console
The resolution used on graphical terminal
note that you can use only modes which your graphic card supports via VBE
you can see them in real GRUB with the command ‘videoinfo’
GRUB_GFXMODE=auto
Uncomment to allow the kernel use the same resolution used by grub
GRUB_GFXPAYLOAD_LINUX=keep
Uncomment if you want GRUB to pass to the Linux kernel the old parameter
format “root=/dev/xxx” instead of “root=/dev/disk/by-uuid/xxx”
#GRUB_DISABLE_LINUX_UUID=true
Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY=true
Uncomment this option to enable os-prober execution in the grub-mkconfig command
GRUB_DISABLE_OS_PROBER=false
Uncomment and set to the desired menu colors. Used by normal and wallpaper
modes only. Entries specified as foreground/background.
GRUB_COLOR_NORMAL=“light-gray/black”
GRUB_COLOR_HIGHLIGHT=“green/black”
Uncomment one of them for the gfx desired, a image background or a gfxtheme
#GRUB_BACKGROUND="/usr/share/grub/background.png"
GRUB_THEME="/usr/share/grub/themes/manjaro/theme.txt"
Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE=“480 440 1”
Uncomment to ensure that the root filesystem is mounted read-only so that
systemd-fsck can run the check automatically. We use ‘fsck’ by default, which
needs ‘rw’ as boot parameter, to avoid delay in boot-time. ‘fsck’ needs to be
removed from ‘mkinitcpio.conf’ to make ‘systemd-fsck’ work.
See also Arch-Wiki: fsck - ArchWiki
#GRUB_ROOT_FS_RO=true
inxi -Fazy
System:
Kernel: 5.10.70-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0
parameters: BOOT_IMAGE=/vmlinuz-5.10-x86_64
root=UUID=ea10f93b-0ef1-4889-80e9-b0ca11f6999f rw rootflags=subvol=root
quiet splash loglevel=3 sysrq_always_enabled=1 udev.log_priority=3
Desktop: KDE Plasma 5.22.5 tk: Qt 5.15.2 wm: kwin_x11 vt: 1 dm: SDDM
Distro: Manjaro Linux base: Arch Linux
Machine:
Type: Laptop System: Notebook product: P95xER v: N/A serial: N/A
Chassis: No Enclosure type: 10 serial: N/A
Mobo: Notebook model: P95xER serial: N/A UEFI: American Megatrends
v: 1.07.15 date: 11/16/2018
Battery:
ID-1: BAT0 charge: 45.4 Wh (89.4%) condition: 50.8/53.2 Wh (95.4%)
volts: 16.6 min: 15.2 model: Notebook BAT type: Li-ion serial:
status: Unknown
CPU:
Info: 6-Core model: Intel Core i7-8750H socket: BGA1440 (U3E1) note: check
bits: 64 type: MT MCP arch: Kaby Lake note: check family: 6
model-id: 9E (158) stepping: A (10) microcode: 9A cache: L1: 384 KiB
L2: 9 MiB L3: 9 MiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
bogomips: 52815
Speed: 800 MHz min/max: 800/4100 MHz base/boost: 2079/8300 volts: 0.8 V
ext-clock: 100 MHz Core speeds (MHz): 1: 800 2: 800 3: 800 4: 800 5: 800
6: 800 7: 800 8: 800 9: 800 10: 800 11: 800 12: 800
Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled
Type: l1tf
mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable
Type: mds
status: Vulnerable: Clear CPU buffers attempted, no microcode; SMT vulnerable
Type: meltdown mitigation: PTI
Type: spec_store_bypass
mitigation: Speculative Store Bypass disabled via prctl and seccomp
Type: spectre_v1
mitigation: usercopy/swapgs barriers and __user pointer sanitization
Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional,
IBRS_FW, STIBP: conditional, RSB filling
Type: srbds status: Vulnerable: No microcode
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: Intel CoffeeLake-H GT2 [UHD Graphics 630] vendor: CLEVO/KAPOK
driver: i915 v: kernel bus-ID: 00:02.0 chip-ID: 8086:3e9b class-ID: 0300
Device-2: NVIDIA GP104M [GeForce GTX 1070 Mobile] vendor: CLEVO/KAPOK
driver: nouveau v: kernel bus-ID: 01:00.0 chip-ID: 10de:1ba1 class-ID: 0300
Device-3: Chicony Chicony USB 2.0 Camera type: USB driver: uvcvideo
bus-ID: 1-8:3 chip-ID: 04f2:b5a7 class-ID: 0e02
Display: x11 server: X.Org 1.20.13 compositor: kwin_x11 driver:
loaded: modesetting display-ID: :0 screens: 1
Screen-1: 0 s-res: 2560x1440 s-dpi: 96 s-size: 676x380mm (26.6x15.0")
s-diag: 775mm (30.5")
Monitor-1: eDP-1 res: 2560x1440 hz: 60 dpi: 188 size: 345x194mm (13.6x7.6")
diag: 396mm (15.6")
OpenGL: renderer: Mesa Intel UHD Graphics 630 (CFL GT2) v: 4.6 Mesa 21.2.3
direct render: Yes
Audio:
Device-1: Intel Cannon Lake PCH cAVS vendor: CLEVO/KAPOK
driver: snd_hda_intel v: kernel alternate: snd_soc_skl,snd_sof_pci
bus-ID: 00:1f.3 chip-ID: 8086:a348 class-ID: 0403
Device-2: NVIDIA GP104 High Definition Audio driver: snd_hda_intel v: kernel
bus-ID: 01:00.1 chip-ID: 10de:10f0 class-ID: 0403
Sound Server-1: ALSA v: k5.10.70-1-MANJARO running: yes
Sound Server-2: sndio v: N/A running: no
Sound Server-3: JACK v: 1.9.19 running: no
Sound Server-4: PulseAudio v: 15.0 running: no
Sound Server-5: PipeWire v: 0.3.38 running: no
Network:
Device-1: Intel Wireless-AC 9260 vendor: Rivet Networks driver: iwlwifi
v: kernel port: 4000 bus-ID: 03:00.0 chip-ID: 8086:2526 class-ID: 0280
IF: wlp3s0 state: up mac:
Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: CLEVO/KAPOK driver: r8169 v: kernel port: 3000 bus-ID: 04:00.0
chip-ID: 10ec:8168 class-ID: 0200
IF: enp4s0 state: down mac:
Bluetooth:
Device-1: Intel Wireless-AC 9260 Bluetooth Adapter type: USB driver: btusb
v: 0.8 bus-ID: 1-14:5 chip-ID: 8087:0025 class-ID: e001
Report: rfkill ID: hci0 rfk-id: 1 state: down bt-service: enabled,running
rfk-block: hardware: no software: yes address: see --recommends
Drives:
Local Storage: total: 2.05 TiB used: 260.45 GiB (12.4%)
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung model: SSD 960 EVO 250GB
size: 232.89 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
lanes: 4 type: SSD serial: rev: 3B7QCXE7 temp: 36.9 C scheme: GPT
SMART: yes health: PASSED on: 169d 19h cycles: 2,095
read-units: 22,961,369 [11.7 TB] written-units: 32,327,264 [16.5 TB]
ID-2: /dev/sda maj-min: 8:0 vendor: Seagate model: ST2000LX001-1RG174
family: FireCuda 2.5 size: 1.82 TiB block-size: physical: 4096 B
logical: 512 B sata: 3.1 speed: 6.0 Gb/s type: HDD rpm: 5400
serial: rev: SDM1 temp: 37 C
SMART: yes state: enabled health: PASSED on: 275d 5h cycles: 2094
read: 27.35 TiB written: 7.67 TiB Pre-Fail: reallocated sector: 100
threshold: 36 attribute: Spin_Retry_Count value: 100 worst: 100
threshold: 97
Partition:
ID-1: / raw-size: 232.59 GiB size: 232.59 GiB (100.00%)
used: 87.77 GiB (37.7%) fs: btrfs block-size: 4096 B dev: /dev/nvme0n1p2
maj-min: 259:2
ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
used: 63.4 MiB (21.2%) fs: vfat block-size: 512 B dev: /dev/nvme0n1p1
maj-min: 259:1
ID-3: /home raw-size: 1.82 TiB size: 1.82 TiB (100.00%)
used: 172.62 GiB (9.3%) fs: btrfs block-size: 4096 B dev: /dev/sda
maj-min: 8:0
Swap:
Alert: No swap data was found.
Sensors:
System Temperatures: cpu: 57.0 C mobo: N/A gpu: nouveau temp: 40.0 C
Fan Speeds (RPM): N/A
Info:
Processes: 331 Uptime: 3h 25m wakeups: 2 Memory: 31.21 GiB
used: 3.63 GiB (11.6%) Init: systemd v: 249 tool: systemctl Compilers:
gcc: 11.1.0 alt: 10 clang: 12.0.1 Packages: 1873 pacman: 1863 lib: 453
flatpak: 10 Shell: Bash (su) v: 5.1.8 running-in: yakuake inxi: 3.3.06
efibootmgr -v
BootCurrent: 0001
Timeout: 1 seconds
BootOrder: 0001,0006,0000
Boot0000* Windows Boot Manager VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)WINDOWS…x…B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}…u…
Boot0001* manjaro HD(1,GPT,dd2eae74-f0b5-a041-a448-763d2bcf8fa8,0x1000,0x96000)/File(\EFI\manjaro\grubx64.efi)
Boot0006* UEFI OS HD(1,GPT,dd2eae74-f0b5-a041-a448-763d2bcf8fa8,0x1000,0x96000)/File(\EFI\BOOT\BOOTX64.EFI)…BO