SlackwareThis Forum is for the discussion of Slackware Linux.
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.
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).
# Boot up Linux by default.
Thinking this might make Debian the default, and only, OS, I commented the line out with a "#", but to no avail.
# 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.
boot = /dev/disk/by-id/ata-ST1000LM024_HN-M101MBB_S2U5J9FD225463
# Specifies the device that should be mounted as root. (`/')
root = "UUID=60ef56bd-82f4-4ab3-b241-08391b626ae4"
# This option may be needed for some software RAID installs.
# 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.
# 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
# Specifies the location of the map file
# 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)'.
# Specifies the number of deciseconds (0.1 seconds) LILO should
# wait before booting the first image.
# 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'.
# Specifies the VGA text mode at boot time. (normal, extended, ask, <mode>)
# 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.
# If you used a serial console to install Debian, this option should be
# enabled by default.
# Boot up Linux by default.
# 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.
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...
mount /dev/sda3 /mnt/swtmp/
... and your Debian lilo.conf must be something like this (with your own paths of course):
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.
What I used previously, and it worked, was
mount /dev/sda3 /mnt/sda3
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.
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).