LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to edit the LILO (https://www.linuxquestions.org/questions/linux-software-2/how-to-edit-the-lilo-730752/)

Innervision 06-04-2009 05:12 PM

How to edit the LILO
 
Hey guys,

At the time of my Slackware 12.2 installation, I set up my LILO to boot two operating systems: Slackware and Vista.

Since then, I have added a third OS to my sdb3 partition. How would I edit my LILO to display and load my new OS? Right now, I can't access it at all.

Uncle_Theodore 06-04-2009 05:31 PM

Quote:

Originally Posted by Innervision (Post 3563388)
Hey guys,

At the time of my Slackware 12.2 installation, I set up my LILO to boot two operating systems: Slackware and Vista.

Since then, I have added a third OS to my sdb3 partition. How would I edit my LILO to display and load my new OS? Right now, I can't access it at all.

You need to edit your /etc/lilo.conf file to include your new OS and run the
lilo
command from the terminal, as root.

The way you edit the file depends on the type of OS you're adding, and on the way it boots. If it's one of the Linux distros, you need to
mount its partition
write an entry similar to the one that boots your current Linux, that is, give the path to the kernel, the initrd image, indicate the root partition etc.

If it's Windows or something that has its own loader at the beginning of /dev/sdb3, then it should look similar to your current Windows entry.

Innervision 06-04-2009 05:33 PM

The OS is actually Kalyway (OS X 10.5.2). I haven't found anything stating how to add Kalyway to the LILO.

Uncle_Theodore 06-04-2009 05:45 PM

You got me here. :) I know nothing about this OS. Try an analog to Windows setup.

Innervision 06-04-2009 05:48 PM

What do you mean by analog to Windows setup?

linus72 06-04-2009 05:51 PM

I assume kalyway is a Linux distro?
If so, extract the DVD and list the isolinux.cfg?

Innervision 06-04-2009 05:57 PM

Kalyway is a version of Mac OS X that has been modified to work on x86 processors.

Uncle_Theodore 06-04-2009 05:59 PM

Quote:

Originally Posted by Innervision (Post 3563419)
What do you mean by analog to Windows setup?

Something like this

other = /dev/sdb3
label = Kalyway
table = /dev/sdb

No, linus72, Kalyway is not a Linux distro. It's something like a MacOS OS. I'm not sure about its legality and have no idea how the OP managed to install it on a PC, but anyways... ;)

Innervision 06-04-2009 06:03 PM

What is that "table" field? Should it be sdb3, or sdb?

Uncle_Theodore 06-04-2009 06:07 PM

Quote:

Originally Posted by Innervision (Post 3563436)
What is that "table" field? Should it be sdb3, or sdb?

It should be /dev/sdb
It's the device that contains the partition table for the disk with your OS.

Innervision 06-04-2009 06:13 PM

Hmm, that didn't seem to do it. It just gets stuck at "Loading Kalyway..."

Innervision 06-04-2009 09:45 PM

Any other ideas to get this to boot? Anyone with experience using Kalyway?

Uncle_Theodore 06-04-2009 10:31 PM

Is your /dev/sdb3 active (bootable)? You can set the bootable flag with the cfdisk command. Also, you might try to put the

master-boot

flag in lilo.conf for it. Like this

other=/dev/sdb3
label=Kalyway
table=/dev/sdb
master-boot

Don't forget to run lilo after making changes to /etc/lilo.conf.

Everywhere in Google people dual-boot this system with GRUB, and the options are exactly the same as for booting Windows.

That's the best I can do. :)

Innervision 06-05-2009 09:39 AM

What does "master-boot" do exactly?
Here are the stats for the partition it's on:
Name: sdb5
Flags: Boot
Partition type: Logical
FS Type: Unknown (AF)

Uncle_Theodore 06-05-2009 10:17 AM

Quote:

Originally Posted by Innervision (Post 3564209)
What does "master-boot" do exactly?
Here are the stats for the partition it's on:
Name: sdb5
Flags: Boot
Partition type: Logical
FS Type: Unknown (AF)

From man lilo.conf:

Quote:

master-boot
This flag (LILO version 22.5) indicates a DOS/Windows/OS2 or
other system which will only boot from BIOS device 0x80, the
"C:" drive, or BIOS device 0, the A: drive. When this flag is
specified, if this drive is not assigned device code 0x80 or 0
by the BIOS, then the chain loader will dynamically swap the
device code actually assigned with device code 0x80 or 0 to make
this drive appear to be the first hard or floppy drive, "C:" or
"A:".
I thought you said before your system was on sdb3, a primary partition. Probably that's why the "windows-like" setup didn't work. I think for MacOS-type systems, the root partition should be primary.


All times are GMT -5. The time now is 01:14 AM.