LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Editing LILO (https://www.linuxquestions.org/questions/linux-newbie-8/editing-lilo-119305/)

Nukem 11-23-2003 07:10 PM

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.

Tinkster 11-23-2003 07:41 PM

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

MartinN 11-24-2003 02:45 AM

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

Nukem 11-24-2003 05:47 AM

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......

Tinkster 11-24-2003 12:41 PM

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

Nukem 11-24-2003 09:27 PM

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.......

slakmagik 11-24-2003 09:31 PM

He's already *told* you.
Code:

vi /etc/lilo.conf
Code:

/sbin/lilo
Code:

shutdown -r now

Nukem 11-25-2003 10:53 AM

OkOk... I'm going to try to do this now....

Thanks......


All times are GMT -5. The time now is 06:24 PM.