In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the "CentOS7 startup error prompt" Give root password for maintenance "how to do" the relevant knowledge, in the actual case of the operation process, many people will encounter such a dilemma, then let the editor lead you to learn how to deal with these situations! I hope you can read it carefully and be able to achieve something!
Today, after migrating a virtual machine (CentOS 7.3 for OS) through vMotion, the following interface error message appears when the virtual machine is restarted:
Enter the root password, log in to the system, and enter journalctl-xb as prompted to see the last error message, as shown in the following figure:
The cause of the problem:
Through the red font, the display driver reported an error, which at first glance should be related to the mount of the disk, so I looked at the / etc/fstab file and found the problem.
Problem solving:
# vim / etc/fstab found that the last line was added when I mounted the CD. After I commented out this mount information, I can start normally by re-reboot.
*
The following is the solution to the error due to other reasons found on the Internet, which is put here for your reference:
Https://yq.aliyun.com/ziliao/78174
This article is about linux prompting Give root password for maintenance errors.
The cause of the problem should be a problem detected by the / usr / home / boot partition disk. Give root password for maintenance (or type Control-D to continue): after entering the password, it appears: (R Repair filesystem)
The cause of the problem should be a problem detected by the / usr / home / boot partition disk.
Give root password for maintenance
(or type Control-D to continue): after entering the password, it appears:
(Repair filesystem) 1 #
Execute the following command:
# fsck-y / usr
# fsck-y / home
# fsck-y / boot
Perform a restart again:
# reboot
Restart OK
Solution one
At this point, the user needs to personally follow the following steps to fix the program:
1. Type the root password, and then press the enter (Enter) key
two。 The following command prompt appears on the screen: (Repair filesystem) prompt
3. Enter "e2fsck-y / dev/hda2" after the prompt, and then press "Enter" to check the file system.
4. The system will automatically repair and display the progress of the repair on the screen.
5. Type "exit" when you are finished, and then press the input key to restart the system.
Most file systems can be repaired by this method, but if the system or important system files are seriously damaged, the entire instant must be reinstalled.
Solution two
1. After reboot, it should stop at this interface:
Give root password for maintenance
(or type control-D to continue):
Enter the password of the server root user at this time: *
Enter, you can enter a simple command operation interface.
two。 Enter fsck-y enter
Start repairing the file system. The time varies from half an hour to eight hours, depending on the size of the hard drive.
3. After the repair is completed, enter reboot to restart the computer.
Note: some files may be lost after repairing the file system, and the missing files are in the lost+found directory of the corresponding partition.
"CentOS7 startup error prompt" Give root password for maintenance "what to do" is introduced here, thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.