Enter single-user mode when the system crashes

Source: Internet
Author: User
Article Title: Enter the single-user mode when the system crashes. Linux is a technology channel of the IT lab in China. Some basic categories, such as desktop applications, Linux system management, kernel research, embedded systems, and open-source systems, are mostly started by Linux beginners on a GUI. In this case, if X crashes, it means that X server is always trying to restart and may not be able to enter the system. It is necessary to use a single user to log on when the system is damaged;

1. Use a single user to log on to the system;

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 over this line, then press the e key to edit this line; a space at the end of the line, then enter linux single

It 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;

Next we need to start the system and press the B key to start it;

Non-Fedora core 4.0 may be read-only when a single user enters the system. Run the following command;

# Mount-o remount, rw/

2. If X cannot be started, how can I log on to the machine?

Change the logon mode from graphical logon to text logon, and fix the problem;

Log On in single user mode, find the/etc/inittab file, and find the following line;

Id: 5: initdefault:

Change 5 to 3, that is, to the following:
Code:

Id: 3: initdefault:

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.