LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-04-2009, 05:12 PM   #1
Innervision
Member
 
Registered: Jun 2009
Posts: 75

Rep: Reputation: 16
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.
 
Old 06-04-2009, 05:31 PM   #2
Uncle_Theodore
Member
 
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 71
Quote:
Originally Posted by Innervision View Post
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.
 
Old 06-04-2009, 05:33 PM   #3
Innervision
Member
 
Registered: Jun 2009
Posts: 75

Original Poster
Rep: Reputation: 16
The OS is actually Kalyway (OS X 10.5.2). I haven't found anything stating how to add Kalyway to the LILO.

Last edited by Innervision; 06-04-2009 at 05:39 PM.
 
Old 06-04-2009, 05:45 PM   #4
Uncle_Theodore
Member
 
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 71
You got me here. I know nothing about this OS. Try an analog to Windows setup.
 
Old 06-04-2009, 05:48 PM   #5
Innervision
Member
 
Registered: Jun 2009
Posts: 75

Original Poster
Rep: Reputation: 16
What do you mean by analog to Windows setup?
 
Old 06-04-2009, 05:51 PM   #6
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
I assume kalyway is a Linux distro?
If so, extract the DVD and list the isolinux.cfg?
 
Old 06-04-2009, 05:57 PM   #7
Innervision
Member
 
Registered: Jun 2009
Posts: 75

Original Poster
Rep: Reputation: 16
Kalyway is a version of Mac OS X that has been modified to work on x86 processors.
 
Old 06-04-2009, 05:59 PM   #8
Uncle_Theodore
Member
 
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 71
Quote:
Originally Posted by Innervision View Post
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...
 
Old 06-04-2009, 06:03 PM   #9
Innervision
Member
 
Registered: Jun 2009
Posts: 75

Original Poster
Rep: Reputation: 16
What is that "table" field? Should it be sdb3, or sdb?
 
Old 06-04-2009, 06:07 PM   #10
Uncle_Theodore
Member
 
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 71
Quote:
Originally Posted by Innervision View Post
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.
 
Old 06-04-2009, 06:13 PM   #11
Innervision
Member
 
Registered: Jun 2009
Posts: 75

Original Poster
Rep: Reputation: 16
Hmm, that didn't seem to do it. It just gets stuck at "Loading Kalyway..."

Last edited by Innervision; 06-04-2009 at 07:17 PM.
 
Old 06-04-2009, 09:45 PM   #12
Innervision
Member
 
Registered: Jun 2009
Posts: 75

Original Poster
Rep: Reputation: 16
Any other ideas to get this to boot? Anyone with experience using Kalyway?
 
Old 06-04-2009, 10:31 PM   #13
Uncle_Theodore
Member
 
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 71
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.
 
Old 06-05-2009, 09:39 AM   #14
Innervision
Member
 
Registered: Jun 2009
Posts: 75

Original Poster
Rep: Reputation: 16
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)
 
Old 06-05-2009, 10:17 AM   #15
Uncle_Theodore
Member
 
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 71
Quote:
Originally Posted by Innervision View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to edit lilo.conf in windows eikeland Linux - Software 8 10-21-2007 09:01 AM
how to edit lilo in debian ? jabka Linux - General 4 07-05-2006 01:09 AM
Need to edit LILO PapaSmurf88 Mandriva 14 05-19-2005 01:10 PM
How to edit Lilo.conf? jmr0311 Linux - Newbie 17 07-07-2004 12:23 AM
Can I edit the LILO setup? Wraith2288 Linux - Software 2 06-23-2003 11:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration