Re: writing to a partition



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


.



Relevant Pages

  • Re: Uninitialized variables
    ... > option to specify the bit pattern for un-initialized storage. ... Blank COMMON was often over-layed by the loader, ... OS/360 treated all uninitialized COMMON equally. ...
    (comp.lang.fortran)
  • vsftpd discriminates some UNIX users?
    ... I have a box with OS RedHat 9 which includes vsftpd 1.1.3 as FTP server. ... 331 Please specify the password. ... 230 Login successful. ... Or maybe RedHat used a badly configured or buggy software version? ...
    (comp.os.linux.misc)
  • More Details on /proc files
    ... I am developing an application which will output performance data of Redhat ... proc file do not match with man page. ... man page do not specify all the fields of other files as well. ...
    (RedHat)
  • More Details on /proc files
    ... I am developing an application which will output performance data of Redhat ... proc file do not match with man page. ... man page do not specify all the fields of other files as well. ...
    (RedHat)
  • Re: Redhat emergency recovery tape backup
    ... Jim McAlpine wrote: ... I've produced a couple of redhat 8 recovery tapes recently and the backup ... If you don't specify a blocksize, I believe the default is unblocked so the record count would also be the byte count. ...
    (bit.listserv.ibm-main)