Single-user mode and Rescue mode: Linux Learning Third

Source: Internet
Author: User

Single-User mode

1. Restart, in the following interface options, press E

Press E to enter this Grub interface (boot tool)

2. Locate the linux16, change the ' ro ' (read-only) to ' RW ' (read-write), and add init=/sysroot/bin/sh

Press Ctrl+x to start after modification

3. Change the password

Chroot/sysroot//Switch to System environment

lang=en//Modify language display, because the Chinese display garbled

Touch/.autorelabel//It is important that the file must be established

Restart after Setup is complete.

CENTOS6 a total of 7 operating modes in previous versions, from INIT0–INIT6

0---Shutdown

1---Single-user mode

2---Multi-user mode

3---Multi-user mode (no command-line interface with graphical interface installed)

4---Multi-user mode

5---graphical interface

6---Restart

Seven modes across the CENTOS7 version

Rescue mode

1. Select Enter BIOS at startup

2. Select Boot to transfer the CD-ROM to the first line

Press F10 after tuning, enter to confirm restart

3. After reboot, automatically enter the CD-ROM boot screen, select the third item and enter

4. Enter troubleshooting and select the second item

5. Select the first item continue (continue)

Second item: read-only Mount

Third: Skip the shell directly

Item Fourth: Restart

6. Enter the command chroot/mnt/sysimage switch to the original system environment

Enter command passwd ROOT to change password

After changing the password, locate the disc icon in the lower right corner and click the Cancel disc to restart the client after the connection.

Single-user mode and Rescue mode: Linux Learning Third

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.