In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to boot into single-user mode in Linux system". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to boot into single-user mode in the Linux system.
Being familiar with the method for linux to enter single-user mode (single) is a must for administrators, because single-user mode is a way to modify system configuration or implement maintenance without affecting other users (or being affected by other users). Single-user mode is also the mode used to carry out reply work on the damaged system. Single-user mode applies to the following situations:
(there is another premise in single-user mode that your grub or lilo is working properly; and you know where your system problems are, and when logging in as single-user mode, you can open the write operation of the file system and make the system repair you want.)
Modify the password
Modify system configuration files and repair the system
System backup restore, partition, etc.
If it doesn't work in single mode, there's probably no good way.
Home page, you can use the
The code is as follows:
# telinit 1 / / put the system into single-user mode (single) without reboot
The following is a summary of how linux enters single-user mode from two aspects: grub and lilo.
There are three ways to enter single-user mode under grub, but it's just a difference in the number of steps.
The first is also the simplest. In the boot screen of grub, highlight the desired kernel, press the "a" key and add the boot option. To boot single-user mode, add the single flag after the existing kernel options, and then press enter. Examples are as follows:
The code is as follows:
Grub append > ro root=LABEL=/ rhgb quiet single
/ / single is added later, and then press enter (start it graphically with rhgb-, quiet- does not output startup information)
The second is to press the "e" key, that is, edit the existing startup menu options, add single after the kernel line, start it, then press enter, and then press "b", that is, the boot system will enter single-user mode.
The third is to press the "c" key, that is, to enter a series of grub boot commands at the command prompt of grub, which should be used when you are familiar with grub commands. I'm used to looking at notes and typing. I can't help it. I can't remember, such as:
The code is as follows:
Gurb > root (hd0,0)
Grub > kernel / vmlinuz-2.6.9-42.ELsmp ro root=/dev/hda1 single
Grub > boot
I feel rather troublesome.
The method of booting into single-user mode under lilo
At the lilo prompt. Type the tag name of the configuration you want to boot (as specified in lilo.conf), followed by-s or single. For example, the default configuration that comes with Debian is called "linux", so to guide the configuration into single-user mode, use:
The code is as follows:
LILO: linux single
Note that in single-user mode (single), the root directory of the file system is mounted read-only when the system boots, which is a means of preventing system instability. If you need to solve the problem by modifying a configuration file or command in the root file system, or if you need to execute a command that modifies those files, this mechanism can hinder our operation. For example, we can only execute commands such as df,fdisk, but if we perform write operations, we can't use them. So we can re-mount the root file system in read-write mode with the following command:
The code is as follows:
# mount- o remount-w /
At this point, I believe you have a deeper understanding of "how to boot into single-user mode in the Linux system". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
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.