configuring lilo after a recompile

Hullboy

Member
Apr 18, 2001
172
0
0
Hi

i'm having a problem with lilo on slackware that has consumed quite a lot of my time. i have read the kernel-howto and numerous other guides on the internet, but nothing seems to fit my problem. i hope someone out there can help...........

before i began tinkering my system booted using lilo from a floppy. this has been the same since i installed slackware about 4 months ago.

i have recompiled my kernel and put the resulting bzImage into / as vmlinuz. i edited /etc/lilo.conf to add the new kernel option and left the old one in too (different name and path!). i've ran the command lilo

my bios is set to boot from the floppy first, so i removed that and rebooted. to my surprise, when it booted off the hard drive, i saw the boot screen for mandrake (which i had installed a while back before dumping it for slackware). naturally, the list of kernel options from the mandrake menu wasn't a lot of help, so i had to reboot again from the floppy.

can anyone explain what i need to do to get slackware booting from the mbr? this is a single boot system (no windows).

i suspect this all stems from some installation error i made when installing slackware?

anyway, any advice much appreciated.............
 

drag

Elite Member
Jul 4, 2002
8,708
0
0
Lilo installs itself into whats called the Master boot record. This is a reserved portion at the beginning of the harddrive that your bios reads to memory to begin the boot-up of your OS. (also a lot of nasty viruses hide up their). The MBR is not formated normally when you partition a hardrive, MBR is held kinda sacred and you need to go thru special steps to erase it (format it). I had this problem and everyonce in a while on it came to switching a hdd to one OS or another.

The easiest way to fix it is to break out a old DOS boot disk (DOS ISN"T DEAD, you can make a dos bootdisk from a windows machine) with Fdisk on it and boot into dos and pass /mbr to fdisk like such:

a:\> fdisk /mbr

and then run lilo agian.

if that didn't work then this might work, but I am sure there is a better way
 

Hullboy

Member
Apr 18, 2001
172
0
0
drag

thanks for replying, it's appreciated.

i know what the mbr is, I used it in the sentance:

can anyone explain what i need to do to get slackware booting from the mbr?

what i need to know is : is there a utility within linux that allows the configuration of the mbr or a boot floppy to supply a list of kernel options to boot from as specified in lilo.conf?

if this is not possible, what do I need to manually change to get this show on the road in the proper way (I'd rather not use a dos bootdisk)

at the minute even though i updated my lilo.conf in /etc/ and then ran lilo, I do not get an updated list of options on my boot floppy, and booting from the mbr is way out of synch.

apologies if this was not clear from my first post.

thanks again for any more replies..............
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Check where lilo is putting it boot record according the config file, it's probably set to write it to your root partition instead of the MBR. I havn't used lilo in a while so I don't remember the syntax.
 

Tiger

Platinum Member
Oct 9, 1999
2,312
0
0
In lilo.conf you have to add a stanza for each OS or distro of linux you want to boot.
If you want LILO installed on the MBR you need to edit lilo.conf to point to the MBR which in LILO speak is /dev/hda, which is the root of the first IDE drive. Everytime you edit lilo.conf you need to re-run /sbin/lilo for the changes to take effect.
 

Hullboy

Member
Apr 18, 2001
172
0
0
Tiger and nothinman, thanks - you were right on the money......

I had edited lilo.conf, but I hadn't really understood that /dev/hda1 referred to the first partition, /dev/hda2 for the second partition on the first master disk. I put my boot=/dev/hda1, but as I wanted to boot from the hard disk, what I needed was /dev/hda.

Now that I have changed this and re-run lilo, I get a kernel option per stanza, and I even get a fancy boot screen with colour

Thank you to everyone who came to my aid with this problem..........
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |