geninitrd(8)

SYNOPSISgeninitrd [-f] [-v] [--with=module...] [--preload=module...] [--fstab=fstab] [--raidtab=raidtab] [--lvmtoolsversion=1|2] [--modules-conf=modules.conf] [--fs=rom|ext2|cram] [--with-insmod-static] {image} {kernel-version}geninitrd [--version]

Descriptiongeninitrd 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 IDE, SCSI or RAID) which are needed to access the root filesystem. geninitrd automatically loads all scsi_hostadapter entries in /etc/modules.conf when it finds that root fs is mounted on SCSI device, which makes it simple to build and use kernels using modular SCSI devices. It will also load IDE and RAID modules when needed.Any module options specified in /etc/modules.conf are passed to the modules as they are loaded by the initial ramdisk.If the root filesystem is modular, initrd will automatically add the filesystem's modules to the initrd image.

Options

    -f

    --fstab=fstab

    --raidtab=raidtab

    --ifneeded

    --image-version

    --nocompress

    --preload=module

    --with=module

    -v

    --version

    --initrdfs=ext2|rom|cram

    --with-insmod-static

    --lvmtoolsversion=1|2

SCSI supportIf geninitrd detect rootfs on SCSI disk then lookup for scsi_hostadapter alias in /etc/modules.conf file and use it to load proper SCSI low-level driver(s).

ATA RAID supportIf geninitrd detect rootfs on ATA RAID then lookup for ataraid_hostadapter alias in /etc/modules.conf and use it to load proper ATA RAID low level driver.For eg. if you have Promise FastTrack controler then add alias ataraid_hostadapter pdcraid to /etc/modules.conf.

Linux 2.6.x supportTo bulild initrd for Linux 2.6.x kernels you must have module-init-tools and use --with-insmod-static switch or use initrd version of recent busybox that comes in busybox-initrd package.

FILES

    /etc/sysconfig/geninitrd

    /dev/loop*

    /etc/modules.conf

SEE ALSOfstab(5) insmod(1) grub(8) lilo(8) genromfs(8)

Authorsgeninitrd is based on mkinitrd by Erik Troan ewt(at)redhat.com and contributors:Elliot Lee sopwith(at)cuc.edu Miguel de Icaza miguel(at)nuclecu.unam.mxChristian 'Dr. Disk' Hechelmann drdisk(at)ds9.au.s.shuttle.deMichael K. Johnson johnsonm(at)redhat.comPierre Habraken Pierre.Habraken(at)ujf-grenoble.frJakub Jelinek jj(at)ultra.linux.czCarlo Arenas Belon carenas(at)chasqui.lared.net.pegeninitrd is writen by Jacek Konieczny jajcus(at)pld-linux.org and contributors (in alphabetic order):Witold Filipczyk witekfl(at)poczta.onet.plArtur Frysiak wiget(at)pld-linux.orgDariusz Karolczak inglod(at)pld-linux.orgTomasz Kłoczko kloczek(at)pld.org.plArkadiusz Miśkiewicz misiek(at)pld-linux.orgMichał Moskal malekith(at)pld-linux.orgJan Rękorajski baggins(at)pld-linux.orgSebastian Zagrodzki zagrodzki(at)pld-linux.orgMichał Zawalich michuz(at)pld-linux.orgManual page for geninitrd is based on mkinitrd.8 by Erik Troan ewt(at)redhat.com and writen by Jacek Konieczny jajcus(at)pld-linux.org and contributors.

NAME