Stalker, Doug was once rumoured to have said:
> I still have one question:  if the initial RamDisk image is on a SCSI disk,
> and if the SCSI drivers are in the initial ramdisk, how does it get loaded
> in the first place?  I assume it's some sort of lilo trick, since adding
> initrd=/foo.img to the boot parameters doesn't work but adding
> initrd=/foo.img to lilo.conf and running lilo does.  Does lilo copy the
> initial ramdisk to the bootsector or some such?


Ugh, no - this is an evil topic. :)

initrd's are handled by the bootloader - they're copied into RAM at the same 
time as the kernel, before the kernel is bootstrapped.  Once both are in RAM,
the kernel is told where to find the initrd then its booted.

The reason the bootloader can read the initrd is because it uses bios hooks
to do its disk access - something which linux itself can not do.

C.
-- 
--==============================================--
  Crossfire      | This email was brought to you
  [EMAIL PROTECTED] | on 100% Recycled Electrons
--==============================================--
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to