]> git.pld-linux.org Git - projects/geninitrd.git/blame - geninitrd.8
- drop trash support (trash is dead)
[projects/geninitrd.git] / geninitrd.8
CommitLineData
c6143d07 1.TH GENINITRD 8 "Wed Jul 27 2001"
bb529f94
JK
2.UC 4
3.SH NAME
c6143d07 4geninitrd \- creates initial ramdisk images for preloading modules
bb529f94 5.SH SYNOPSIS
c6143d07 6\fBgeninitrd\fR [-fv] [--with=\fImodule\fR] [--preload=\fImodule\fR]
0519ce85
AF
7[--version] [--fstab=\fIfstab\fR] [--raidtab=\fIraidtab\fR]
8[--modules-conf=\fImodules.conf\fR]
8b1e4ac7 9[--fs=rom|ext2|cram] \fIimage\fR \fIkernel-version\fR
bb529f94 10.SH DESCRIPTION
c6143d07 11\fBgeninitrd\fR creates filesystem images which are suitable for use
bb529f94
JK
12as Linux initial ramdisk (initrd) images. Such images are often
13used for preloading the block device modules (such as IDE, SCSI or RAID)
c6143d07 14which are needed to access the root filesystem. \fBgeninitrd\fR
bb529f94 15automatically loads all \fIscsi_hostadapter\fR entries in
c6143d07 16\fI/etc/modules.conf\fR when it finds that root fs is mounted on SCSI device,
bb529f94
JK
17which makes it simple to build and use kernels using modular SCSI devices.
18It will also load IDE and RAID modules when needed.
19
c6143d07 20Any module options specified in \fI/etc/modules.conf\fR are passed
bb529f94
JK
21to the modules as they are loaded by the initial ramdisk.
22
23If the root filesystem is modular, initrd will automatically add the
24filesystem's modules to the initrd image.
25
c6143d07
AF
26.\" If the root device is on a loop device (such as /dev/loop0), \fBgeninitrd\fR
27.\" will attempt to build an initrd which sets up the loopback file properly.
28.\" To do this, the fstab must contain a comment of the form:
29.\"
30.\" # LOOP0: /dev/hda1 vfat /linux/rootfs
31.\"
32.\" LOOP0 must be the name of the loop device which needs to be configured, in
33.\" all capital lettes. The parameters after the color are the device which
34.\" contains the filesystem with the loopback image on it, the filesystem which
35.\" is on the device, and the full path to the loopback image.
bb529f94
JK
36
37.SH OPTIONS
38.TP
39\fB-f\fR
c6143d07 40Allows \fBgeninitrd\fR to overwrite an existing image file.
bb529f94
JK
41
42.TP
43\fB-\-fstab=\fR\fIfstab\fR
44Use \fIfstab\fR to automatically determine what type of filesystem the
45root device is on. Normally, \fB/etc/fstab\fR is used.
46
0519ce85
AF
47.TP
48\fB-\-raidtab=\fR\fIraidtab\fR
49Use \fIraidtab\fR to automatically determine raid settings of the
50root device. Normally, \fB/etc/raidtab\fR is used.
51
bb529f94
JK
52.TP
53\fB-\-ifneeded
54Only builds the image if their are modules that need to be loaded at boot
55time.
56
c6143d07
AF
57.TP
58\fB-\-image-version
59Append kernel version to initrd name.
60
61.TP
62\fB-\-nocompress
63Don't compress initrd.
64
65.TP
66\fB-\-no-bsp
67Don't use Braindamaged Script Processor (/bin/bsp) and use /bin/trash instead.
68
bb529f94
JK
69.TP
70\fB-\-preload=\fR\fImodule\fR
c6143d07 71\fB-\-with=\fR\fImodule\fR
bb529f94 72Load the module \fImodule\fR in the initial ramdisk image. The module gets
c6143d07 73loaded before any SCSI modules which are specified in \fI/etc/modules.conf\fR.
bb529f94
JK
74This option may be used as many times as necessary.
75
76.TP
77\fB-v\fR
78Prints out verbose information while creating the image (normally
c6143d07 79the \fBgeninitrd\fR runs silently).
bb529f94
JK
80
81.TP
82\fB-\-version\fR
c6143d07 83Prints the version of \fBgeninitrd\fR that's being used and then exits.
bb529f94
JK
84
85.TP
8b1e4ac7
AF
86\fB-\-fs=\fBext2\fR|\fBrom\fR|\fBcram\fR
87Filesystem type to be used for the image. Only selected filesystem
88should always be compiled into kernel.
bb529f94
JK
89
90.SH FILES
91.PD 0
92.TP 20
c6143d07 93\fI/etc/sysconfig/geninitrd\fR
bb529f94 94Configuraton file with default options. Putting proper options there
c31050f3 95helps in automatic creation of initrd eg. on kernel upgrade.
bb529f94
JK
96
97.TP 20
98\fI/dev/loop*\fR
99A block loopback device is used to create the image, which makes this
100script useless on systems without block loopback support available.
101
102.TP 20
c6143d07 103\fI/etc/modules.conf\fR
bb529f94
JK
104Specified SCSI modules to be loaded and module options to be used.
105.PD
106.SH "SEE ALSO"
107.BR fstab (5),
108.BR insmod (1),
c6143d07
AF
109.BR grub (8),
110.BR lilo (8),
111.BR genromfs (8)
112
bb529f94 113
c6143d07 114.SH AUTHORS
bb529f94 115.nf
c6143d07
AF
116geninitrd is based on mkinitrd by Erik Troan <ewt@redhat.com> and
117contributors:
118 Elliot Lee <sopwith@cuc.edu>
119 Miguel de Icaza <miguel@nuclecu.unam.mx>
120 Christian 'Dr. Disk' Hechelmann <drdisk@ds9.au.s.shuttle.de>
121 Michael K. Johnson <johnsonm@redhat.com>
122 Pierre Habraken <Pierre.Habraken@ujf-grenoble.fr>
123 Jakub Jelinek <jj@ultra.linux.cz>
124 Carlo Arenas Belon (carenas@chasqui.lared.net.pe>
125
126geninitrd is writen by Jacek Konieczny <jajcus@pld.org.pl> and
127contributors (in alphabetic order):
128 Artur Frysiak <wiget@pld.org.pl>
129 Dariusz Karolczak <inglod@pld.org.pl>
130