Welcome to the Linux Foundation Forum!

Lab 3.1: Booting into Non-Graphical Mode Using Grub (CentOS 7)

LexHoffman
LexHoffman Posts: 11

There doesn't seem to be a way to achieve this via Grub on CentOS 7.  I tried the following in Grub:



1. Appending "3" 

2. Appending "text"

3. Appending "systemd.unit=multi-user.target"

1 & 2 produced errors stating each was not recognised.  3 continued to boot into grapical mode.

To get into a non-graphical environment I had to change the default target via `systemctl` before restarting, like this:


systemctl set-default multi-user.target

This allowed me to boot into non-graphical/ runlevel 3 mode and to complete the exercise by restarting the graphical environment with:


sudo telinit 5

However this doesn't seem to meet the requirement of "Booting into non-graphical mode using GRUB".  Has anyone using CentOS 7 been able to do this?

Comments

  • coop
    coop Posts: 916
    edited December 2016

    I just did this on a CentOS 7 virtual machine and had no problem.  Did you append the " 3" to the line that starts with "linux16 ...."   (after hitting 'e' and then scrolling down to the line., and hitting CTL-x afterwards)

  • Hi coop,  thanks for that!  It turns out a new line had started before the end of the grub config (I didn't notice the indentation).  So I just had to go up one line.

    Thanks again! :)

  • coop
    coop Posts: 916
    edited December 2016

    glad to help

Categories

Upcoming Training