LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 11-23-2006, 03:47 AM   #1
vamsikatakam
LQ Newbie
 
Registered: Oct 2005
Location: Banagalore
Posts: 12

Rep: Reputation: 0
Changing from GRUB to LILO


Hi friends,
I started reading about Linux,started from the scratch...(Boot loader).After understanding abt GRUB and LILO, I want to know few things :
1) If i am having a dual OS system, and i find both GRUB and LILO
conf files are available, how do i confirm which one is in MBR?
2) How to view the Master boot record ?

Don't blame me for my silly questions, Please help me..........
 
Old 11-23-2006, 04:11 AM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
If I wasn't sure whether GRUB or LiLo was being used I would edit GRUB's menu.lst and change the name of one of the options, then reboot to see if the menu I was offered reflected the change I had made. For example, if one of the options was
title Fedora
change it to
title Fedoraora
It won't affect anything other than what GRUB displays at the GRUB screen when you reboot. If you edit LiLo's files it won't have any effect unless you run LiLo, so don't do that.
 
Old 11-23-2006, 04:47 AM   #3
vamsikatakam
LQ Newbie
 
Registered: Oct 2005
Location: Banagalore
Posts: 12

Original Poster
Rep: Reputation: 0
Dear Benton,
I have done that, and found that is GRUB only, not necessarily to do like that, even we can restart the system, and then while it asks for OS to be loaded, then we can see that it is GRUB(it gives options to edit,etc...)..
but my question, without doing that modification, can we find which is in MBR, or can we read what is there in MBR?????????
 
Old 11-23-2006, 05:02 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
You can copy your MBR to a file like this:
Code:
dd if=/dev/hda bs=512 count=1 of=my-MBR
assuming that your boot disk is hda (else change it accordingly). Then you can use "strings" to see what is your bootloader:
Code:
strings my-MBR|grep GRUB
 
Old 11-23-2006, 05:29 AM   #5
vamsikatakam
LQ Newbie
 
Registered: Oct 2005
Location: Banagalore
Posts: 12

Original Poster
Rep: Reputation: 0
Thankyou Bathroy,
I am able to copy into a file my_MBR , but that was not readable..how can i understand from that ???
 
Old 11-23-2006, 05:35 AM   #6
vamsikatakam
LQ Newbie
 
Registered: Oct 2005
Location: Banagalore
Posts: 12

Original Poster
Rep: Reputation: 0
One more thing is after copying into my-MBR
I have given the command strings my-MBR | grep GRUB it gave GRUB,
and also executed the command strings my-MBR|grep LILO
it did not give any LILO,
so can we confirm from this that the MBR contains GRUB.
 
Old 11-23-2006, 06:28 AM   #7
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
I am able to copy into a file my_MBR , but that was not readable
Of course it's not readable. It's a binary file (actually an image of your boot sector), that's why you have to use strings to find the type of bootloader you use.
 
Old 11-23-2006, 11:13 PM   #8
vamsikatakam
LQ Newbie
 
Registered: Oct 2005
Location: Banagalore
Posts: 12

Original Poster
Rep: Reputation: 0
Thanks Bathroy, I was able to see GRUB as my MBR.
 
Old 11-23-2006, 11:23 PM   #9
vamsikatakam
LQ Newbie
 
Registered: Oct 2005
Location: Banagalore
Posts: 12

Original Poster
Rep: Reputation: 0
Changing from GRUB to LILO

Hi please explain how can i change my MBR form GRUB to LILO. I am not having lilo.conf , so I copied lilo.conf from lilo.conf.anaconda and i also executed #lilo ..Even then GRUB is only there in my MBR , please assist me....
 
Old 11-24-2006, 02:05 AM   #10
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
You should edit your lilo.conf to define your boot disk, so lilo will be written to the mbr and overwrite grub. If your boot disk is /dev/hda then use something like:
Code:
boot = /dev/hda
at the top of lilo.conf. Also running:
Code:
lilo -v
will produce more verbose output to help you understand what's happening.

Regards
 
Old 11-24-2006, 06:37 AM   #11
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
I've merged to related threads. I have also moved this to Linux Software since its not specifically a server question.
 
Old 11-24-2006, 09:15 AM   #12
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
Not that we normally question peoples' reasons for wanting to do a particular thing, but why do you want to change (in my mind backwards) from GRUB to LILO?
 
Old 11-26-2006, 11:59 PM   #13
vamsikatakam
LQ Newbie
 
Registered: Oct 2005
Location: Banagalore
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by archtoad6
why do you want to change (in my mind backwards) from GRUB to LILO?
As i said i am new to this Linux, I wnat to experience everything, so i wanted to test how it will be with LILO , so requesting you tell how to change from GRUB to LILO.
 
Old 11-27-2006, 10:20 AM   #14
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
Have you read the LILO man page yet?

What searches have you done:
  1. Google?
  2. LQ?
  3. Other?
 
  


Reply



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
Changing GRUB to LILO Kramer Linux - Software 6 01-19-2006 03:32 PM
changing grub -> lilo tushar123 Linux - Newbie 1 10-19-2004 12:08 PM
changing GRUB to LILO fragmentI00I0I Linux - Software 2 10-18-2003 11:56 AM
Changing from LILO to GRUB?? TMMO Linux - Newbie 3 08-10-2003 04:47 PM
changing from LILO to GRUB Fingel Linux - General 4 03-09-2003 10:18 PM

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

All times are GMT -5. The time now is 04:10 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