LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 11-18-2012, 02:36 AM   #1
vitalstrike82
Member
 
Registered: Oct 2007
Location: Singapore
Distribution: OpenSuse, Slackware, Redhat
Posts: 315

Rep: Reputation: 40
Chainloading questions and about LILO and GRUB


Hi all,

firstly thanks for reading my post.

My question is about booting of 2 linux distros in my machine.
I have check that i have 2 loaders in my /dev/sda, LILO and GRUB. The commands as shown below shows that i have 2 loaders in MBR

Code:
[root@localhost rhCM]# dd if=/dev/sda bs=512 count=1 2>&1 | grep GRUB
Binary file (standard input) matches
[root@localhost rhCM]# dd if=/dev/sda bs=512 count=1 2>&1 | grep LILO
Binary file (standard input) matches
In fact i have no idea how boot loaders works, or how it should be install

I install slackware using lilo into my system first.
Recently i install rhel 6 into my system as well. It is using grub. I thought that installing the GRUB into MBR will override LILO, but i seems it is not. Please correct me if i'm wrong. SO this is my first question, does this way of installing override the LILO in MBR, or it simply never over-write, create a GRUB and there will be 2 loaders in MBR

So after googling for past 3 days, i use the method of chainloading using the rhel grub to boot slackware as well but when i try to boot slackware, it return error 13: Invalid or unsupported format.

Therefore my 2nd question is does chainloading requires both booting to be using the same loader, say GRUB for 2 linux distros.
Using different loaders will not work for for my case slackware LILO and RHEL GRUB.


Thanks for reading my post
 
Old 11-18-2012, 03:12 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 11,801

Rep: Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923
Quote:
Originally Posted by vitalstrike82 View Post
I have check that i have 2 loaders in my /dev/sda, LILO and GRUB. The commands as shown below shows that i have 2 loaders in MBR
Noooo ...
You have checked that there may have been (at least) 2 boot-loaders at some time. I'm surprised that both strings still remain, but grub only writes what it needs - it doesn't overwrite the entire area it has to write code into.
I can't comment on lilo as it's been many years since I used it.
Quote:
Recently i install rhel 6 into my system as well. It is using grub. I thought that installing the GRUB into MBR will override LILO, but i seems it is not. Please correct me if i'm wrong. SO this is my first question, does this way of installing override the LILO in MBR,
Yes.
Quote:
Therefore my 2nd question is does chainloading requires both booting to be using the same loader, say GRUB for 2 linux distros.
No. However it does require that the target was installed into the partition boot record rather than the MBR so it has the code to support this. Simple answer is to chroot into Slack and re-install lilo to the (Slack) root partition. Then chainloading from RHEL will work as you require.
 
1 members found this post helpful.
Old 11-18-2012, 07:16 AM   #3
vitalstrike82
Member
 
Registered: Oct 2007
Location: Singapore
Distribution: OpenSuse, Slackware, Redhat
Posts: 315

Original Poster
Rep: Reputation: 40
Hi

Installing the LILO for slackware into the slackware root partition instead of the MBR really solves my problem
Current MBR is from RH GRUB and it is installed after slackware.

Thanks for the advice.
 
  


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 On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Chainloading Grub from Lilo Unr3a164 Slackware 5 06-04-2008 10:35 AM
grub and lilo chainloading rienqunuser Linux - Newbie 5 02-13-2008 05:59 PM
Chainloading from grub to LILO AtomicAmish Slackware - Installation 2 08-24-2007 10:47 PM
chainloading lilo mimithebrain Linux - Software 7 05-18-2005 05:31 PM


All times are GMT -5. The time now is 12:52 PM.

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