At the grub prompt type in
you should get an output like (hd0) (hd0,msdos1) or (hd1) (hd1,msdos1)
now we need to find the boot directory
run ls [partiton name] so if ls does indeed show (hd0,msdos1) that would be
an example output should be - lost+found var/ dev/ run/ etc/ tmp/ sys/ proc/ usr/ boot/ home/ lib lib64 and so on what we are looking for is boot/
if it is there we now need to set the boot partition as the value of the root variable
now we need to load the normal boot mode
now start the normal boot mode
now we can load the kernel
Code:
linux /boot/vmlinuz-yourkernelversion root=/dev/sda1 ro
example - linux /boot/vmlinuz-6.1.0-18-amd64 root=/dev/sda1 ro
issue the boot command
and hopefully your system boots