SlackwareThis Forum is for the discussion of Slackware Linux.
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.
I have been booting Arch with a Grub floppy, but the floppy died. So now I'm trying to add Arch to the Slack lilo boot floppy. But, when I run "#lilo -b /dev/fd0" I always get the following message:
root@lightstar etc]# lilo -b /dev/fd0
Ignoring entry 'boot'
Warning: boot record relocation beyond BPB is necessary: /dev/fd0
Warning: The boot sector and map file are on different disks.
Added slack-2.6.11.11 * Fatal: open /boot/vmlinuz26: No such file or directory
root@lightstar etc]#
(I always get those two Warning messages when I make a lilo boot floppy, but it still works. So that isn't the problem. The problem is the Fatal message.)
Here's the contents of my lilo.conf file:
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
menu-title=" Jerry's Computer "
boot = /dev/fd0
#boot = /dev/hda
#append="hdd=ide-scsi"
append="hdd=ide-cd"
install=/dev/fd0
#install=/dev/hda
#compact # faster, but won't work on all systems.
prompt
timeout = 50
default = slack-2.6.11.11
# VESA framebuffer console @ 1024x768x256
#vga = 773
# Normal VGA console
#vga = normal
# VESA framebuffer console @ 1024x768x64k
vga=791
# VESA framebuffer console @ 1024x768x32k
# vga=790
# VESA framebuffer console @ 1024x768x256
# vga=773
# VESA framebuffer console @ 800x600x64k
# vga=788
# VESA framebuffer console @ 800x600x32k
# vga=787
# VESA framebuffer console @ 800x600x256
# vga=771
# VESA framebuffer console @ 640x480x64k
# vga=785
# VESA framebuffer console @ 640x480x32k
# vga=784
# VESA framebuffer console @ 640x480x256
# vga=769
# ramdisk = 0 # paranoia setting
# End LILO global section
lilo is looking at the /boot on the partition currently mounted as /, not the /boot on /dev/hdb8. It doesn't see it because it isn't looking where you expect it to look.
If you want a quick fix, you could copy vmlinux26 from the /boot on /dev/hdb8 to the current /boot, and then rerun lilo. Or, you could mount /dev/hdb8 somewhere and change the entry in lilo.conf from /boot/vmlinux26 to /whereever/you/mount/it/boot/vmlinux26.
That's what I was afraid of. I thought lilo could boot another linux installation on a separate hard drive, but I guess not. I thought that because of this entry in the lilo.conf man page:
lilo CAN boot an installation on a seperate drive.
lilo copies your kernel images within itself for booting, so that lilo does not have to mount each corresponding partition - it simply runs the kernel image that it has on hand. This is why you must rerun lilo after building a new kernel.
Notice that the kernel image for tamu is located in /tamu/vmlinuz instead of / like all the other images. In that example, /dev/hdb2 is probably mounted on /tamu.
All you need to do to configure lilo to boot the way you want, is to mount your other partition anywhere, edit your lilo.conf accordingly, and rerun lilo.
Thank you zhangmaike!
I was having trouble making lilo see my gentoo partition. Working 100% now and booting Slackware, Gentoo, FreeBSD and (spit) XP (for cell phone software)... all from Slack and lilo, thanks so much!
lilo CAN boot an installation on a seperate drive.
lilo copies your kernel images within itself for booting, so that lilo does not have to mount each corresponding partition - it simply runs the kernel image that it has on hand. This is why you must rerun lilo after building a new kernel.
lilo only registers where the kernel is on disk,
(cylinder, head, sector) and uses that data to find and load the kernel.
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705
Rep:
Quote:
Originally Posted by ckamheng
what is the realtionship between /etc/fstab and lilo?
i noticed that if the /etc/fstab entry wrong, lilo won't be able to install .
Thanks.
If you want to manage multiple Linux distros with Lilo and without having a common /boot (which is really best to avoid) then you don't need to put the other /boot paths in your fstab. All you have to do is mount the volume before you run Lilo.
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705
Rep:
Quote:
Originally Posted by egag
what " /etc/fstab entry " are you talking about ?
i don't think lilo has anything to do with /etc/fstab.
egag
I think he's asking about why Lilo can't be configured in a multi-boot scenario if it can't find one of his kernels. His solution (see earlier post) seemed to be to add the mount point to his fstab instead of just issuing a mount command. The answer is like zhangmaike and the other guys have said (and at the bottom of the thread I pointed-to, for anyone who wants to see an example.)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.