Boot Process
Translation of the original in Catalan. Read it in: CatalàCastellano
Some time ago I was researching how the PC boots and more specifically how Linux boots. Because I wanted to emulate the BOOT process of the bios of network cards (PXE) with Linux.
Next I'll list the references of the documents I read, to inform myself about the subject.
How Linux BOOT: this document explains step by step what Linux does when it is booting.
GRUB: this partition manager (easier and more powerful than lilo) has a lot of information about the subject at hand in its documentation and it also allows booting in PXE mode. That is, fetching the operating system from the network instead of the hard disk.
PXE Linux: there is a variant of SYSLINUX called PXE Linux which is specially designed to boot our linux over the network. As if the BIOS of our NIC (Network Interface Card) supported PXE mode.
MBR (Master Boot Record) sector structure: as you all know every hard disk has the partition map in the MBR. Here is all the information you need to read the MBR byte by byte and even to modify it. If we want to use a program to edit the partitions manually I also found one: ptedit.exe.
When you read the previous document you'll see that in the MBR there is a code that indicates which partition types are supported with some hexadecimal numbers, here you have the list of the codes.
As we all know the size of today's hard disks means that partitions can no longer be expressed in CHS mode (Cylinders,Heads,Sectors) -the famous LBA mode- so here you have a document that explains how this CHS->LBA transformation is done so that it fits in the MBR.
Finally I attach a link about how a huge number of parts of the hardware of our PCs work at a very detailed level.
4 comments
Comments from the old blog, as they were written. Comments are closed.
Roger
És un producte de tercers, pero resulta molt més
fàcil!!!
www.bpbatch.org
Al igual ja el coneixies.
Oriol Rius
Doncs no ho coneixia però sembla súper interessant tot i q
només hi he pogut donar un cop d'ull, ja q porto 2 dies d bojos al
curro i no plego mai.
Tu ho has pogut provar això??? és q sembla molt interessant???
explica'ns alguna experiència q tinguis en el tema.THX.
Roger
Aquest sistema l'he vist implementat en una aula de formació on tenien
emmagatzemades imatges de linux i w98 al disc dur en una partició
diferent. També ho he vist funcionar baixant-se la imatge del servidor,
aconseguint bones taxes de transferència. M'ho vaig estar mirant a la
pagina web i sembla una molt bona solució, pero degut al temps, grabador
eprom's, etc... no ho vaig provar. Si ho tires endavant, ja m'ho faràs
saber, a veure si et puc ajudar en alguna cosa.
Oriol Rius
El bpbatch aquest és de PM, però com sempre no ho he pogut
provar. De totes formes aquí van unes URLs més sobre el
tema:
Wired for Management
(WfM): especifícacions oficials d'intel sobre PXE.
NETBOOT: per
crear EPROM basades en Linux per bootar via EPROM de la targeta de xarxa.
EtherBOOT: un altre link
semblant a l'anterior.
NILO: encara un altre projecte d més
del mateix. Aquest amb un nom que ens recorda al mític LILO.
Windows remote-boot quick
guide: finalment un link directa cap a un document del bpbatch q ens
explica com arrenca el 'pindows' via xarxa.
Esperem q el pròxim comentari sigui d'algú q hagi provat
això del PXE.