Jump to content

Beginner's question: How to run lilo in terminal?


Recommended Posts

Welcome aboard. :)

 

type

lilo -v

if you want a verbose display of what it is doing.

 

On Mandriva, the "/sbin/" path is usually not necessary for executing many commands. Other distros do require it however.

Link to comment
Share on other sites

Or still better, replace LILO with Grub.

Grub does not need updating every time you update your kernel.

While the second half of this statement is true, there is nothing that makes Grub better than Lilo. It's personal preference all the way - go with whichever one you feel most comfortable with. If Lilo is working for you then there is no reason to replace it ;)

Link to comment
Share on other sites

A general note:

I really think that we should not tell someone to use grub every time a question is asked about lilo. I have used both, and 90% of the issues that I read about are simple misunderstandings about either lilo or grub. I currently have lilo choosing between 5 different operating systems without any problems, and as always I have it installed on the mbr. Grub or lilo do the job; Perhaps if we just answer the questions, we'll do better service to the community.

 

BTW, lilo -v as root should be done every time you make a change. If your edits have an error, you will see it and can make corrections. Yes, I edit it manually; it's just easier for me.

Link to comment
Share on other sites

A general note:

I really think that we should not tell someone to use grub every time a question is asked about lilo. I have used both, and 90% of the issues that I read about are simple misunderstandings about either lilo or grub. I currently have lilo choosing between 5 different operating systems without any problems, and as always I have it installed on the mbr. Grub or lilo do the job; Perhaps if we just answer the questions, we'll do better service to the community.

 

BTW, lilo -v as root should be done every time you make a change. If your edits have an error, you will see it and can make corrections. Yes, I edit it manually; it's just easier for me.

This is partially what I was trying to say above. The question was about lilo - so try to keep the answers that way.

Link to comment
Share on other sites

Grub does not need updating every time you update your kernel.
The way most distributions are set up (appending a version to your compressed kernel file in /boot, i.e. vmlinuz-2.6.17-10) you would still need to update your menu.lst to add the new entry. You just don't have to rerun the grub installer.
Link to comment
Share on other sites

Okay, backing up a bit... I tried using Kate to edit lilo.conf and got the following error:

 

"Access denied. Could not write to /etc/lilo.conf.part."

 

So I tried using vi and vim and got this error:

 

"W10: Warning: Changing a readonly file"

 

:wall:

 

As I said, I am completely new to Linux.

Link to comment
Share on other sites

Okay, backing up a bit... I tried using Kate to edit lilo.conf and got the following error:

 

"Access denied. Could not write to /etc/lilo.conf.part."

 

So I tried using vi and vim and got this error:

 

"W10: Warning: Changing a readonly file"

 

:wall:

 

As I said, I am completely new to Linux.

You are in your user acccount and need root privileges to edit config files. Do this:

 $ su
Password: [enter your root password]
#

Now try using vim or nano to edit that file ;)

 

$ means you have user privileges and # means root privileges (generally).

 

Oh, and NEVER log in as root to do these things, rather use the su command.

 

EDIT: Also, the file name needs to be lilo.conf for it to work. Make sure you are editing the right file, or rename that file.

Link to comment
Share on other sites

Or, more simply, if you're used to using Kate:

su

enter root password

kate /etc/lilo.conf

edit file, save file, close kate

lilo -v

and then when you've finished,

exit

to exit root mode.

Link to comment
Share on other sites

Are you using Mandriva? Which version? Or are you using a different distribution (Ubuntu, Debian, etc.)?

 

With Mandriva, it should have asked you to give a password for root during the initial install.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...