CentOS6.7 directly start command line mode

Source: Internet
Author: User
CentOS6.7 is installed. because the graphic interface cannot be switched using the startx command, the default value of/etc/inittab is set to 5 after online search, and then reboot restarts the system, after the progress bar is started, it will become stuck. for example, refer to various articles on the Internet and finally solve the problem. Learn more from http://www.centoscn.com/centosbug/osbug/2014/0827/3582.html. Solution

When CentOS 6.7 is installed, because the graphic interface cannot be switched using the startx command, the default value of/etc/inittab is set to 5 after online search, and then reboot restarts the system, after the progress bar is started, it will become stuck. for example:

Refer to various articles on the Internet to solve the problem. Learn more from http://www.centoscn.com/centosbug/osbug/2014/0827/3582.html.

The solution is as follows:

1. press Ctrl + Alt + Insert (Note: Insert). The system restarts. go to the following interface and press any key.

2. click e on the UI.

3. enter the page shown in the figure. select the second one (highlighted in the figure) and press e to enter the editing status.

4. go to the interface shown in

5. add "init =/bin/bash" at the end of the row. for example, if the sh value exceeds the screen, press enter, and then press "B" to restart.

6. go to the interface shown in.

7. the file cannot be modified at this time. type the command "mount-o remount, rw/" to re-mount the file system so that it can be read and written, then modify the default value of 3 in the/etc/inittab.

8. press Ctrl + Alt + Insert to restart the system. Pai_^

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.