LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Lilo.conf when using Slackware and Debian (https://www.linuxquestions.org/questions/linux-general-1/lilo-conf-when-using-slackware-and-debian-332854/)

Menestrel 06-12-2005 04:53 PM

Lilo.conf when using Slackware and Debian
 
I can't seem to figure out what to write in lilo.conf in order to get both Debian and Slackware working

Here is the setup:

/dev/hda1 = /boot (For Slackware)
/dev/hda2 = WindowsXP
/dev/hda3 = / (For Slackware)
/dev/hda4 = Extended
/dev/hda5 = Linux Swap
/dev/hda6 = Data partition (raiserfs)
/dev/hda7 = Data partition (NTFS)
/dev/hda8 = / (For Debian)

My boot manager is lilo.
I consider Slackware my primary operating system.
What should I write in lilo.conf in order to be able to also boot in Debian ?

masonm 06-12-2005 07:26 PM

Well, since you're asking about your lilo.conf file, posting your current lilo.conf file might be of some help don't you think?

Menestrel 06-13-2005 01:08 AM

Here is my lilo.conf file


# LILO configuration file
#
# Start LILO global section
#append="hdd=ide-scsi root=/dev/hda3"
#pentru kernel 2.6
append="root=/dev/hda3"
boot = /dev/hda
#compact # faster, but won't work on all systems.
prompt
timeout = 150
default = Linux2.6.10

image = /boot/vmlinuz-ide-2.4.26
root = /dev/hda3
label = Linux2.4.26
read-only # Non-UMSDOS filesystems should be mounted read-only for checking

image = /boot/vmlinuz-ide-2.6.10
root = /dev/hda3
label = Linux2.6.10
initrd="/boot/initrd"
append="splash=silent"
vga=787
read-only

# pathetic tries to start Debian ....

#image = /boot/vmlinuz-debian
# root = /dev/hda8
# label = Debian
# initrd="/boot/initrd"
# append="splash=silent"
# vga=787
read-only

#other = /dev/hda8
# root = /dev/hda8
# label = Debian
# initrd="/boot/initrd"
# append="splash=silent"
# vga=787
# read-only

# Linux bootable partition config ends
# Windows bootable partition config begins
other = /dev/hda2
label = WindowsXP
table = /dev/hda
# Windows bootable partition config ends

masonm 06-13-2005 07:42 PM

Ok, that's a start. I'm assuming the Debian lines aren't commented out when you are trying to use this?

When you uncomment them, and then run lilo, do you get any error messages?

mdg 06-14-2005 12:50 AM

In Slackware:

Make a directory "debian" in /mnt

Add this to your (Slackware) lilo.conf:
Code:

image =/mnt/debian/boot/vmlinuz-debian
 root = /dev/hda8
 label = Debian
 initrd="/mnt/debian/boot/initrd"
 append="splash=silent"
 vga=787
read-only

Run "lilo" as root

I've used your examples for image name (vmlinuz-debian) and initrd name (initrd). Make sure theses are the actual names in /mnt/debian/boot

Menestrel 06-14-2005 04:53 PM

Thanks mdg, that did the trick :D


All times are GMT -5. The time now is 09:56 AM.