Recently I used live ubuntu using pendrive and gparted to merge two partitions of my laptop. (My laptop is dual booted windows 10+ubuntu 18.04). After merging the partitions every time I open my laptop it shows the message
Error: No such partition.
Entering rescue mood...
grub rescue>
I can open my laptop using the following commands
grub rescue> prefix=(hd0,msdos6)/boot/grub
grub rescue> insmod normal
grub rescue> normal
How can I solve the problem permanently,so that I do not need to write the commands every time.
grub-install
, refer this ANSWER – Abhi Aug 01 '21 at 06:21