My grub isn't working well and I can't boot into my linux

I upgraded my windows 10 yesterday after which when I rebooted my PC it showed me grub rescue and I ran a series of command

ls 
ls (hd0,msdos40) 
set root=(hd0,msdos4) 
set prefix=(hd0,msdos4)/boor/grub 
insmod normal 
normal

After running this it brought out my grub menu and I selected my kali Linux partition but then it took me to an (initramfs) page where I noticed that my Linux partition was changed from /dev/sda3 to /devsda4 and no matter what I do, I can’t boot into my linux, just my windows partition and each time I reboot my PC it still takes me to that grub rescue page and I have to run those commands over again

Hi KingsleyOgu,

Welcome to our forums.

You could try booting in with a Live CD, and run the boot-repair utility from there.

1 Like

It didn’t work, my linux has moved from /dev/sda3 to /dev/sda4 how do I fix it?

Your previous post:

Shouldn’t be “prefix=(hd0,msdos4)/boot/grub”?