Pentoo accidentally deletes etcpasswd. the solution is nonsense: go home on the National Day, and the dns resolution of the county is estimated to be hijacked. There are a lot of advertisements on the webpage. Therefore, echo & quot; nameserver8888 & quot; & gt; etcresolvconf is used to solve this problem. Accidental misoperations: when pentoo accidentally deletes/etc/passwd, the dns resolution of the county is estimated to be hijacked and there are a lot of advertisements on the webpage. Therefore, echo "nameserver 8.8.8.8">/etc/resolv. conf solves this problem. By mistake, after echo "nameserver 8.8.8.8">/etc/passwd is executed, the system does not get up. Idea 1: Use the pentoo disk to go to the chroot, but the installation of the 2013pentoo with a USB flash disk does not require direct burning. there are some other operations. So no. Idea 2: use any other linux disk to go to chroot, insert the disc, and select the boot item. Or starting from the hard disk. (Unknown reason) idea 3: load init =/bin/bash to start, ignore it directly, add real_init =/bin/bash to start, and prompt that bash cannot be found. Adding init =/bin/bb or init =/bin/busybox has no effect. Google: the kernel parameter is changed to root =/dev/evms/root ramdisk = 8192 udev vga = 0. it fails to start, but it enters busybox. (I have no evms, it is estimated that the root is empty here.) get the shell of ash. Mount/dev/sda3/mnt (the system is in sda3) rm/mnt/etc/passwd cp/mnt/etc/passwd-/mnt/etc/passwd restart solution.
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