LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-29-2003, 03:21 PM   #1
breadbin
Member
 
Registered: Sep 2002
Location: Dublin, Ireland
Distribution: Linux Mint 17
Posts: 160

Rep: Reputation: 26
is there a way to choose just bash prompt from lilo menu?


Hi, I was messing around with lilo.conf and I was wondering how the failsafe thing in lilo.conf works. (Mandrake 9.0) Can I specify in the lilo menu not to boot into X if I only need to get a bash prompt? Is this something to do with the init files? I had trouble with the init files in Mandrake before because they were all over the place with links and what not. I would like the normal X Graphical menu item and another one called text maybe i.e. like the failsafe thing.
 
Old 08-29-2003, 03:23 PM   #2
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
edit the file:
/etc/inittab
and at the beginning of the file (a few lines down) you will change:
id:5:initdefault: (which boots X automatically)
to then read:
id:3:initdefault: (which boots directly to the CLI)
 
Old 08-29-2003, 04:06 PM   #3
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Yeah, but he wants it from lilo so he can choose different ones from boot up...

I believe you might be able to achieve something like that with the append options. Try using the append options from FailSafe and see if that does the trick.

COol
 
Old 08-29-2003, 04:09 PM   #4
contrasutra
LQ Guru
 
Registered: Mar 2003
Location: New Jersey
Distribution: Arch Linux
Posts: 1,445

Rep: Reputation: 47
If you want to do it as a one time thing, after typing your entry, put "init 3", like:

Linux init 3



edit: In LILO that is.
 
Old 08-29-2003, 04:17 PM   #5
Odd_Bloke
Member
 
Registered: Aug 2003
Location: P'boro, UK
Distribution: Fedora Core 1 (Yarrow)
Posts: 87

Rep: Reputation: 15
Wow! Something I can contribute to! Here goes:
From my experience you don't even need the 'init'. Just:
Linux 3

But I may be mistaken. Whatever you do, do not end your labels in numbers. Things go horribly wrong (probably not with Red Hat 5, but I'm running 9 ).

EDIT: Also, don't forget to hit Ctrl-X before hand if you are using the graphical interface (though I'm not sure it'll make much difference).

Dan

Last edited by Odd_Bloke; 08-29-2003 at 04:18 PM.
 
Old 08-29-2003, 04:18 PM   #6
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
How's about an append on that contra, you ever heard of such a thing?

append="init 3" for the text one,

append="init 5" for the gui?

Anyone?

Cool
 
Old 08-29-2003, 04:24 PM   #7
mcd
Member
 
Registered: Aug 2003
Location: Denver, CO
Distribution: CentOS, Debian
Posts: 825

Rep: Reputation: 33
i remember the thread Odd_Bloke, you kept trying to boot to runlevel 9

i guess it just goes to show you should always try and learn from your mistakes
 
Old 08-29-2003, 04:31 PM   #8
contrasutra
LQ Guru
 
Registered: Mar 2003
Location: New Jersey
Distribution: Arch Linux
Posts: 1,445

Rep: Reputation: 47
wouldnt it be:

append=init=3

??

Not sure though. I didn't think LILO could have spaces.
 
Old 08-29-2003, 04:32 PM   #9
Odd_Bloke
Member
 
Registered: Aug 2003
Location: P'boro, UK
Distribution: Fedora Core 1 (Yarrow)
Posts: 87

Rep: Reputation: 15
Well, none of y'all told me that. Good job I wasn't a total n00b.

Anyways, just tryed 'append'ing only '3' and it didn't like it. So I guess you need to 'append="init 3"' after all.

However, I'm still pretty sure you can just pass '3' at LILO itself (as opposed to through lilo.conf).

Dan

EDIT: Me is a pernickity grammerator.

Last edited by Odd_Bloke; 08-29-2003 at 04:33 PM.
 
Old 08-29-2003, 08:27 PM   #10
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Quote:
Originally posted by contrasutra
wouldnt it be:

append=init=3

??

Not sure though. I didn't think LILO could have spaces.
Lilo can have spaces if it's surrounded by quotes

Such is the case in many append lines, for multiple drives (scsi emu) and such.

Cool
 
Old 08-29-2003, 09:23 PM   #11
contrasutra
LQ Guru
 
Registered: Mar 2003
Location: New Jersey
Distribution: Arch Linux
Posts: 1,445

Rep: Reputation: 47
Well, You cant have an entry title use spaces, I just ran into that problem.
 
Old 08-29-2003, 09:27 PM   #12
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
For that I personally use underscores, they are hardly noticable, or I simply combine words (usually that's what I do actually) like:
LinuxMandrake9
Slackware
WindozeXP

And so on...

Cool
 
Old 08-29-2003, 10:05 PM   #13
Odd_Bloke
Member
 
Registered: Aug 2003
Location: P'boro, UK
Distribution: Fedora Core 1 (Yarrow)
Posts: 87

Rep: Reputation: 15
I have entry titles use spaces. I have:
Red Hat
Red Hat Shell
Linux Backup

And they all work dandy. Barring Red Hat Shell but that was just 'cause I screwed my lilo.conf up (see above), which is now fixed.

Dan
 
Old 08-30-2003, 03:40 AM   #14
breadbin
Member
 
Registered: Sep 2002
Location: Dublin, Ireland
Distribution: Linux Mint 17
Posts: 160

Original Poster
Rep: Reputation: 26
Thanks for all of that, that is what I was hoping for because I want to choose either one at lilo. Where is a good place to find out about the append strings. I assume it depends on the kernel itself and thus on the distribution. I will look, I haven't tried append="init 3" but I will do it now. Cheers.
 
Old 08-30-2003, 03:53 AM   #15
breadbin
Member
 
Registered: Sep 2002
Location: Dublin, Ireland
Distribution: Linux Mint 17
Posts: 160

Original Poster
Rep: Reputation: 26
It worked like a charm, there were a few other things on the append line so I deleted them, I don't know what they were for quiet, hdd and something else. It worked perfectly thanks again. what I did do for anybody else wndering was edit the append line and just have it looking like append="init 3". Then just run lilo. nice one
 
  


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
Bash - choose a random line from a file ericcarlson Linux - Software 27 11-12-2013 01:25 AM
bash prompt subG Slackware 6 01-18-2006 04:43 PM
Menu to choose display? dixxxxer Linux - Software 0 11-28-2005 01:23 PM
help with bash prompt everythingand2 Linux - Newbie 7 12-06-2003 04:28 PM
lilo and openmosix was just installed and was added to lilo boot menu but.. kublador Linux - Software 0 06-18-2003 01:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:13 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
Open Source Consulting | Domain Registration