GNU/Linux |
RedHat 5.2(Apollo) |
|
![]() |
mkinitrd(8) |
![]() |
mkinitrd − creates initial ramdisk images for preloading modules
mkinitrd [-fv] [--with=module] image kernel-version
mkinitrd creates filesystem images which are suitable for use as Linux initial ramdisk (initrd) images. Such images are often used for preloading the block device modules (such as SCSI or RAID) which are needed to access the root filesystem. mkinitrd automatically loads all scsi_hostadapter entries in /etc/conf.modules, which makes it simple to build and use kernels using moduler SCSI devices.
Any module options specified in /etc/conf.modules are passed to the modules as they are loaded by the initial ramdisk.
-f |
Allows mkinitrd to overwrite an existing image file. |
-−ifneeded
Only builds the image if their are modules that need to be loaded at boot time.
-−needs-scsi-modules
Loads the ’scsi_mod’ and ’sd_mod’ modules before the hardware-specific SCSI modules, but after the -−preload modules.
-−preload=module
Load the module module in the initial ramdisk image. The module gets loaded before any SCSI modules which are specified in /etc/conf.modules. This option may be used as many times as necessary.
-v |
Prints out verbose information while creating the image (normally the mkinitrd runs silently). |
-−version
Prints the version of mkinitrd that’s being used and then exits.
-−with=module
Load the modules module in the initial ramdisk image. The module gets loaded after any SCSI modules which are specified in /etc/conf.modules. This option may be used as many times as necessary.
/dev/loop* |
A block loopback device is used to create the image, which makes this script useless on systems without block loopback support available. | ||
/etc/conf.modules |
Specified SCSI modules to be loaded and module options to be used. |
insmod(1), kerneld(8), lilo(8)
Erik Troan <ewt@redhat.com>
![]() |
mkinitrd(8) | ![]() |