Virtual machine Ubuntu login password forgot solution

Source: Internet
Author: User

Straight to the point:

1, start the virtual machine, press and hold the ESC key during startup to enter Grub.

2, if the Chinese version, select Advanced, if it is English, select advaced, press ENTER, do not press E.

3, go to a new interface, select the Repair mode, the last side of the recovery mode, press E.

4, at this time also entered an interface, from the success is not far away. Choose to have the Linux kernel of the item, generally is the fourth line, followed by a RO recovery nomodeset, at this time, the reverse of the same quiet splash RW Init=/bin/bash Replace, note, instead of the same line, It's not behind Echo.

5, after replacing, press F10 to restart.

6, no accident, after the restart can be root identity without password login, at this time you can modify the password of any user name.

7, note: The above method is for grub is not set up a password, if grub set a password, it is another matter, the younger brother has not tried.

Virtual machine Ubuntu login password forgot solution

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.