Can you boot linux without GRUB or LILO loader
if it is only OS on your computer ?
I mean does kernel image can boot it-self and if can,
where you should put it ?
thanks
Dragoslav Zaric
[Programmer; M Sc Astrophysics]
Linux could directly boot from floppy in the past, but that feature has been obsoleted and removed in 2003 - see http://lkml.org/lkml/2003/1/29/197
Afaik, you always need a bootloader to boot Linux nowadays.
Only exception coming to my mind is booting a UserModeLinux kernel. That one can directly boot from the commandline.
regards
roland
Date Thu, 16 Apr 2009 09:45:14 +0200
Subject Linux image boot
>From Dragoslav Zaric <>
Can you boot linux without GRUB or LILO loader
if it is only OS on your computer ?
I mean does kernel image can boot it-self and if can,
where you should put it ?
thanks
Dragoslav Zaric
[Programmer; M Sc Astrophysics]
______________________________________________________
GRATIS f?r alle WEB.DE-Nutzer: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://movieflat.web.de
Hey thanks roland,
the link is just what I was interested in. So GRUB does that loading
back and forth around
first 1 MB. I just looked at article:
http://duartes.org/gustavo/blog/post/how-computers-boot-up
and it says that there:
------------------------------------------------------------------------------
There?s a complication worth mentioning (aka, I told you this thing is
hacky). The image for a current Linux kernel, even compressed, does
not fit into the 640K of RAM available in real mode. My vanilla Ubuntu
kernel is 1.7 MB compressed. Yet the boot loader must run in real mode
in order to call the BIOS routines for reading from the disk, since
the kernel is clearly not available at that point. The solution is the
venerable unreal mode. This is not a true processor mode (I wish the
engineers at Intel were allowed to have fun like that), but rather a
technique where a program switches back and forth between real mode
and protected mode in order to access memory above 1MB while still
using the BIOS. If you read GRUB source code, you?ll see these
transitions all over the place (look under stage2/ for calls to
real_to_prot and prot_to_real). At the end of this sticky process the
loader has stuffed the kernel in memory, by hook or by crook, but it
leaves the processor in real mode when it?s done.
------------------------------------------------------------------------------
Thanks again,
Dragoslav Zaric
[Programmer; M Sc Astrophysics]