LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-04-2006, 03:38 AM   #1
mannahazarika
Member
 
Registered: Dec 2005
Location: Dibrugarh, Assam, India
Distribution: Fedora, Debian, Suse
Posts: 40

Rep: Reputation: 15
Boot Loader Confusion


GRUB and LILO can be installed in a computer running linux at the same time - isn't it? But how to find out which boot loader is actually active and comes into play when the computer boots? I need to write a shell script which will find that out automatically.

There's another confusion I am having. What is actually MBR? Is it the term used by DOS/Windows user to refer to the the boot sector of the harddisk?
And what is exactly boot sector? Does it exist for a harddisk or for each partitions?
 
Old 01-04-2006, 08:42 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
//not a programming question. moved to Linux - Newbie
 
Old 01-05-2006, 01:06 AM   #3
mannahazarika
Member
 
Registered: Dec 2005
Location: Dibrugarh, Assam, India
Distribution: Fedora, Debian, Suse
Posts: 40

Original Poster
Rep: Reputation: 15
Well this is not a newbie question. It is easy to find out what bootloader is there during booting, it is even easy to find out what bootloaders are installed.

but to find out what boot loader is currently active (if more than one boot loader is installed) and that too using shell script,

definitely it is a programming question. Let me reframe the question and please move it to the programming section.
 
Old 01-05-2006, 03:46 AM   #4
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
Quote:
Originally Posted by mannahazarika
GRUB and LILO can be installed in a computer running linux at the same time - isn't it? But how to find out which boot loader is actually active and comes into play when the computer boots? I need to write a shell script which will find that out automatically.

There's another confusion I am having. What is actually MBR? Is it the term used by DOS/Windows user to refer to the the boot sector of the harddisk?
And what is exactly boot sector? Does it exist for a harddisk or for each partitions?
Hello,
as far as i know you could have only one boot loader for a linux at a time.......either grub or lilo.
check out in /etc that whether you have grub.conf or lilo.conf. Whichever u have, that is your bootloader.
moreover at the time of booting it tell u like...grub loading or lilo loading.

MBR : Master Boot Record.
its a general term......be it windows or linux or any other O/S.
MBR is the first 64 sectors ( 0-63 ) of your harddrive which is hidden and non accessible. And it exists for hard disk and not for each partitions.
The bootloader resides generally in MBR ( you could install them in /root as well ....yr wish )

plz. correct me if i'm wrong.

regards
 
Old 01-07-2006, 03:18 AM   #5
mannahazarika
Member
 
Registered: Dec 2005
Location: Dibrugarh, Assam, India
Distribution: Fedora, Debian, Suse
Posts: 40

Original Poster
Rep: Reputation: 15
thanks for ur reply.

i have cleared my doubt. i request the moderator to delete this thread if he sees fit.
 
Old 01-07-2006, 12:50 PM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
You can have boot code in the MBR or in the boot sector of a partition. For example, NTLDR lives in the boot sector of the Winodws partition, and it is called by the boot loader in the MBR.
When you tell GRUB to "chainload" Windows, you are pointing it to the boot sector of the Windows partition.

BTW the MBR is not really hidden--you can read it with dd.
 
  


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
wireless Keyboard not working to select boot options (Grub boot loader) psrini_vasan Fedora 7 12-16-2009 06:45 PM
To load/boot Red Hat Enterprise Linux 4 WS from Microsoft's Boot Loader (NTLDR) dhawal Red Hat 1 09-25-2005 08:08 AM
Grub boot loader menu shows two linux boot options pramos Linux - Newbie 3 09-13-2004 12:40 AM
multi boot confusion elleon30033 Linux - Newbie 9 06-09-2004 05:45 PM
How to add a boot record which used to startup windows under my Grub boot loader? yunxiang Linux - Newbie 6 02-01-2003 03:22 AM


All times are GMT -5. The time now is 12:54 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration