Community!

Every time I restart my PC, I get in the grub rescue> prompt, just because before that I accidentally deleted a volume with my linux distro, including grub(my PC is dual-bootable). Using some external tools, I restored the partition, and its number changed from 6 to 4.

The problem is that every time I boot my PC, I need manually run such commands as

set prefix=(hd0,4)/boot/grub set root=(hd0,4) 

because as I said, previous number of partition was 4 instead of 6, and PC do not save this information.

1 Answer

Try to update grub configuration.

On Ubuntu or similar: update-grub

On Fedora or similar: grub2-mkconfig -o /boot/grub2/grub.cfg

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy