0

My grub is broken and my PC is booting into the grub command line. I managed to get the PC to reboot with the following commands:

set prefix=(hd0,2)
set root=(hd0)
insmod linux
insmod normal
normal

My PC reboots normally after I issue the command, however when I reboot my PC returns to the grub command line.

Where is my issue. I cannot fix grub from the bash command line because I lost my password. How do I fix grub and recover my lost password from this point?

Bash prompt

Hendré
  • 779

1 Answers1

1

I would put this as a comment but don't have the reputation to do so, so I'll leave an answer instead. If you are able to edit GRUB entries, you could always try entering into single-user mode upon booting up. This will put you inside of a root shell where you can run passwd <your user name> and change your password to something new without needing to remember your old one.

christopolise
  • 78
  • 1
  • 8