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.

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

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...