Home > Operation and Maintenance > Linux Operation and Maintenance > What should I do if Linux cannot start?

What should I do if Linux cannot start?

藏色散人
Release: 2019-11-13 09:34:48
Original
5310 people have browsed it

What should I do if Linux cannot start?

What should I do if Linux cannot start?

If you accidentally delete or change a file in your Linux and cause Linux to fail to start, the following will introduce how to restart Linux.

Method 1: Linux enters single-user mode

Press e before starting the operating system and loading the kernel. If an option appears, select the first one until the following figure appears:

What should I do if Linux cannot start?

Press the up and down arrow keys to select the second thing named kernel...., and then press e to see the picture below (you may think it is different, but don't worry) :

What should I do if Linux cannot start?

Add single or Linux single or 1 or S

directly at the end and press Enter to save, then press b to run

Recommendation: "Linux Tutorial"

Method 2: Rescue Mode 1. If you have entered single-user mode, then the next method can be regarded as entertainment. If you can't even enter single-user mode, the next step is to enter rescue mode 1 (of course there will be 2):

Follow step 2 of method 1, and add at the end: init=/bin/ bash

Then press Enter to save, press b to run

At this time, you will find that the system has entered (if not, this method 2 is not suitable for you, please skip it), if you enter, you will find this The system will be in read-only mode

If your system was normal the last time it was restarted, then jump directly to step 5. This step is fsck to check the system:

fsck -a /dev/hdaX When processing the root partition, Bar:

mount /proc

mount / -o remount,rw

swapon -a Open any swap partition

source /etc/profile Load user environment

After repairing the system, remount the system as ro, and you can restart safely .

mount / -o remount,ro

The above is the detailed content of What should I do if Linux cannot start?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template