The officially official Devuan Forum!

You are not logged in.

#1 2023-03-29 10:40:15

debian06
Member
Registered: 2023-03-29
Posts: 2  

Grub problem after installing new Kernel

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

#2 2023-03-29 11:12:48

Marjorie
Member
From: Teignmouth, UK
Registered: 2019-06-09
Posts: 221  

Re: Grub problem after installing new Kernel

Is grub failing completely?
Usually you can successfully boot into the previous kernel from the grub menu.

Offline

#3 2023-03-29 11:52:15

debian06
Member
Registered: 2023-03-29
Posts: 2  

Re: Grub problem after installing new Kernel

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

#4 2023-03-29 15:40:00

rolfie
Member
Registered: 2017-11-25
Posts: 1,171  

Re: Grub problem after installing new Kernel

Offline

#5 2023-03-29 15:41:29

fsmithred
Administrator
Registered: 2016-11-25
Posts: 2,486  

Re: Grub problem after installing new Kernel

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

Board footer