1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
|
'\" t
.\" @(#)mkrescue.8
.\" This page is part of the LILO package, which is released by
.\" the author(s) under a BSD license. See the file COPYING
.\" in the LILO source directory for the license and disclaimer.
.\"
.\" Original for lilo 22.1, John Coffman 2001-10-31
.\" Updated for lilo 22.5.4, John Coffman 2003-05-24
.\" Updated for lilo 22.6.1, John Coffman 2004-11-16
.\" Updated for lilo 23.1, Martin Eberhard Schauer 2011-03-06
.\" (Reformatted to better match Linux man-pages conventions)
.TH MKRESCUE 8 "6 Mar 2011"
.SH NAME
mkrescue \- make rescue floppy or CD
.SH SYNOPSIS
.B /sbin/mkrescue
makes a bootable rescue floppy or CD using the default kernel specified in
.IR lilo.conf .
.SH DESCRIPTION
\fBmkrescue\fP takes its specifation for the kernel from the default image
specified in \fI/etc/lilo.conf\fP.
If the actual default is an \fIother=\fP specification, then use the first
\fIimage=\fP specification.
Any associated initial ramdisk (\fIinitrd=\fP), and \fIappend=\fP options
will also be used.
The root directory will be taken to be the \fIcurrent\fP root.
A bootable floppy or CD-image will be created using LILO version
22.5.5 or later.
\fBmkrescue\fP normally requires no options, unless a CD-image is desired
(\fB--iso\fP).
.SH OPTIONS
.TP
\fB--append\fP <string>
Override any \fIappend=\fP options taken from the default image.
If there is any doubt about whether the \fIlilo.conf\fP
options are correct, then specify no kernel parameters by providing the
null string (\fB--append ""\fP).
.TP
.B --debug
Provide verbose output of the operation of
.BR mkrescue ,
pausing to allow the setting of internal operating parameters to be viewed.
<CR> must be hit to proceed from these pauses.
.TP
\fB--device\fP <device>
Make the floppy on a device other than \fI/dev/fd0\fP.
The floppy disk will always be made to boot on BIOS device code 0x00 (A:
drive), without regard to the drive on which it is created.
.TP
.B --fast
Use a faster method of creating the boot floppy.
This involves first creating a file of \fB--size\fP 1k blocks (default
is 1440) mounted using a loopback device, creating the bootable floppy,
then copying the entire file to the disk.
.TP
\fB--fs\fP [ \fIext2\fP | \fImsdos\fP | \fIminix\fP ]
Specify the type of filesystem to create on the drive.
\fIext2\fP is the default, but \fImsdos\fP and \fIminix\fP allow
slightly more disk sectors for really big kernels.
.TP
.B --help
Print a short usage synopsis, including a list of command options.
.TP
\fB--image\fP <label>
Specifies the label or alias of the particular image from which the
append, initial ramdisk, root, keytable, and kernel information is to
be taken.
.TP
\fB--initrd\fP \fI<filepath>\fP and \fB--kernel\fP \fI<filepath>\fP
These options, which must be used together, allow specification of an
arbitrary kernel file and initial ramdisk file to be used on the created
boot floppy.
Be sure you know what you are doing before you use these options.
If no inital ramdisk is needed with a particular kernel, then you MUST
specify \fB--initrd ""\fP, meaning a null pathname.
.TP
\fB--install\fP [ \fItext\fP | \fImenu\fP ]
Allows overriding the default human interface used with the rescue
bootloader (configuration file "install=" option). \fItext\fP is the
default on 1.2MB and 1.44MB floppy disks, and \fImenu\fP is the default
on 2.88MB floppies and HD emulation on CD-R media.
.TP
.BI --iso
Create an ISO-9660 bootable CD image (El Torito Format) suitable for
burning to a CD-R or CD-RW. The \fB--device\fP specification defaults to
the filename \fIrescue.iso\fP, and the \fB--size\fP defaults to 2880.
A utility such as "wodim" may be used to burn the ISO file to a
recordable CD medium.
With this ISO option, the \fB--size\fP \fIHD\fP option is allowed.
.TP
.BI --nocompact
For faster kernel loading from a floppy, LILO map compaction is normally
enabled.
This option will disable map compaction by omitting the lilo \fB-c\fP
switch.
.TP
.BI --noformat
Suppresses creation of a new filesystem on the boot floppy.
This option may be used ONLY
when you know that the floppy you will be writing upon is formatted with the
same filesystem as specified by \fB--fs\fP \fIXXX\fP (default is \fIext2\fP).
.TP
\fB--root\fP \fI<device>\fP
Specify the root filesystem for the kernel on the boot floppy.
The currently mounted root is taken as the default specification.
.TP
\fB--size\fP [ \fI1440\fP | \fI1200\fP | \fI2880\fP | \fIHD\fP ]
The default floppy disk size is \fI1440\fP, meaning a 1.44MB floppy.
When \fB--iso\fP is specified, the default size is \fI2880\fP.
Allowed specifications are \fI1200\fP, \fI1440\fP, or \fI2880\fP, meaning
a 1.2MB, 1.44MB or 2.88MB floppy, respectively.
No other floppy disk sizes are supported.
.sp
The \fIHD\fP specification, meaning "hard disk", may only be used with
the \fB--iso\fP option, to indicate a 16MB hard disk is to be generated
for emulation.
This allows for very large kernel/initial ramdisk combinations on CD-R.
The hard disk image is created using loopback devices \fI/dev/loop0\fP
and \fI/dev/loop1\fP, which must be free to utilize this size option.
.TP
.BI --version
Print the version number of \fBmkrescue\fP, then terminate.
.SH "SEE ALSO"
.BR cdrecord (1),
.BR dd (1),
.BR wodim (1),
.BR lilo.conf (5),
.BR lilo (8),
.BR mkfs (8),
.BR mkinitrd (8),
.BR mkisofs (8),
.BR mount (8)
.\" .SH "AUTHOR"
.\" John Coffman <johninsd@san.rr.com>
|