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 am asking this question here, because Slackware users are familiar with LILO. I am currently dual-booting Debian and Slackware, with LILO on the Debian partition. I re-installed Debian, including LILO. Previously, this configuration booted both systems.
The lilo command results in Slackware being "added," but when booting, an option of systems to boot is not presented. It only displays "Linux" (Debian).
Code:
# Boot up Linux by default.
#
default=Linux
Thinking this might make Debian the default, and only, OS, I commented the line out with a "#", but to no avail.
Code:
# You have the choice between: text, bmp, and menu
I have tried install=menu and install=text, but neither presents a menu of installed systems, as was the case previously. LILO knows Slackware is there (on sda3), but does not include it at boot time. What makes it difficult to figure out what I am missing is that the previous well-working set-up and the current mess are both with Debian Wheezy and LILO. If it helps, here is my entire lilo.conf.
Code:
#boot=/dev/sda
boot = /dev/disk/by-id/ata-ST1000LM024_HN-M101MBB_S2U5J9FD225463
# Specifies the device that should be mounted as root. (`/')
#
#root=/dev/sda1
root = "UUID=60ef56bd-82f4-4ab3-b241-08391b626ae4"
# This option may be needed for some software RAID installs.
#
# raid-extra-boot=mbr-only
# Enable map compaction:
# Tries to merge read requests for adjacent sectors into a single
# read request. This drastically reduces load time and keeps the
# map smaller. Using `compact' is especially recommended when
# booting from a floppy disk. It is disabled here by default
# because it doesn't always work.
#
compact
# Installs the specified file as the new boot sector
# You have the choice between: text, bmp, and menu
# Look in lilo.conf(5) manpage for details
#
install=menu
# Specifies the location of the map file
#
map=/boot/map
# You can set a password here, and uncomment the `restricted' lines
# in the image definitions below to make it so that a password must
# be typed to boot anything but a default configuration. If a
# command line is given, other than one specified by an `append'
# statement in `lilo.conf', the password will be required, but a
# standard default boot will not require one.
#
# This will, for instance, prevent anyone with access to the
# console from booting with something like `Linux init=/bin/sh',
# and thus becoming `root' without proper authorization.
#
# Note that if you really need this type of security, you will
# likely also want to use `install-mbr' to reconfigure the MBR
# program, as well as set up your BIOS to disallow booting from
# removable disk or CD-ROM, then put a password on getting into the
# BIOS configuration as well. Please RTFM `install-mbr(8)'.
#
# password=tatercounter2000
# Specifies the number of deciseconds (0.1 seconds) LILO should
# wait before booting the first image.
#
delay=20
# You can put a customized boot message up if you like. If you use
# `prompt', and this computer may need to reboot unattended, you
# must specify a `timeout', or it will sit there forever waiting
# for a keypress. `single-key' goes with the `alias' lines in the
# `image' configurations below. eg: You can press `1' to boot
# `Linux', `2' to boot `LinuxOLD', if you uncomment the `alias'.
#
# message=/boot/bootmess.txt
# prompt
# delay=100
# timeout=100
# Specifies the VGA text mode at boot time. (normal, extended, ask, <mode>)
#
# vga=ask
# vga=9
#
# Kernel command line options that apply to all installed images go
# here. See: The `boot-prompt-HOWTO' and `kernel-parameters.txt' in
# the Linux kernel `Documentation' directory.
#
# append=""
# If you used a serial console to install Debian, this option should be
# enabled by default.
# serial=
#
# Boot up Linux by default.
#
default=Linux
image=/vmlinuz
label=Linux
read-only
# restricted
# alias=1
initrd=/initrd.img
image=/vmlinuz.old
label=LinuxOLD
read-only
optional
# restricted
# alias=2
initrd=/initrd.img.old
# If you have another OS on this machine to boot, you can uncomment the
# following lines, changing the device name on the `other' line to
# where your other OS' partition is.
#
image=/vmlinuz
root=/dev/sda3
label="Slackware"
read-only
Debian (sda1) is in fstab, which is probably why I can boot it. The slackware partition (sda3) is not, but I am sure it was not in Debian's fstab before the re-installation.
First, it sounds to me as if you have not run lilo after editing the lilo.conf file.
Next, your lilo.conf (as shown above) will try to start Slackware with the Debian kernel (if I have read it correctly).
Remeber that the kernels for ALL listed linuxes must be mounted and visible to lilo at the time when you run lilo. so, for example, if Slackware is on sda3 and Debian is on sda1, and you are writing to MBR (sda), while running Debian then...
Code:
mkdir /mnt/swtmp
mount /dev/sda3 /mnt/swtmp/
... and your Debian lilo.conf must be something like this (with your own paths of course):
Again, just remember that the kernel (and initrd if any) must be mounted and reachable at the locations given in lilo.conf when you run lilo - not necessarily their boot time locations.
It has definitely been run. Several times. And it did report "Added Slackware," which is exactly what happened when I had both systems working fine.
Code:
mkdir /mnt/swtmp
What I used previously, and it worked, was
Code:
mkdir /mnt/sda3
mount /dev/sda3 /mnt/sda3
lilo
umount /dev/dsa3
I shall try your suggestions later today and let you know if it works.
In that case, it probably means that lilo is not installing to the partition that is actually booting, or where you think it is, hence Slackware is reported when lilo is run, but does not appear in the list at boot time.
I have confused myself this way before too!
So double check your UUIDs and partition names and make sure they are where you think they are. And if you have multiple disks in the system be sure which one is being booted by the BIOS and that the order is not different than the runtime order.
And to say it one more time, be sure that the paths in lilo are all mounted and correspond to the correct installations at the time lilo is run. fstabs will probably be correct unless the drive order is changing.
Running lilo with Slackware listed as /boot returns a "No such file or directory" message. So apparently you are correct about a problem with where LILO is, which is strange as Hell, since I did not choose its location. The Debian installer did.
I shall post more information after I look around some more.
I might try that, but the most likely result will be screwing it up and either having the MBR on Slackware's partition or not being able to boot either system. Unfortunately, I am quite capable of making such a blunder.
I used that method when I had a Slack + Debian dual-boot. Slack on first, lilo in the MBR, swap, then Debian with its GRUB in /dev/sda3. Worked flawlessly.
But Debian is my main system and I did not install a boot-loader with Slackware. I occasionally dual-boot to test other systems. I like to have one boot-loader, so obviously I put it on the main system and add the other system to it.
I used to try other distros, dual-booting with Slackware as my main system, but I always installed the other distros' boot-loaders in their root. From what I've read, it seemed easier than the single boot-loader option.
I just fired up gparted and according to it LILO is in the right place. sda1 is the boot partition, so LILO can only be there. There are only two bootable partitions: sda1 (Debian) and sda3 (Slackware).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.