LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 07-09-2009, 11:57 AM   #1
vudayk
LQ Newbie
 
Registered: Jul 2009
Posts: 1

Rep: Reputation: 0
Question why MBR and GRUB ,LILO


hi im new comer to linux.
i just gone through notes of booting but i couldnt understand what MBR is really for and GRUB and LILO.can anybody help ,is all this boot loaders?????
 
Old 07-09-2009, 12:28 PM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
The MBR is the first sector of your boot disk: http://en.wikipedia.org/wiki/Master_boot_record
grub and lilo are boot-managers: They can let you select which (of perhaps very many) installed OSs you wish to boot.
lilo (linux loader) is considered rather old-fashioned, most distros are using grub now.

Just
[1] Backup your windows personal files. (Or, safest, replace your windows drive with an empty one, if you are really unsure, and terrified).
[2] Boot from a linux CD. Installation is quite easy now.
[3] Have fun.

And welcome to LQ!
 
Old 07-09-2009, 12:51 PM   #3
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,215

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
Grub stands for Grand Universal Boot Loader. For what that's worth.

Your BIOS after checking out the hardware sends the heads of your boot disk to track one sector one, and does a read. This is where the MGR ( Master Boot Record ) is. The MBR directs operations from there. The MBR is an executable program, it takes control of the system, and goes and looks for the operating system files to load. ( Generic explanation ). This happens regardless of the OS installed.

Windoze writes its own MBR record when installed, and it will load only windoze. If you install a linux system, Lilo and Grub are the most common options to use. Either can be installed on the MBR, and therefore overwriting the windoze MBR.

During a linux install, the system will look for any other OS's, including windoze, and add a record to the menu, so you can choose to boot windoze, or linux. You can install multiple OS's and boot any one of them by adding the correct information to Lilo or Grub. If given a choice, pick Grub. It is ( in my opinion ) easier to maintain. Lilo and Grub have all the code you need to load most OS's.

Good advice above, back up any windoze stuff before begin installing linux. If you mess up the MBR, it can be recovered later. There are many ways to do that.

If you are going to multi boot, Windoze systems should be installed first. Then install what ever linux system you choose later. If you try it the other way around, the windoze install will re-write the MBR, clobber the Lilo or Grub code, and only windoze will boot. That is the way windoze is designed.

Hope this clarifies some things for you.
 
Old 07-09-2009, 01:38 PM   #4
begin_learn
LQ Newbie
 
Registered: Jun 2009
Posts: 11

Rep: Reputation: 0
Well mbr is the master boot record.
grub (which stands for grand unified boot loader) and lilo(linux loader) are boot loaders.well what boot loaders do is that they recognize the operating systems installed in your computer and list them to you.now you are to choose which one to load.
lilo is now obselete.most of the distros like rhel5 use grub.its a powerful loader that recognises many o.s.
if you want to load windows and linux both,install windows first and then linux and its boot loader to mbr.If you install windows later its boot loader will be over written on mbr.its boot loader is not powerful enough to recognize linux installations and unfortunately you will not be able to boot linux
Enjoy.
 
  


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
grub and lilo on MBR with Windows xp blotch Linux - General 6 11-18-2005 09:57 PM
grub/lilo conflicts in mbr bandofmercy Linux - Newbie 5 09-25-2004 11:54 PM
lilo / grub in MBR? neilcpp Slackware 4 03-28-2004 10:26 AM
restore mbr (in lilo and grub) abs Slackware 5 02-07-2004 02:39 PM
Does lilo/grub have to be in the MBR? wincen Linux - General 9 06-20-2002 07:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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