You are not logged in.
Devuan machine gets un-bootable after installing new kernel with upgrade.
I get error at boot
"error: symbol grub_disk_native_sectors not found"
I could solve the problem with live CD and grub-install command.
Guide here:
https://phoenixnap.com/kb/grub-rescue
boot-repair software was not available in Devuan repos.
What is the cause of this problem?
Last edited by debian06 (2023-03-29 10:43:33)
Offline
Is grub failing completely?
Usually you can successfully boot into the previous kernel from the grub menu.
Offline
Grub menu did not appear at all.
I got only this message:
error: symbol grub_disk_native_sectors not found
And grub prompt:
grub>
I failed to set root partition to any of the 3 partitions.
set root=(hd3,ext2)
Funny thing is that grub identified ext4 partition as ext2
it is where my /boot folder is located.
I think "apt upgrade" kernel spoils grub configuration.
Offline
Offline
Run these commands at the grub prompt. Adjust the device names if I guessed wrong. Use tab-completion to get the version strings on kernel and initrd. Last command is 'boot' and press ENTER (or maybe ctrl-x).
set root=(hd3,msdos1) # assuming the /boot partition is sdc1
linux /vmlinuz-<version> ro root=/dev/sdc2 # assuming the root partition is sdc2
initrd /initrd.img-<version>
boot
After you boot into the system, get a root terminal and run update-grub That should create a new boot menu.
Offline