Re: writing to a partition



Unruh <unruh-spam@xxxxxxxxxxxxxx> writes:

No, you do NOT select a partition, you select a very specific set of bytes
on that partition. The boot loader goes to those bytes, loads them into
memory and then executes a jump to the beginning of that set of bytes in
memory. You do not boot a partition.

Well, here is what the file /etc/lilo.conf might look like:

boot=/dev/hda
map=/boot/map
install=/boot/boot.b
prompt
timeout=50
message=/boot/message
linear
default=linux

image=/boot/vmlinuz-0.99
label=linux
read-only
root=/dev/hda5

other=/dev/hda1
optional
label=dos

As you can see, the only information that this gives lilo about the other
boot option is that it resides on /dev/hda1, that it is optional and a
label to display in the boot menu. Somehow, lilo manages to boot with this
information. So, the only questions are:
(1) exactly what one can put on /dev/hda1
(2) where does one put it on /dev/hda1
(3) how does one put it at the location on /dev/hda1

So far, nothing I've read in this thread contradicts my guess that I
can just execute
cat wtw > /dev/hda1

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?
--
Ignorantly,
Allan Adler <ara@xxxxxxxxxxxxxxxxxxxx
* Disclaimer: I am a guest and *not* a member of the MIT CSAIL. My actions and
* comments do not reflect in any way on MIT. Also, I am nowhere near Boston.
.



Relevant Pages

  • Re: problems with booting fedora core 4 ...
    ... BIOS Version/Date Award Software International, Inc. 4.0h, 12.6.2005 ... Total Physical Memory 1 536,00 MB ... how to boot Fedora properly? ... This can be circumvented by creating a boot partition at the beginning ...
    (Fedora)
  • Re: trying to fix low memory warning
    ... Whilst we do not know what is the installed RAM memory in this case the ... Therefore, the need for a much larger partition, to ... >>> install ... >>> BootIt on the HD, to avoid installing the boot manager also, if you ...
    (microsoft.public.windowsxp.basics)
  • Re: trying to fix low memory warning
    ... If the installed memory is small, ... Therefore, the need for a much larger partition, to run ... Just use the floppies to resize, and don't install ... >> BootIt on the HD, to avoid installing the boot manager also, if you so ...
    (microsoft.public.windowsxp.basics)
  • Re: fba.exe Application error
    ... over to a empty hard drive with a NTFS file system then bless the boot ... with a seperate partition not using the same partition. ... instruction is at 0x02322f5d referenced memory at 0x00000004. ... I have the NTFS and NTFS Format components so it should ...
    (microsoft.public.windowsxp.embedded)
  • Re: long boot code
    ... If people want to have more than 510 bytes of code that executes on ... If you are booting from a floppy and not from a hard disk, ... The MSDOS boot sector code loads your ... program at memory address $0070:$0000 and executes it. ...
    (alt.lang.asm)