Linux Disk Bad Track repair

Source: Internet
Author: User
Linux Disk Bad Track repair-Linux general technology-Linux technology and application information, the following is a detailed description. When a problem occurs on a server in the company, I restart the IDC. As a result, the IDC staff directly press reset, resulting in bad disk paths. The server cannot be restarted.

I used to go to the data center and found that the/www directory reported a disk error. after entering the directory, the CD to the www directory does not contain any files.

The solution is as follows:

1. log on to the system as a root user, modify the/etc/inittab file, modify id: 3: initdefault: id: 1: initdefault, and restart the system to enter the single-user mode.

2. fdisk-l view the device number

3. Run fsck-y/dev/sdb1 to repair the disk.

4. Modify the/etc/inittab file, modify id: 1: initdefault: id: 3: initdefault, and restart the system to enter the multi-user mode.

Solved successfully!
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.