How to create a menu entry for booting into the command line from GRUB.

3 years ago by jim_stark to c/linux

One can boot into the command from grub by editing kernel parameters.

Another way is edition the grub configuration and setting GRUB_CMDLINE_LINUX_DEFAULT="text". But now it's not possible to boot into a graphical env.

So is there way to create menu entry just for command line so it will be one of the ways to log into the system?

load all comments
stuck_in_the_shell 3 points 3 years ago

Not sure why you would want to specifically do that since you can boot from a normal graphics install and just use the shortcut ctrl+shift+F# to change to the TTY.

However if you really want to just edit you GRUB config and copy paste the the menu entry you want to duplicate, and to one of them add a "space" and the number "3" to the end of the line. This way one entry would boot the graphics mode and the other would boot directly to TTY.

The solution is found here https://www.linux.org/... and perhaps a thread like this would better fit here !linux4noobs@programming.dev

path: 0 2533143, hotness: undefined, score: 3, children: 1
jim_stark 1 point 3 years ago

Thanks.

The link suggests it might be undone after GRUB updates. Maybe I will just edit the line and at the init level at the boot menu.

Ah, yes. I felt a bit uncomfortable posting here, glad to know linux4noobs exits here; subscribed.

path: 0 2533143 2594939, hotness: undefined, score: 1, children: 0
linux
linux

@programming.dev

login for more options
15211
5337
3306

A community for everything relating to the GNU/Linux operating system (except the memes!)

Also, check out:

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

go to feed...