Re: writing to a partition
- From: et472@xxxxxxxxxxxxxxxxxxx (Michael Black)
- Date: 30 Sep 2007 20:19:48 GMT
Dan Espen (daneNO@xxxxxxxxxxxxxxxxxxxxxxxxx) writes:
Allan Adler <ara@xxxxxxxxxxxxxxxxxxxx> writes:
Unruh <unruh-spam@xxxxxxxxxxxxxx> writes:
You need to study how bootloaders work.
Gladly. I've been trying to download the source code lilo.c for RedHat 7.3
but haven't been able to locate it. Do you know where I can find it?
And why RedHat 7.3?
Do you need to look at an old possibly buggy Lilo?
Download a current version of Lilo.
Because he's running an old version of Redhat.
It's also not really a Linux issue.
A bootloader looks in a specified place, maybe checks for a signature
so it doesn't try to execute nonsense, then loads that code, and
executes it, starting at some well specified place in the code
block.
It's well specified because it needs to find the right things.
So long as the code fits the specs, it doesn't care what's in there
or what it does, because once it executes the code, the loader is
out of the picture.
So the code could be DOS, or it could be Linux, or it could be
a game that runs right on the hardware. It's irrelevant because
the loader is out of the picture.
There is a loader in BIOS. It looks in the specified place, I'm
pretty sure it does look for a signature (ie a few bytes of specied
value that are in a very specific place, so if they are there chances
are very good that it is indeed bootable code), and then loads it.
It loads a specific amount of code, so you either have to fit it
into that amount of space, or make the code something that loads
the actual program.
To the BIOS loader, lilo is just some code that fits the specs.
ANd in turn, it loads whatever you specify, not really caring
what it is, so long as whateve you specify meets the specs.
The original poster might as well do searches on "dos boot" or
something like that to get the basic concept, and likely the
details needed.
Michael
.
- References:
- writing to a partition
- From: Allan Adler
- Re: writing to a partition
- From: Unruh
- Re: writing to a partition
- From: Dan Espen
- writing to a partition
- Prev by Date: www.nikeaaaun.com sell nike jordan adidas
- Next by Date: hot sell nike jordan adidas puma all star
- Previous by thread: Re: writing to a partition
- Next by thread: Re: writing to a partition
- Index(es):
Relevant Pages
|