LinuxQuestions.org
Register a domain and help support LQ
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 05-15-2005, 06:20 PM   #1
mimithebrain
Member
 
Registered: Nov 2003
Location: ~
Distribution: Ubuntu 10.04
Posts: 843
Blog Entries: 1

Rep: Reputation: 30
chainloading lilo


how do I chainload using lilo?

chainloading a windows partition or a partition with linux and lilo or grub as bootloader in the partition itself...


thanks...
 
Old 05-15-2005, 08:03 PM   #2
killerbob
Member
 
Registered: Oct 2004
Location: Ottawa, ON
Distribution: Slackware
Posts: 662

Rep: Reputation: 30
wha?

yes, LILO and GRUB both support booting a Windows partition. The autoconfig for lilo (liloconfig) will set it up automatically. I don't use grub, but I'd be surprised if it didn't also automatically support Windows.
 
Old 05-16-2005, 10:13 AM   #3
mimithebrain
Member
 
Registered: Nov 2003
Location: ~
Distribution: Ubuntu 10.04
Posts: 843
Blog Entries: 1

Original Poster
Rep: Reputation: 30
hehe...like ur signature .

chainloading refers to loading of another bootloader. example, windows bootloader at the MBR, and lilo at the linux partition (just an example, not my config) On the windows bootloader, you choose linux, that loads lilo, which finally boots the kernel and initrd.img at the end.

that's chainloading... (correct me anyone if I'm wrong, but this seams pretty acurate)

and I think I found a solution to my problem anyway

oh, found the autoconfig command interesting
 
Old 05-16-2005, 07:43 PM   #4
teckk
Senior Member
 
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 1,751

Rep: Reputation: 188Reputation: 188
If I understand you right, something like this, and Lilo will boot both. Install windows first on /hda1. Windows demands to be on a primary.
Then install Linux with Lilo installed to MBR. / could be on /dev/hda2, swap could be /hda3 ect. While you are configuring it let Lilo add an entry for windows too. When you boot Linux it will boot it, when you choose windows it will boot to ntloader.

#Linux bootable partition
image = /boot/vmlinuz
root = /dev/hda2
label = Linux
append = "acpi=on"

#Windows Boot Section
other = /dev/hda1
label = WindowsXP
table = /dev/hda

Grub will be something like this for windows

title Windows XP Professional
rootnoverify (hd0,0)
chainloader +1

Put your own configs in.
 
Old 05-17-2005, 01:47 PM   #5
mimithebrain
Member
 
Registered: Nov 2003
Location: ~
Distribution: Ubuntu 10.04
Posts: 843
Blog Entries: 1

Original Poster
Rep: Reputation: 30
that's correct.

now the second thing I was wondering, is can you make lilo chainload another lilo or grub bootloader on a another partition?
 
Old 05-17-2005, 07:18 PM   #6
teckk
Senior Member
 
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 1,751

Rep: Reputation: 188Reputation: 188
You can have multiple distros of Linux on One drive partitioned up yes.

Use Lilo or grub to boot to each partition/image. I have used Lilo to boot windows, BSD, Linux.

I've used grub to boot Linux, windows, BSD. Part of Lilo goes on the partition and part on the MBR, if that's how you installed it. Lilo does not present a problem. Windows will if you install it 2nd or of you mess up ntloader.
fixboot and fixmbr sometimes are. worthless.
 
Old 05-18-2005, 04:49 PM   #7
mimithebrain
Member
 
Registered: Nov 2003
Location: ~
Distribution: Ubuntu 10.04
Posts: 843
Blog Entries: 1

Original Poster
Rep: Reputation: 30
Wink how with linux ?

Quote:
Originally posted by teckk
You can have multiple distros of Linux on One drive partitioned up yes.

Use Lilo or grub to boot to each partition/image. I have used Lilo to boot windows, BSD, Linux.

I've used grub to boot Linux, windows, BSD. Part of Lilo goes on the partition and part on the MBR, if that's how you installed it. Lilo does not present a problem. Windows will if you install it 2nd or of you mess up ntloader.
fixboot and fixmbr sometimes are. worthless.
I am able to chainload windows (or ntloader). but can you chainload lilo or grub the same way you chainload ntloader?
 
Old 05-18-2005, 05:31 PM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,045

Rep: Reputation: 970Reputation: 970Reputation: 970Reputation: 970Reputation: 970Reputation: 970Reputation: 970Reputation: 970
Re: how with linux ?

Quote:
Originally posted by mimithebrain
I am able to chainload windows (or ntloader). but can you chainload lilo or grub the same way you chainload ntloader?
Yes, but it'll launch the menu for each - maintainance nightmare.
I prefer to have just one, and have one config file point to each kernel image - but everyone has their own preference on how this should be done.
IMHO grub handles this better - updates to the config are independent of the need to continually run the /sbin/lilo, and/or continually copy the boot sector record back to the Windows boot partition (if using ntldr as the initial loader).
 
  


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
DISCUSSION: Chainloading in Linux saikee LinuxAnswers Discussion 7 07-09-2010 05:16 PM
Grub difficulty chainloading 2000 and XP michapma Linux - General 2 05-17-2005 12:41 AM
dualboot grub chainloading copy and paste no success amarillo Linux - Distributions 4 02-23-2005 08:52 PM
Lilo lost, Install disk failing to restore Lilo on dual boot? Dobie Linux - Newbie 2 05-05-2004 05:00 PM
grub and second linux, chainloading lacrimae Linux - Software 4 07-15-2002 09:17 PM


All times are GMT -5. The time now is 02:16 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration