LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-17-2002, 01:00 PM   #1
joadoor
Member
 
Registered: Apr 2002
Location: Clevedon, UK
Distribution: SUSE 8.2, 9.2, 10.0 OSS
Posts: 57

Rep: Reputation: 15
Different 'init' levels in boot menu


On the boot menu (GRUB or LILO) is it possible to be able to choose init=3 or init=5 ??
If so, what options do you pass to the kernel on loading?

I currently have two options:
Linux
Win98 / Win2k

but i'd like to change the Linux one to:
Linux - Command Line ie. init 3
Linux - GUI ie. init 5

btw, I am using RH7.2 / GRUB but I suppose it's relevant to both.

TIA
Joadoor
 
Old 04-17-2002, 01:06 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
yeah that's easy enough. i *still* haven't got a clue what a grub config file looks like, but just copy the current one you're using and specify the runlevel in it with "init 3" in the kernel parameters.
 
Old 04-17-2002, 01:08 PM   #3
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Debian + Ubuntu
Posts: 4,358

Rep: Reputation: 57
I don't know. I suppose if you wrote a program that is run from /etc/init.d, and had it look at the kernel parameters given and set the runlevel accordingly, it might work, but I'd be sceptical.

Just out of curiosity, why would you want to do this? Could you not set up your system so that you're given a text login, and those that want to be taken straight to the GUI do so? I think you'd maybe need to edit the .bashrc file in some users ~ directory, and possible their .xinitrc as well.

<edit>
Damn! I hate it when that happens! Ok, I suppose my idea was a little far-stretched. Go with Master Kewp's
</edit>

Last edited by Thymox; 04-17-2002 at 01:09 PM.
 
Old 04-17-2002, 01:29 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
Code:
 _   _    _      _   _    _    _ 
| | | |  / \    | | | |  / \  | |
| |_| | / _ \   | |_| | / _ \ | |
|  _  |/ ___ \  |  _  |/ ___ \|_|
|_| |_/_/   \_\ |_| |_/_/   \_(_)
 
Old 04-17-2002, 02:02 PM   #5
joadoor
Member
 
Registered: Apr 2002
Location: Clevedon, UK
Distribution: SUSE 8.2, 9.2, 10.0 OSS
Posts: 57

Original Poster
Rep: Reputation: 15
thanx guys, sorry ... bit of a newbie here getting to grips with a COOL OS

I'm in work at the mo, (M$ world) so can't check a GRUB.CONF and can't remember exactly the syntax.
One of my Linux lines looks similar to:

kernel /vmlinuz-2.4.7-10 ro root=/dev/hdf11 hdd=ide-scsi

how do I add the init 5 option? just put init=5 at the end like:

...root=/dev/hdf11 hdd=ide-scsi init=5
 
Old 04-17-2002, 02:05 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
like i originally said, it's "init 3" not "init=3"
 
Old 04-17-2002, 02:22 PM   #7
joadoor
Member
 
Registered: Apr 2002
Location: Clevedon, UK
Distribution: SUSE 8.2, 9.2, 10.0 OSS
Posts: 57

Original Poster
Rep: Reputation: 15
sorry, just thought the format had to be setting=option

i'll trust the master
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why won't my FC3 rc0 and rc6 levels not call kill script when entering those levels? dvkwiatk Linux - General 2 11-11-2006 09:09 AM
Dual Boot : Making Windows First Option in boot menu Maxwell Rain Linux - Software 3 11-27-2004 04:00 PM
Grub boot loader menu shows two linux boot options pramos Linux - Newbie 3 09-13-2004 12:40 AM
boot hangs after running /etc/init.d/boot.local eddieb Linux - Newbie 2 07-18-2004 07:57 AM
Can't Boot No Init WAlN Linux - Newbie 1 11-07-2003 04:41 PM


All times are GMT -5. The time now is 08:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration