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!
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.
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.
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:
Code:
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
timeout=50
message=/boot/message
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
read-only
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:
Code:
other=/some/path/to/kernel/image # Image section for other kernel's use only if required
lable=some_os
[parameters]
root=/some/path/to/installation/dir
save and exit.
NOTE: do not forget to apply changes afte editing the lilo.conf file.
run as a superuser or root:
Code:
/sbin/lilo
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
Code:
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.
Quote:
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.
dluco
You say grub.conf is on /dev/sda8, but is grub itself actually installed there? If it is, the method I mentioned in post #4 should work, I've used it many times.
Although the original purpose of this thread (booting lilo to grub) does not correspond with the apparent solution/compromise (booting grub to lilo), I think I'll mark this as solved.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.