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.
Well, I've got questions concerning the slackware 8.1 install. More specifically, about lilo.
I've got 3 hard drives on my computer, and I'm using the second one to install linux on (hdb) and, at the moment, have got 4 partitions on it. 1 NTFS partition, 2 ext3 partitions, and one linux swap partition. Now, I've installed Slackware to the two ext3 partitions. However, when I go to configure lilo, it does not work and, in fact, returns an error.
Now, I was running Mandrake 9.0 before slackware. Before installing slackware, I got rid of the partitions that contained Mandrake and remade them. I then installed slackware onto the new partitions. However, the automatic lilo configuration fails (I have tried installing lilo into the root directory and into the master boot record, both to no avail) and whenever I try to boot from the hard disk, it brings up Mandrake's lilo with the options for mandrake and XP. Now, I thought I had completely erased Mandrake, but some vestige of it still manages to live on somehow (albeit just barely). Not that thats really the issue, though.
In any case, I need to figure out a way to get lilo working and boot both Windows XP and Slackware. Any help in this area would be most appreciated.
Are you sure that you installed lilo to the master boot record of the drive that is actually booting? You stated the Slack install was on hdb, but if hda is actually booting then it is the hda master boot record that still has the XP/Mandy options. Many BIOS allow booting only from the IDE primary master device. There a few though that are configurable to the other three drives.
Ah, that could be it. In that case, how would I go about installing lilo to the master boot record of hda? In the installation thing, it didn't give me a choice as to which one I wanted to install it to.
Edit the /etc/lilo.conf file and change the line that starts with "boot =". It probably has /dev/hdb at present, change it to /dev/hda. Make sure there is an image section for your XP partition. After your changes are complete the run "lilo" to write the changes to disk.
Depending on how you boot/mount the partition, if other than the root partition. You will probably need to specify the root level directory using the "-r" option. If you boot the Slack CD and then mount your partition under the /mnt directory, then like this:
lilo -r /mnt
You should then able to unmount the drive and reboot.
image = /boot/vmlinuz
root = /dev/hdb5
label = Linux
read-only
other = /dev/hda1
label = OS2
table = /dev/hda
other = /dev/hda1
label = NT
table = /dev/hda
Those last 3 lines I copied from Mandrake's lilo.conf file (which I backed up before erasing the partitions) because there didn't seem to be anything in the config file for windows. The way my hard drives/OSes are set up is like this:
I've got 3 hard drives.
hda is divided into 2 partitions. Windows XP is installed on hda1
hdb is divided into 4 partitions. The primary partition is NTFS and I use it for windows. The next two partitions (hdb5 and hdb6) are where linux is installed. The root directory is on hdb5. hdb7 is just a swap partition.
Now, when I erased Mandrake, I did not uninstall Mandrake's lilo. Perhaps if I were able to get it off the master boot record of hda and then try installing lilo from slackware it would work?
I do not think you need to erase the old mbr, lilo should overwrite it.
The two warning messages are not a problem either. But the last line about a partiton is not found would stop it.
The last three lines duplicate the preceeding three lines except for the label text for the boot menu.
I am not familiar with "change-rules" or "reset". However the man page states that the "reset" erases the normal rules so that new one can be defined. Try remarking these two lines out and see what happens.
And the "vga=733" is also OK I think. Provided that is a valid number in the listing.
My notebook uses vga=791 for 1024x768 and 64K colors. vga=773 is for 1024X768 at 256 colors. This is used to specify the framebuffer mode if desired. If not then "vga = normal" should be used.
Ah, success! Before I deleted Mandrake, I copied its lilo.conf file to one of my other partitions. So, I simply ended up splicing some lines from that into the lilo.conf file that slack was using and then commenting/replacing any lines that gave errors. Well, thanks for the help!
Hey The Madd
If possible could you post that lilo.conf with comments added to what you had to do or possible post both original lilo.confs's and the new one( would be able to see exactlly what you had done that way). The reason I ask is on freaky incedents like this I keep a logbook in case I ever come across the same problem and then I don't have to go hunting or asking later down the road. If your not that is kewl and understandable.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.