CentOS does not start normally, reported chown:invalid User: ' Root:root '

Source: Internet
Author: User

Phenomenon:

The system does not start properly, the location of the boot interface card

Note Error message: Chown:invalid User: ' Root:root '

Cause:/etc/passwd file is corrupted or emptied

Try: 1, Grub menu item Press E to enter the kernel edit mode, try to enter the single user mode, the/etc/passwd-will be restored to/etc/passwd, unable to enter, still in the boot process stuck in the fault interface

Solution: Burning System CD--into the repair mode-the original/etc/passwd-replace the original/etc/passwd, so that the normal access to verify the user name password interface, if not verified, can now enter the single-user mode to modify the root password

WORKAROUND: 1, use a DVD or USB flash drive, through the software UltraISO or PowerISO burning system installation disk

2. Start the server via the optical drive or USB stick

3, the Grub startup item Select "Rescue installed system" selects the keyboard and the language (default), enters the repair mode, in this mode (similar to Windows PE), the original root partition automatically mounts to the/mnt/sysimage (the system will be prompted)

4, replace the/mnt/sysimage/etc/passwd-/mnt/sysimage/etc/passwd, command cp/mnt/sysimage/etc/passwd-/mnt/sysimage/etc/passwd

5, restart the system, can normally enter the login interface, if the original password can not be verified, re-enter the single user mode (method: http://jingyan.baidu.com/article/acf728fd1de7ebf8e510a3cb.html), To modify a user's password

CentOS does not start normally, reported chown:invalid User: ' Root:root '

Related Article

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.