Results 1 to 10 of 16
Just curious... I am installing Debian Squeeze, right now. Do I really need to install grub (or any boot loader) since I am only installing one OS.
Seems like I ...
- 07-14-2010 #1
Do I really need to grub it up?!
Just curious... I am installing Debian Squeeze, right now. Do I really need to install grub (or any boot loader) since I am only installing one OS.
Seems like I shouldn't have to. BIOS takes care of that if there is one OS... right?
- 07-14-2010 #2Linux User
- Join Date
- Dec 2007
- Location
- Idaho USA
- Posts
- 351
Wrong. The bios will only read the boot code in the MBR of the HDD. When you install grub, its boot code is written to the MBR so the bios can read it and then hand over control to it. With no boot code in the MBR the computer will not boot.BIOS takes care of that if there is one OS... right?
- 07-14-2010 #3
So I will need Grub or Lilo installed for sure?
It seems like the BIOS should just say "boot this partition/HD" and be done, all on its own. No?
- 07-14-2010 #4Linux User
- Join Date
- Dec 2007
- Location
- Idaho USA
- Posts
- 351
Yes for sure . If you have more then one linux installed, only one Grub /Lilo needs to be installed.So I will need Grub or Lilo installed for sure?
With all the different OS's that could be installed on the hdd along with the number of hdd's in system it would be very difficault to write the bios code for all possibilties. The standard was decieded that the very first sector of hdd (MBR) would be read by the bios and control would be turned over to it, if code was present. If no boot code is found the bios may try a different hdd, floppy or cd. If no boot code is found on any device the bios will give an error -no system disk- or simular wording.
- 07-14-2010 #5If we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)
My new blog. It's probably not as good as I think it is.
- 07-14-2010 #6
The role of the BIOS is to find a bootable primary partition with a legitimate Master Boot Record, then load and execute the first sector (MBR) of that partition. In theory, one could contrive a kernel that self boots by loading the rest of itself after having its first 446 bytes launched by the BIOS. In practice, this is what bootloaders do best, so most people prefer to use them.
The notion of embedding knowledge of partition schemes and filesystem types into the BIOS is not a model that supports general purpose use of the system, and tends to stagnate evolution of new standards. The BIOS is essentially an immutable fixture in the system, and for greatest flexibility, should not rely on any but the most basic standards. That there will always be a 'sector 0' is about as general and simple as you can get.
--- rod.Stuff happens. Then stays happened.
- 07-19-2010 #7
I thought the Linux kernel used to support self booting once, but they've removed that option several years ago (yes, I have looked into the history of the system I am using, computer history can be a lot of fun).
You could theoretically put the self booting code back in, recompile the kernel and see what it does. I recommend you just go with GRUB or LILO though as it will save you lots of headaches. If you really want to get rid of the boot loader, I think BSD doesn't require it. As long as the kernel is installed to the MBR. I'm not sure though.
- 07-26-2010 #8
- 07-27-2010 #9
I know this is a bit off topic, but I'm going to ask it anyway:
Could you please tell me the state of the machine that a kernel has to expect, when loaded by grub?
It's just a bit of curiosity.
- 07-27-2010 #10The answer to this is quite architecture-specific. For PC-type architectures, Inside the Linux boot process gives a pretty good explanation of the state of affairs and the process that takes place as a kernel is launched by a bootloader.Could you please tell me the state of the machine that a kernel has to expect, when loaded by grub?
--- rod.Stuff happens. Then stays happened.


Reply With Quote
