⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 1148-1149.html

📁 linux-unix130.linux.and.unix.ebooks130 linux and unix ebookslinuxLearning Linux - Collection of 12 E
💻 HTML
字号:
<HTML>

<HEAD>

<TITLE>Linux Complete Command Reference:File Formats:EarthWeb Inc.-</TITLE>

</HEAD>

<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
<SCRIPT>
<!--
function displayWindow(url, width, height) {
        var Win = window.open(url,"displayWindow",'width=' + width +
',height=' + height + ',resizable=1,scrollbars=yes');
}
//-->
</SCRIPT>
</HEAD>

 -->




<!-- ISBN=0672311046 //-->

<!-- TITLE=Linux Complete Command Reference//-->

<!-- AUTHOR=Red Hat//-->

<!-- PUBLISHER=Macmillan Computer Publishing//-->

<!-- IMPRINT=Sams//-->

<!-- CHAPTER=05 //-->

<!-- PAGES=1103-1208 //-->

<!-- UNASSIGNED1 //-->

<!-- UNASSIGNED2 //-->



<P><CENTER>

<a href="1145-1147.html">Previous</A> | <a href="../ewtoc.html">Table of Contents</A> | <a href="1150-1151.html">Next</A></CENTER></P>







<A NAME="PAGENUM-1148"><P>Page 1148</P></A>





<P><B>

GLOBAL OPTIONS

</B></P>



<P>There are many possible keywords. The description that follows is almost literally from

user.tex (just slightly abbreviated):

</P>



<TABLE>



<TR><TD>

backup=backup-file

</TD><TD>

Copy the original boot sector to

backup-file (which may also be a device, such as

/dev/null) instead of /boot/boot.NNNN.

</TD></TR><TR><TD>

boot=boot-device

</TD><TD>

Sets the name of the device (such as a hard disk partition) that contains the boot sector.

If this keyword is omitted, the boot sector is read from (and possibly written to) the

device that is currently mounted as root.

</TD></TR><TR><TD>

compact

</TD><TD>

 Tries to merge read requests for adjacent sectors into a single read request. This

drastically reduces load time and keeps the map smaller. Using

compact is especially recommended when booting from a floppy disk.

</TD></TR><TR><TD>

default=name

</TD><TD>

Uses the specified image as the default boot image. If

default is omitted, the image appearing first in the configuration file is used.

</TD></TR><TR><TD>

delay=tsecs

</TD><TD>

Specifies the number of tenths of a second the boot loader should wait before booting

the first image. This is useful on systems that immediately boot from the hard disk

after enabling the keyboard. The boot loader doesn't wait if

delay is omitted or is set to zero.

</TD></TR><TR><TD>

disk=device-name

</TD><TD>

Defines non-standard parameters for the specified disk. See section &quot;Disk Geometry&quot;

of user.tex for details.

</TD></TR><TR><TD>

disktab=disktab-file

</TD><TD>

Specifies the name of the disk parameter table. The map installer looks for

/etc/disktab if disktab is omitted. The use of disktabs is discouraged.

</TD></TR><TR><TD>

fix-table

</TD><TD>

This allows LILO to adjust 3-D addresses in partition tables. Each partition entry contains

a 3-D (sector/head/cylinder) and a linear address of the first and the last sector of

the partition. If a partition is not track-aligned and if certain other operating systems (such

as PC/MS-DOS or OS/2) are using the same disk, they may change the 3-D address.

LILO can store its boot sector only on partitions where both address types correspond.

LILO readjusts incorrect 3-D start addresses if

fix-table is set.

</TD></TR><TR><TD>

</TD><TD>

Warning: This does not guarantee that other operating systems may not attempt to reset

the address later. It is also possible that this change has other, unexpected side effects.

The correct fix is to repartition the drive with a program that does align partitions to

tracks. Also, with some disks (such as some large EIDE disks with address translation

enabled), under some circumstances, it may even be unavoidable to have conflicting partition

table entries.

</TD></TR><TR><TD>

force-backup=backup-file

</TD><TD>

Like backup but overwrite an old backup copy if it exists.

</TD></TR><TR><TD>

ignore-table

</TD><TD>

Tells LILO to ignore corrupt partition tables.

</TD></TR><TR><TD>

install=boot-sector

</TD><TD>

Install the specified file as the new boot sector. If

install is omitted, /boot/boot.b is used as the default.

</TD></TR><TR><TD>

linear

</TD><TD>

Generate linear sector addresses instead of sector/head/cylinder addresses. Linear

addresses are translated at runtime and do not depend on disk geometry. Note that boot disks

may not be portable if linear is used because the BIOS service to determine the disk

geometry does not work reliably for floppy disks. When using

linear with large disks, /sbin/lilo may generate references to inaccessible disk areas because 3-D sector addresses are not

known before boot time.

</TD></TR><TR><TD>

lock

</TD><TD>

Enables automatic recording of boot command lines as the defaults for the following

boots. This way, LILO &quot;locks&quot; on a choice until it is manually overridden.

</TD></TR><TR><TD>

map=map-file

</TD><TD>

Specifies the location of the map file. If

map is omitted, the file /boot/map is used.

</TD></TR><TR><TD>

message=message-file

</TD><TD>

Specifies a file containing a message that is displayed before the boot prompt. No message

is displayed while waiting for a shifting key after printing

LILO . In the message, the FF character (Ctrl+L) clears the local screen. The size of the message file is limited to

65,535 bytes. The map file has to be rebuilt if the message file is changed or moved.

</TD></TR><TR><TD>

nowarn

</TD><TD>

Disables warnings about possible future dangers.

</TD></TR></TABLE>





<A NAME="PAGENUM-1149"><P>Page 1149</P></A>





<TABLE>



<TR><TD>

optional

</TD><TD>

The per-image option optional applies to all images.

</TD></TR><TR><TD>

password=password

</TD><TD>

The per-image option

password=... applies to all images.

</TD></TR><TR><TD>

prompt

</TD><TD>

Forces entering the boot prompt without expecting any prior key presses.

Unattended reboots are impossible if prompt is set and

timeout isn't.

</TD></TR><TR><TD>

restricted

</TD><TD>

The per-image option restricted applies to all images.

</TD></TR><TR><TD>

serial=parameters

</TD><TD>

Enables control from a serial line. The specified serial port is initialized and the boot

loader is accepting input from it and from the PC's keyboard. Sending a break on the serial

line corresponds to pressing a Shift key on the console in order to get the boot

loader's attention. All boot images should be password-protected if the serial access is less

secure than access to the console, such as if the line is connected to a modem. The parameter

string has the following syntax:

</TD></TR><TR><TD>

</TD><TD>

&lt;port&gt;[,&lt;bps&gt;[&lt;parity&gt;[&lt;bits&gt;]]]

</TD></TR><TR><TD>

</TD><TD>

&lt;port&gt;: The number of the serial port, zero-based.

0 corresponds to COM1 alias /dev/ttyS0, and so on. All four ports can be used (if present).

&lt;bps&gt;: The baud rate of the serial port. The following baud rates are supported: 110, 150, 300, 600, 1200, 2400, 4800, and

9600 bps. Default is 2400 bps.

</TD></TR><TR><TD>

</TD><TD>

&lt;parity&gt;: The parity used on the serial line. The boot loader ignores input parity and

strips the eighth bit. The following (uppercase or lowercase) characters are used to describe

the parity: n for no parity, e for even parity, and

o for odd parity.

</TD></TR><TR><TD>

</TD><TD>

&lt;bits&gt;: The number of bits in a character. Only 7 and 8 bits are supported. Default is 8

if parity is none and 7 if parity is even or odd.

</TD></TR><TR><TD>

</TD><TD>

If serial is set, the value of delay is automatically raised to

20. For example, serial=0,2400n8 initializes COM1 with the default parameters.

</TD></TR><TR><TD>

timeout=tsecs

</TD><TD>

Sets a time-out (in tenths of a second) for keyboard input. If no key is pressed for

the specified time, the first image is automatically booted. Similarly, password input is

aborted if the user is idle for too long. The default time-out is

infinite.

</TD></TR><TR><TD>

verbose=level

</TD><TD>

Turns on a lot of progress reporting. Higher numbers give more verbose output. If

_v is additionally specified on the LILO command line, the level is increased accordingly.

The maximum verbosity level is 5.

</TD></TR></TABLE>





<P>Additionally, the kernel configuration parameters

append, ramdisk, read-only, read-write, root, and

vga can be set in the global options section. They are used as defaults if they aren't specified in the configuration sections of the respective

kernel images.

</P>



<P><B>

PER-IMAGE SECTION

</B></P>



<P>A per-image section starts with either a line

</P>



<!-- CODE SNIP //-->

<PRE>

image=pathname

</PRE>

<!-- END CODE SNIP //-->



<P>to indicate a file or device containing the boot image of a Linux kernel or a line

</P>



<!-- CODE SNIP //-->

<PRE>

other=pathname

</PRE>

<!-- END CODE SNIP //-->



<P>to indicate an arbitrary system to boot.

</P>



<P>In the former case, if an image line specifies booting from a device, then one has to indicate the range of sectors to be

mapped using

</P>



<!-- CODE SNIP //-->

<PRE>

range=start-end

</PRE>

<!-- END CODE SNIP //-->



<P>In the latter case (booting another system), there are the three options:

</P>



<TABLE>



<TR><TD>

loader=chain-loader

</TD><TD>

This specifies the chain loader that should be used. By default,

/boot/chain.b is used. The chain loader must be specified if booting from a device other than the first hard or

floppy disk.

</TD></TR></TABLE>







<P><CENTER>

<a href="1145-1147.html">Previous</A> | <a href="../ewtoc.html">Table of Contents</A> | <a href="1150-1151.html">Next</A></CENTER></P>







</td>
</tr>
</table>

<!-- begin footer information -->







</body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -