Linux - NewbieThis 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!
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.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
First of all LILO is a boot loader and its config file resides under /etc/lilo.conf and not grub.conf.
here is the default lilo config file:
boot=/dev/had # should points to the MBR or first hard disk
map=/boot/map # has boot map, do not mess with this
install=/boot/boot.b # has a bootstrap file, do not mess with this
prompt # prompt to choose between available kernel images
default=Linux # default OS to be used
image=/boot/vmlinuz-2.4.2-2 # image section-first line contains path to Linux kernel image
label=Linux # label for OS type
root=/dev/hda6 # path for OS installation directory
initrd=/boot/initrd-2.4.2-2.img # path for initrd image
you can add other OS with:
other=/some/path/to/kernel/image # Image section for other kernel's use only if required
save and exit.
NOTE: do not forget to apply changes afte editing the lilo.conf file.
run as a superuser or root:
output should be something like:
Added linux *
EDIT: you have to strictly follow the comments I mentioned inline with the config file.
Yes, lilo and grub are both boot loaders, you can select anyone, but you cannot mix them and has no real meaning to boot one of them with the other one (although you can install both of them and switch between them - forth and back, but that will not solve your problem)
The problem is that Fedora (specifically) will not install grub2 anywhere but the MBR (you have to force it, and doing so is not something supported). so finding that sda8 doesn't have a valid bootsector is not a surprise.
I know it's redundant and more work than it's worth, but I'd still like to be able to go from lilo to grub, if only to learn more about the two.
When I tried to put
other = /dev/sda8
label = <whatever>
into lilo.conf, it complained and said /dev/sda8 had no valid bootsector.
Yes that error is correct, because in that particular section if you have seen my post, I clearly mentioned to give a path to the image file or a boot sector should be given since /dev/sda8 is your grub location and not a valid boot sector for lilo it ends up with that message.
Do I need to point lilo to the actual grub.conf on sda8?
well I will again suggest to go proper way and don't try to try a hack into anything until you know it completely.
The current scenario is you don't exactly know how a boot loader works and you are trying to do experiments on it. Better to get the hands on first.