Score:0

How do I restore the Grub menu?

cn flag

I lost my password and booted into the command line from the Grub menu. Now my PC does not want to boot into Ubuntu. Every time I reboot, I end up at the Grub command line. Is there any way to restore the Grub menu? I can boot into Ubuntu using Grub command line commands.

Score:1
cn flag
Rex

Since you lost your password, it sounds like you just need to change your password to get a normal boot. To do this hold down your shift key during boot up. Select recovery mode (which is usually the second entry). Wait for boot up process to complete. There will be a list of options. The one that you want is the Drop to root shell option so press the down arrow to get to that option and press enter to select it.

The root account is the ultimate administrator and can do anything to the Ubuntu installation (including erase it) so be careful with what commands that you enter in the root terminal. If the file system is mounted as read only, you will need to enter: mount -o rw, remount/ in the terminal Now to reset the password, type: passwd username where username is the user name you want to reset. Substitute your username. You will then be prompted for a new password. When you type the password you will get no visual response acknowledging your typing. Hit enter when you are done. You will be prompted to retype the password. Do so and hit enter again. Now the password should be reset. Type: exit to leave the terminal.

Hendré avatar
cn flag
I cannot get to the recovery mode screen, my PC boots straight into the Grub command line. Pressing left shift, right shift or ESC do not work.
Rex avatar
cn flag
Rex
What does the GRUB prompt look like? There is a GRUB rescue tutorial at https://linoxide.com/grub-rescue-commands/. It may be of assistance.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.