Re: Help regarding initrd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



To be sure that it will work fine for other devices (USB, SAN, etc) add a delay loop (4 to 8 seconds) at init/main.c after do_basic_setup and before prepare_namespaces.

Fabio.



2006/7/19, Mohapatra, Hemant <Hemant.Mohapatra@xxxxxxx>:
>  bounce@xxxxxxxxxxxx] On Behalf Of Morphy Zhores
>  Subject: Help regarding initrd


>  Basically what will be inside a initrd compressed file and how it is
>  made. It is heard that kernel can be booted without initrd and what
is
>  the necessity in using such a file. After loading the kernel is it

Initrd is primarily used to reduce the size of the kernel image by
avoiding the need to have all  drivers  necessary for booting compiled
as inbuilt modules. It includes some driver modules that are needed to
access some hardware and finally mount the real root-FS. If you wish to
do away with initrd, just compile the kernel with in-built support for
whatever Filesystem you have (reiserfs, ext2/3, etc) and in the boot
menu, provide the root=/dev/<insert your harddrive node here> to let the
kernel know the location of the root filesystem.

This link should help you better understand the boot process:

http://www-128.ibm.com/developerworks/linux/library/l-linuxboot/

In my opinion, this should work for normal SCSI/IDE drives (works for me
on a Suse10.0 on IDE) but I cannot be sure if you are booting via a SAN
or some such.

./h



--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux