Instance resolution: troubleshooting during Linux Startup
Source: Internet
Author: User
Article Title: instance resolution: troubleshooting during Linux Startup. Linux is a technology channel of the IT lab in China. It includes desktop applications, Linux system management, kernel research, embedded systems, open source, and other basic Classification Sector disorder issues:
1) if the root directory is not damaged
Assume that the disk block with an error is/dev/hda7, which is maintained by the root user on a single machine, and then input fsck/dev/hda7. Then, the screen displays information about starting disk repair, after the repair is complete, restart with reboot.
2) If the root directory breaks down
Unplug the hard disk and connect it to another LINUX system. You can fix the problem. Alternatively, use live cd to access the LINUX system and fix the problem.
3) The entire hard disk crashes.
Only one change is allowed
Forget the root password:
First, enter the single-user maintenance mode.
Find the/etc/shadow file
Use chmod to change the attributes of this file and make it writable.
Open the shadow file and delete the root password.
Restart. Do not use a password or a space to log on to the root user.
At last, we changed the properties of the shadow file back, because the security is poor.
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