In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article is to share with you about the solution that the linux system can not be started, the editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.
For Linux, once you can't start the system, you may know where the error is, and there is a clear direction to fix it, such as adjusting the screen resolution, or modifying a script, and so on. However, the crux of the problem now is that you need to be able to boot or access the Linux system in order to fix it. The following is an introduction to some emergency measures.
The first thing to think of, and perhaps the easiest way, is to adjust the system run level through boot loader- when it is usually grub-. After the menu item appears, press the "e" button on the keyboard so that the menu item can display one or more startup commands, find the line about the kernel, move the cursor over it, highlight the line, and then press "e", and grub will open the line in a simple editor environment so that we can make changes to it. So, how on earth will it change? It's simple, just tell the init program that we want to start it at that level. Add the "init X" parameter at the end of the kernel command line, where X represents the desired running level, for example, if you judge that it may be due to a startup error caused by the graphics card driver or resolution, you can boot to command line mode to repair it, then, you should change the run level to pure command line mode, assuming 4, the changed kernel command line should be similar to this.
/ boot/vmlinuz-2.6.17-11-generic root=UUID=5cc79966-969d-4cd0-abb2-74a132efbd7c ro vga=794 quiet splash init 4
This is tantamount to telling the init program that I want to start at runlevel 4 instead of the default runlevel.
What if these tricks don't work? Are we just gonna sit back and wait for it? no. There is also a side door for you to use.
We know that by default, the kernel executes the init program when it starts, but you can specify a different program for the kernel to execute, just by adding the parameter "init=/some/program". "/ some/program" usually means shell programs such as / bin/bash or / bin/sh. Note that the symbol here is equal to the symbol, and its function is to tell the kernel not to start the init program, but to start any program specified after our sign. The general command line is as follows:
/ boot/vmlinuz-2.6.17-11-generic root=UUID=5cc79966-969d-4cd0-abb2-74a132efbd7c ro vga=794 quiet splash init=/bin/bash
In this way, you can launch directly into the specified shell to analyze and fix the errors that have occurred.
If it still doesn't work... Well, I think there's something wrong with your character! So, take out the recovery cd, which is usually your installation CD, which allows you to choose whether or not to enter rescue repair mode at startup. After entering this mode, he will automatically find the installed system on your hard drive and mount them to a temporary directory so that you can modify the configuration file or other repair operations.
The above is the solution that the linux system can not start, and the editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.
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.