LinuxQuestions.org
Help answer threads with 0 replies.
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 06-09-2007, 01:54 PM   #1
kirtikjr
Member
 
Registered: Apr 2007
Location: banglore
Distribution: RedHat EL v4
Posts: 35

Rep: Reputation: 16
Whats my bootloader ??


Without rebooting the machine, how can one know about the bootloader installed ?? and lilo.conf and grub.conf are both present..(supposing i have both istalled grub and lilo at different times)..plz F1..
 
Old 06-09-2007, 02:05 PM   #2
dawkcid
Member
 
Registered: May 2007
Location: UK
Distribution: LFS,Slackware,Slamd64,NetBSD
Posts: 102

Rep: Reputation: 15
Without rebooting? Try this (as root):

Code:
dd if=/dev/hda bs=512 count=1 | hexdump -C| grep GRUB
(Obviously replace hda with the appropriate drive, if necessary.)

If you get some output, you have grub installed, if you get no output, it's LILO.

Sidenote: You must grep for GRUB, don't try LILO, because if you installed lilo, then installed grub, the mbr will still have "LILO" in the "filesystem descriptor string" (it's not called that, but I can't remember the correct name off-hand) as grub doesn't change that.

Last edited by dawkcid; 06-09-2007 at 02:20 PM. Reason: typo
 
Old 06-10-2007, 05:32 AM   #3
kirtikjr
Member
 
Registered: Apr 2007
Location: banglore
Distribution: RedHat EL v4
Posts: 35

Original Poster
Rep: Reputation: 16
i have done that..i have installed grub as my bootloader.. so when i read the contents of mbr i find GRUB in the output..but i hane never installed lilo ( even when i try to install lilo, i get lot of dependency issues-thats a long list)

when i try to read the mbr, please tell me about the output of these three conditions :
1. u have installed lilo only and no other bootloader.
2. first u have installed grub then u install lilo.
3. u've lilo at first, then u install grub..

plz reply..
 
Old 06-10-2007, 06:38 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by kirtikjr
when i try to read the mbr, please tell me about the output of these three conditions :
1. u have installed lilo only and no other bootloader.
2. first u have installed grub then u install lilo.
3. u've lilo at first, then u install grub..

plz reply..
I'm not sure how this will help you....someone would have to do all those combinations and then dump the mbr contents---very tedious task which I'd be willing to bet has not ever been done and documented.

What is your end goal?
Do you have a working system and you need to change something?
 
Old 06-10-2007, 01:12 PM   #5
kirtikjr
Member
 
Registered: Apr 2007
Location: banglore
Distribution: RedHat EL v4
Posts: 35

Original Poster
Rep: Reputation: 16
see mr. always a thing is not done for benefit ..this is just an interest.. just a query came in my mind and i posted. and i dont work anywhere, im just a fresher anyways thanx..
 
Old 06-10-2007, 01:48 PM   #6
dawkcid
Member
 
Registered: May 2007
Location: UK
Distribution: LFS,Slackware,Slamd64,NetBSD
Posts: 102

Rep: Reputation: 15
The mbr has 5 parts (this applies to x86 DOS mbr).

1. a short jump to the start of the boot loader
2. a bunch of drive parameters--number of heads/tracks etc (google for the details).
3. boot loader code
4. partition table.
5. the last two bytes are 0x55AA to indicate a valid boot loader.

Obviously grub and lilo have their own boot code, which will overwrite whatever was there before. The other parts aren't changed by grub or lilo, since that isn't their business. That's really the only difference, except as I mentioned before, there is an 8 byte text field (space padded) to describe the OS/filesystem (which might contain something like "FAT32" or whatever), which lilo writes to, but grub doesn't bother, so it will contain whatever was there before you installed grub.
 
  


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
Windows 2000 Bootloader vs. Mandriva LILO Bootloader Dregnan Mandriva 7 12-03-2007 09:55 PM
whats up? andrewz LinuxQuestions.org Member Intro 2 02-02-2007 05:28 AM
How can I disable the grub bootloader and enable the lilo bootloader? abefroman Linux - General 1 08-06-2005 08:53 AM
I need create bootloader. How make bootloader? swipple Fedora - Installation 3 01-23-2005 12:22 PM
whats next wesw02 Linux - Newbie 4 12-28-2004 12:17 PM

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

All times are GMT -5. The time now is 02:55 PM.

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