Article Title: Cross-Console Logon for Linux operating systems. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Abstract:
This article describes how to log on to the system during system repair. For example, when we forget the root password or encounter difficulties when the system is started normally, we can use the single-user mode, in the repair mode, linux rescue and cross-Console Logon are used to load and log on to the file system;
How can we access the system when the system is damaged or difficult to log on? For example, when we forget the root password or the system cannot start normally, we first think of how to log on to the system or back up important data in the file system; the following methods are provided for your reference:
Directory Index
1. single-user mode.
1. Use the grub System Boot manager for single-user logon.
2. lilo Boot manager single-user mode.
Ii. linux rescue repair mode.
3. log on across the console.
* 1. log on to the console through grub and lilo boot.
* 1) If grub is used for system boot.
* 2) If you use lilo for system boot.
* 2. linux rescue.
* 3. use linux livecd or a third-party linux system.
* 1) mount the file system.
* 2) chroot to the mounted file system.
4. About this article.
I. Single User Mode
In single-user mode, you must enter the password of the root user. Otherwise, you cannot log on to single-user mode. If you lose the password of the root user, you cannot reset your root password in single-user mode.
In addition, the single-user mode also requires that your grub or lilo can work normally, and you know where your system problems occur. When you log on in single-user mode, you can open the file system write operation and perform the system repair you want. Some may say, "I really don't know which system is going wrong, if you really don't know, I can't do anything about it, because this document mainly describes the logon mode, not how to fix the system.
1. Use the grub System Boot manager for single-user logon;
After grub is started, move the keyboard to the Linux Startup item; press the e key; then move the keyboard to a line similar to the following, that is, the line of the kernel:
kernel /boot/vmlinuz-2.6.11-1.1369_FC4 ro root=LABEL=/1 rhgb quiet
|
Move the cursor to this line and press the e key to edit the line. At the end of the line, enter a space and linux single, which is similar to the following:
kernel /boot/vmlinuz-2.6.11-1.1369_FC4 ro root=LABEL=/1 rhgb quiet linux single
|
End editing, press enter to return, and then start the system. Press "B" to start the system. After Entering single-user mode, the system prompts us to enter the root password; after entering the correct information, you will enter the system. You can use df-h to view the Mount location of the file system, or use fdisk-l to view partitions. However, you can write to the file system, you may also need to check the following. After a single user enters the system, the system may be read-only. Run the following command:
2. lilo Boot manager single-user mode;
In boot: Enter:
After running in single-user mode, the system prompts us to enter the root password. after entering the correct password, the system will enter. You can use df-h to view the Mount location of the file system, you can also use fdisk-l to view partitions and so on. But write operations on the file system may need to be viewed below. After a single user enters the system, the system may be read-only; run the following command:
[1] [2] [3] Next page