Solution: CentOS 6 cannot be started after the system time is changed

Source: Internet
Author: User

Solution: CentOS 6 cannot be started after the system time is changed

System Environment: CentOS 6.5
Recurrence: set the current system time to a time in the previous day, and then restart the system.

I. Problem Analysis:
The above red box shows:
/Dev/sda2: Superblock last mount time (Mon Jan 13 04:47:28 2014, now = Fri Jan 10 11:02:20 2014) is in the future.
The last Mount time of the sda partition (Mon Jan 13 04:47:28 2014) is in the future (the current time is Fri Jan 10 11:02:20 2014.

Note: An error occurred during the file system check.
Indicates An error occurred during file system check.

Ii. solution:
The solution should look at the last few words above.
Give root password for maintenance
(Or type Control-D to continue ):
The two sentences mean:
Enter the root user password for maintenance, or press Ctrl + D to continue.

If you press the "Ctrl + D" key to continue, the system will still fail to start and return to the interface where the error is reported. Therefore, you can only press "(or type Control-D to continue ): in this line, enter the root user password and press enter to enter the maintenance mode.

After entering the maintenance mode, run the fsck command to fix the partitions prompted by the error message.
If one disk partition cannot be repaired, multiple partitions may need to be repaired.

I fixed the problem that the partition was not correct. I used fsck/dev/sda to fix the entire disk.
After the fsck command is fixed, reboot and the system can start normally!

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.