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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
11-18-2007, 11:08 AM
|
#1
|
Member
Registered: Dec 2004
Distribution: Red hat linux 9
Posts: 199
Rep:
|
Modify LILO loader
Hello,
I had problems with my installation of Red Hat 9 and I have reinstalled the system. Now everything works fine, except on thing:
Before reinstall, I had configured dual boot with labels linux and win_XP, now when turning ON the computer I have four choices: linux (old), 2 40 80 (new), win_xp (old) and DOS (new).
I want to delete new choices that were added to the boot list. When I chose to boot first option (linux) and modify lilo. conf in such way to remove parts that matches new added entries and restart the computer nothing changes I still have same four options.
How to overcome this problem?
Should I only change lilo.conf or something else?
Thanks
|
|
|
11-18-2007, 12:11 PM
|
#2
|
Member
Registered: Nov 2003
Distribution: Arch
Posts: 31
Rep:
|
It sounds like you only modified lilo.conf. Did you run lilo after modifying the file?
|
|
|
11-18-2007, 12:27 PM
|
#3
|
Member
Registered: Jan 2006
Distribution: Ubuntu 9.04, Fedora 10
Posts: 76
Rep:
|
Yeah, Lilo is a bit different from Grub in that aspect. It saves all the required boot info to the Master Boot Record (MBR), so the configuration files are never needed. Grub, however, works by saving a reference to the configuration file, so you change the file, and it changes the boot options.
To change Lilo, you gotta run the lilo command as root, as Peart said, which will re-write it to the MBR.
|
|
|
11-20-2007, 03:22 PM
|
#4
|
Member
Registered: Dec 2004
Distribution: Red hat linux 9
Posts: 199
Original Poster
Rep:
|
Thank you very much guys, running lilo command solved my problem. I didn't know it is so important. Can you tell me more what is happening when I run lilo command? If bytes of data are written to MBR when lilo command is performed?
|
|
|
11-20-2007, 11:15 PM
|
#5
|
Member
Registered: Jan 2006
Distribution: Ubuntu 9.04, Fedora 10
Posts: 76
Rep:
|
Well, I've never looked into it overly much, but I believe what it does is wipe the current MBR, and writes the required boot code, including which OS is where, and how to use them. So, when you run lilo, yes, data is being written to the MBR.
|
|
|
11-21-2007, 11:31 AM
|
#6
|
Member
Registered: Dec 2004
Distribution: Red hat linux 9
Posts: 199
Original Poster
Rep:
|
Thank you very much for your help.
|
|
|
11-21-2007, 12:02 PM
|
#7
|
Moderator
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,951
|
Hi,
Quote:
Originally Posted by Micik
Thank you very much guys, running lilo command solved my problem. I didn't know it is so important. Can you tell me more what is happening when I run lilo command? If bytes of data are written to MBR when lilo command is performed?
|
You can always use the 'man' command to find out about a particular command. At the cli do a 'man lilo' and you get;
Code:
excerpt from 'man lilo';
LILO(8)
NAME
lilo - install boot loader
SYNOPSIS
Main function:
/sbin/lilo - install boot loader
Auxiliary uses:
/sbin/lilo -A - activate/show active partition
/sbin/lilo -E - edit header or update a bitmap file
/sbin/lilo -I - inquire path name of current kernel
/sbin/lilo -M - write a Master Boot Loader on a device
/sbin/lilo -q - query map
/sbin/lilo -R - set default command line for next reboot
/sbin/lilo -T - tell more about specified topic
/sbin/lilo {-u|-U} - uninstall LILO boot loader
DESCRIPTION
lilo installs a boot loader that will be activated the next time you
boot your system. The default configuration file /etc/lilo.conf (see
'man lilo.conf') will contain most options, but many, including those
which override the configuration file, may be specified on the command
line.
You should do the 'man lilo' to get the complete discription. I did not post the options in the above.
You can edit the 'lilo.conf' with 'vi' as root then to test before the write of the lilo.conf file. As root do from the cli;
Code:
~#vi lilo.conf #edit lilo.conf, if need be
~#lilo -v -t -b /dev/your_device #sda, hda this will only test
~#lilo -v -b /dev/your_device #this will write MBR to your_device
Remember, 'man' is your friend.
|
|
|
All times are GMT -5. The time now is 06:41 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|