ls
ls (hd0,msdos1)
set root=(hd0,msdos1)
insmod normal
normal
linux /boot/vmlinuz-yourkernelversion root=/dev/sda1 ro
boot
I allready try this and after insmod normal command I get unknow system file eror.At the grub prompt type inCode:ls
you should get an output like (hd0) (hd0,msdos1)
now we need to find the boot directory
run ls {partition name] so if ls does indeed show (hd0,msdos1) that would bean 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/Code:ls (hd0,msdos1)
if it is there we now need to set the boot partition as the value of the root variable
Code:set root=(hd0,msdos1)
now we need to load the normal boot mode
Code:insmod normal
now start the normal boot mode
Code:normal
now we can load the kernel
Code:linux /boot/vmlinuz-yourkernelversion root=/dev/sda1 ro
example - linux /boot/vmlinuz-5.13.0-40-generic root=/dev/sda1 ro
issue the boot command
Code:boot
and hopefully your system boots
I allready try this and after insmod normal command I get unknow system file eror.
At the grub prompt type inCode:ls
you should get an output like (hd0) (hd0,msdos1)
now we need to find the boot directory
run ls {partition name] so if ls does indeed show (hd0,msdos1) that would bean 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/Code:ls (hd0,msdos1)
if it is there we now need to set the boot partition as the value of the root variable
Code:set root=(hd0,msdos1)
now we need to load the normal boot mode
Code:insmod normal
now start the normal boot mode
Code:normal
now we can load the kernel
Code:linux /boot/vmlinuz-yourkernelversion root=/dev/sda1 ro
example - linux /boot/vmlinuz-5.13.0-40-generic root=/dev/sda1 ro
issue the boot command
Code:boot
and hopefully your system boots
set root=(hd0,1)
set prefix=(hd0,1)/boot/grub
insmod normal
normal
boot
sudo update-grub
Thanks its solved my problem.I am assuming you do not have Windows on this machine?
press EnterCode:set root=(hd0,1)
press EnterCode:set prefix=(hd0,1)/boot/grub
press EnterCode:insmod normal
press EnterCode:normal
once it boots then runCode:boot
Code:sudo update-grub