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 '