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 11-23-2003, 08:10 PM   #1
Nukem
Member
 
Registered: May 2003
Location: Canada, TO.
Distribution: Slackware: in progress, Mandrake 9.2, Libranet, Vector
Posts: 373

Rep: Reputation: 30
Question Editing LILO


Can someone please tell me how can I edit the lilo in the command mode. Also how to add an entry so that I have option to select the OS I want at the startup. Also how can I make the new change take effect. I'm not verry goot at commands and it would be helpful if you can give the command for opening the file to edit.

I have 2 partisions on one drive. Have windows in C and want to put Mandrake 9.2 on D.

First time I installed Mandrake 9.2 it did not give me the option to select what I want. It just continued to load Linux when ever I turned on the computer.
 
Old 11-23-2003, 08:41 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Basically it's all in
man lilo
man lilo.conf

You just need a text editor, make your
changes to /etc/lilo.conf, and then run
lilo to actually activate them.


Cheers,
Tink
 
Old 11-24-2003, 03:45 AM   #3
MartinN
Member
 
Registered: Nov 2003
Location: Ronneby, Sweden
Posts: 555

Rep: Reputation: 30
Hi!

Try reading this little HowTo:
http://www.tldp.org/HOWTO/LILO.html

It's definately better to know what you do when editing your master boot record. I don't want to scare you, but the chance is that you end up with a system that's completely broken otherwise.

You could also take a look at the hardware solution which is kind of nice:
http://www.nicklock.com/

If you want to go ahead with this I could give you some more help. But I would feel much more comfortable knowing that you, at least, have read the HowTo.

Regards
Martin
 
Old 11-24-2003, 06:47 AM   #4
Nukem
Member
 
Registered: May 2003
Location: Canada, TO.
Distribution: Slackware: in progress, Mandrake 9.2, Libranet, Vector
Posts: 373

Original Poster
Rep: Reputation: 30
Ya thanks.. But the problem is Is it possible to do this in Linux command mode?? because last time I installed linux, I had a problem with my graphic card and "startx" command didn't work. So linux didnt work and, windows didnt work. If I can't go to the internet I'm doomed. So I dont want to install linux untill I know how to do this. So incase linux dosent work for the second time, at least I can go to the internet and look for help.

If it is possible to do this in command mode can you please tell me what commands I have to use...

Thanks......
 
Old 11-24-2003, 01:41 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Originally posted by Tinkster
You just need a text editor, make your
changes to /etc/lilo.conf, and then run
lilo to actually activate them.
Quote:
If it is possible to do this in command mode can you please tell me what commands I have to use...
Let's see .. most systems will have vi,
and emacs. Some will have pico, you
can use the built-in editor in mc... and
all those are command-line tools.


Cheers,
Tink
 
Old 11-24-2003, 10:27 PM   #6
Nukem
Member
 
Registered: May 2003
Location: Canada, TO.
Distribution: Slackware: in progress, Mandrake 9.2, Libranet, Vector
Posts: 373

Original Poster
Rep: Reputation: 30
Ok... Let me explain my situation more clearly... I have a problem with my graphic card. So when linux loads, it gets to the point where I have to type in user name and password and then, when I type startx it give me an error.

At that point i'm stuck.. And I want to add an entry on liolo for my secondery OS. So at least the other one works untill I fix the problem here.

So in order to edit lilo.conf what command exactly do I type and what command do I type to run the thing and make changes take effect???

Hope you understand better now....

Thanks.......

Last edited by Nukem; 11-24-2003 at 10:29 PM.
 
Old 11-24-2003, 10:31 PM   #7
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
He's already *told* you.
Code:
vi /etc/lilo.conf
Code:
/sbin/lilo
Code:
shutdown -r now
 
Old 11-25-2003, 11:53 AM   #8
Nukem
Member
 
Registered: May 2003
Location: Canada, TO.
Distribution: Slackware: in progress, Mandrake 9.2, Libranet, Vector
Posts: 373

Original Poster
Rep: Reputation: 30
OkOk... I'm going to try to do this now....

Thanks......
 
  


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
Editing Lilo Kane2002 Linux - General 2 07-07-2004 12:29 AM
No new kernel-option in LILO after editing lilo.conf corwax Debian 3 08-26-2003 09:55 PM
Editing LILO Negativ13 Linux - Newbie 3 12-23-2002 04:10 PM
Editing the Lilo wings9191 Linux - Newbie 1 02-12-2002 06:22 PM
Editing Lilo tmnt_power Linux - General 7 12-02-2001 08:13 PM


All times are GMT -5. The time now is 10:15 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