Tech Support > Operating Systems > Linux / Variants > Specifying runlevel at boottime?
Specifying runlevel at boottime?
Posted by Gerhard W. Gruber on December 3rd, 2003


Is it posisble to override the runlevel at boottime? Sometimes I don't want to
fire up X but I don't want to set the runlevel explicilty for this one time,
so it would be great if there would be a boot option to specify it directly.

--
Gerhard Gruber
Maintainer of
SoftICE for Linux - http://sourceforge.net/projects/pice
Fast application launcher - http://sourceforge.net/projects/launchmenu

Posted by Keith Clark on December 3rd, 2003




"Gerhard W. Gruber" wrote:

Edit your /etc/inittab file.

You'll see a line that defines the default run level. Change it from "5" to "3"
and you'll be set.

I generally do that myself any time I install a new kernel, or a new graphics card
driver and generally leave it that fro for a few dozen sessions to make sure it 's
not going to hang on me under various circumstances before I change the default
back to runlevel 5.

--Keith


Posted by zviwk@ehqakc.com on December 3rd, 2003


|Is it posisble to override the runlevel at boottime? Sometimes I don't want to
|fire up X but I don't want to set the runlevel explicilty for this one time,
|so it would be great if there would be a boot option to specify it directly.

Just add the level number after the image name at the boot prompt. This
talks about lilo but works with grub too.

http://sdb.suse.de/sdb/en/html/ke_init.html
--

Posted by Gerhard W. Gruber on December 3rd, 2003


On Wed, 03 Dec 2003 22:40:39 GMT wrote zviwk@ehqakc.com in alt.os.linux.suse
with <HDtzb.38278$aT.35274@news-server.bigpond.net.au>

Thanks. That was exactly what I hoped for.

--
Gerhard Gruber
Maintainer of
SoftICE for Linux - http://sourceforge.net/projects/pice
Fast application launcher - http://sourceforge.net/projects/launchmenu

Posted by TGGA on December 3rd, 2003



"Gerhard W. Gruber" <sparhawk@gmx.at> wrote in message
news:s1pssv0k4te54dbihojdkka94kj3tkfdem@4ax.com...
There is, when it says boot or whatever just type the number 3 and press
enter...



Posted by mjt on December 3rd, 2003


On Wed, 03 Dec 2003 14:36:37 -0800, Keith Clark <clarkphotography@hotmail.com> wrote:

.... that's an option. i think the OP wants to dynamically
choose that at the boot prompt
..
--
/// Michael J. Tobler: motorcyclist, surfer, skydiver, \\\
\\\ and author: "Inside Linux", "C++ HowTo", "C++ Unleashed" ///
Genetics explains why you look like your father, and if you
don't, why you should.

Posted by mjt on December 3rd, 2003


On Wed, 03 Dec 2003 23:32:37 +0100, Gerhard W. Gruber <sparhawk@gmx.at> wrote:

.... use the runlevel number you want at the boot prompt
..
--
/// Michael J. Tobler: motorcyclist, surfer, skydiver, \\\
\\\ and author: "Inside Linux", "C++ HowTo", "C++ Unleashed" ///
Lockwood's Long Shot: The chances of getting eaten up by a lion
on Main Street aren't one in a million, but once would be enough.

Posted by Keith Clark on December 4th, 2003




mjt wrote:

Cool, I didn't know you could do that!


Posted by Gerhard W. Gruber on December 4th, 2003


On Thu, 04 Dec 2003 00:29:12 GMT wrote mjt
<mjtobler@removethis_consultant.com> in alt.os.linux.suse with
<sdvzb.2963$Oe5.2665@newsread2.news.atl.earthlink. net>

Yes. I know that I can set the runlevel hard in Yast or in inittab, but I only
need this i.e. when I play with the config and something doesn't work with X
or such things. Or like now I try to activate the ATI driver for my card and
for this I need to switch to init 3, so I have to wait until X has been
finished, then shut it down, switch the drivers and start it up again.
It's not that much time, but it's annyoing if you do this several times.

--
Gerhard Gruber
Maintainer of
SoftICE for Linux - http://sourceforge.net/projects/pice
Fast application launcher - http://sourceforge.net/projects/launchmenu

Posted by Jan Schledermann on December 4th, 2003


Gerhard W. Gruber wrote:

editing field.
For run-level 3 simply enter: 3
--
Jan Schledermann
Mierlo, The Netherlands


Similar Posts