I installed Ubuntu11.04 in VMware. After a long vacation, I was unable to log on again. I did not know how to enter the Grub startup interface in the virtual machine at the beginning. I searched the internet, follow these steps to reset the new password for the user. Restart Ubuntu and press shift to go To the grub menu. Select recoverymode and press enter to confirm. In RecoveryMenu, select "RootDroptorootshellp has installed Ubuntu 11.04 in VMware. After a long vacation, when I log on again, I cannot enter the Grub startup interface. I did not know how to enter the Grub startup interface in the VM at the beginning. I searched the internet and set a new password for the user according to the following steps.
- Restart Ubuntu.ShiftGo to the grub menu;
- Select recovery mode and press enter to confirm;
- In the Recovery Menu, select "Root Drop to root shell prompt" and press enter to confirm;
- Go to the shell interface and use the passwd command to reset the password: passwd david (david is an existing username in the system). Press enter to confirm;
- Enter the new password;
- Confirm the new password again;
- The prompt "passwd: password updated successfully" is displayed;
- Restart the system to enter the GUI: sudo reboot;
For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2