Softpanorama

Home Switchboard Unix Administration Red Hat TCP/IP Networks Neoliberalism Toxic Managers
May the source be with you, but remember the KISS principle ;-)
Skepticism and critical thinking is not panacea, but can help to understand the world better

Changing runlevel when booting with grub

News

Linux Startup and Shutdown

Recommended Books Recommended Links Changing runlevel when booting with grub Interactive boot Runlevels
Root password recovery Booting into Rescue Mode /etc/inittab   Filesystems Disk Repartitioning Linux Disk Partitioning

 Installation Checklist

Moving /boot partition to another partition

serial console

Admin Horror Stories Linux Tips

Humor

 Etc

9.8. Changing Runlevels at Boot Time

Under Red Hat Enterprise Linux, it is possible to change the default runlevel at boot time.

To change the runlevel of a single boot session, use the following instructions:

There are occasions you want to boot in non-graphical mode ( in runlevel 3 ) for troubleshooting because the system fails to boot the usual way, X fails to start or some module it fails to load.

Here is how you do it when Grub is your boot loader:

At the grub boot menu press the E key. Next select the distro you want to boot and press the E key again. Now select the line with "kernel /boot/vmlinuz" and hit the E key one more time. Now type a space and the number 3 at the end of that line, so for example from:

 

QUOTE
kernel /boot/vmlinuz-2.6.17 ro root=/dev/hda6
to
 
QUOTE
kernel /boot/vmlinuz-2.6.17 ro root=/dev/hda6 3

Finally press the B key and your distro will boot in runlevel 3


NOTE: Runlevel 3 does not work in Ubuntu . . . . use the "rescue mode" you see in the Ubuntu boot menu.

NOTE 2: In recent Mandriva versions Grub has a graphical menu where you can press F2 to edit boot options . . . simply add the number 3 and press the Enter key to boot in runlevel 3.

 

E.7. Changing Runlevels at Boot Time

Changing Runlevels at Boot Time

Under Fedora, it is possible to change the default runlevel at boot time.

To change the runlevel of a single boot session, use the following instructions:

Changing Runlevels at Boot Time

2.10. Changing Runlevels at Boot Time

Under Red Hat Enterprise Linux, it is possible to change the default runlevel at boot time.

If using LILO, access the boot: prompt by typing [Ctrl]-[X]. Then type:

linux <runlevel-number>

In this command, replace <runlevel-number> with either the number of the runlevel to boot into (1 through 5), or the words single or emergency.

If using GRUB, follow these steps:

 

For more information about runlevels, refer to Section 1.4.1 Runlevels.

 



Etc

The Last but not Least Technology is dominated by two types of people: those who understand what they do not manage and those who manage what they do not understand ~Archibald Putt. Ph.D


Copyright 1996-2018 by Dr. Nikolai Bezroukov. www.softpanorama.org was initially created as a service to the (now defunct) UN Sustainable Development Networking Programme (SDNP) in the author free time and without any remuneration. This document is an industrial compilation designed and created exclusively for educational use and is distributed under the Softpanorama Content License. Original materials copyright belong to respective owners. Quotes are made for educational purposes only in compliance with the fair use doctrine.

FAIR USE NOTICE This site contains copyrighted material the use of which has not always been specifically authorized by the copyright owner. We are making such material available to advance understanding of computer science, IT technology, economic, scientific, and social issues. We believe this constitutes a 'fair use' of any such copyrighted material as provided by section 107 of the US Copyright Law according to which such material can be distributed without profit exclusively for research and educational purposes.

This is a Spartan WHYFF (We Help You For Free) site written by people for whom English is not a native language. Grammar and spelling errors should be expected. The site contain some broken links as it develops like a living tree...

You can use PayPal to make a contribution, supporting development of this site and speed up access. In case softpanorama.org is down you can use the at softpanorama.info

Disclaimer:

The statements, views and opinions presented on this web page are those of the author (or referenced source) and are not endorsed by, nor do they necessarily reflect, the opinions of the author present and former employers, SDNP or any other organization the author may be associated with. We do not warrant the correctness of the information provided or its fitness for any purpose.

The site uses AdSense so you need to be aware of Google privacy policy. You you do not want to be tracked by Google please disable Javascript for this site. This site is perfectly usable without Javascript.

Last modified: March, 12, 2019