lilo 中文man頁面
NAME
lilo - 安裝引導(dǎo)裝入程序
總述
主要功能:
” /sbin/lilo” - 安裝引導(dǎo)裝入程序
輔助用途:
”/sbin/lilo –q” - 查詢影射表
”/sbin/lilo –R” - 設(shè)置下次啟動的默認(rèn)命令行
”/sbin/lilo –I” - 查詢當(dāng)前內(nèi)核的路徑
”/sbin/lilo {-u|-U}” - 卸載lilo
使用說明
lilo 安裝一個你在下一次啟動時被激活的引導(dǎo)裝入程序它有多項的選擇.
- -v
- 增加冗余.給出一個或更多的-v選項使lilo 更詳細(xì).
- -q
- 列表當(dāng)前已被影射的文件. lilo 維護(hù)著一個文件,缺省的是 ”/boot/map”, 包含了啟動內(nèi)核的名稱和定位(位置)。這個選項列出在其中的名字. ”-m“影射文件名 使用指定的影射文件代替默認(rèn)的.
- ”-C”配置文件名
- lilo 從這個文件中讀取有關(guān)影射文件的指令, 省缺的是 ”/etc/lilo.conf”. 這個選項能使用一個指定的非默認(rèn)的配置文件.
- ”-d“延遲
- 如果你有幾個指定的內(nèi)核, 在啟動時按下Shift 鍵, 引導(dǎo)程序會提供一個你選擇使用哪個系統(tǒng)內(nèi)核去啟動的機(jī)會. 一個預(yù)期的時間后列表的***項將被引導(dǎo). 這個選項指定一個以十分之一秒為單位的超時延遲.
- ”-D”標(biāo)記
- 使用給出標(biāo)記的內(nèi)核去代替***個來作為默認(rèn)的引導(dǎo).
- ”-r”root-目錄
- 做任何(修改)之前,改變root的位置到指出的目錄. 習(xí)慣上用于糾正從軟盤啟動的安裝.
- ”-t”
- 只進(jìn)行測試. 不會真正的寫入新的啟動或影射文件. 和-v一起使用得知.B lilo 大約有什么要做.
- ”-c ”
- 影射壓縮.將合并讀入從臨近部分的請求. 加速啟動(尤其從軟盤).
- ”-f”disk-tab
- 指定磁盤參數(shù)文件. (省缺的是 /etc/disktab.)
- ”-i”boot-sector
- 指定一個文件作為boot sector使用.(省缺的是 /boot/boot.b.)
- ”-l”
- 產(chǎn)生線性sector地址代替sector/head/cylinder 地址.
- ”-P””{fix|ignore}”
- 修理(或忽略)被破壞的分區(qū)表, 例如, 分區(qū)表用線性的和sector/head/cylinder 地址不協(xié)調(diào).
- ”-s”save-file
- 當(dāng) lilo 覆蓋 boot sector, 保存舊的內(nèi)容在一個文件里, 省缺的是 /boot/boot.NNNN 這個NNNN依賴與設(shè)備. 這選項為boot sector 指定一個后選的挽救文件. (或者, 和 -u 一起使用,從哪里恢復(fù)boot sector.)
- ”-S”挽救文件
- 通常地, lilo 不會覆蓋已存在的挽救文件. 這個選項就是告訴它可以覆蓋(這個文件).
- ”-u”device-name
- 卸載 lilo, 通過檢查時間標(biāo)記,拷回一個保存了的boot sector.
- ”-U”device-name
- 同上, 但不檢查時間標(biāo)記.
- ”-R”commandline
- 設(shè)定下次啟動的命令行.boot loader會刪除這行的: 這是個一次性命令.代表性的用在reboot 腳本, 只在調(diào)用shutdown -r'之前使用.
- ”-I”標(biāo)記
- 啟動后可以在環(huán)境變量BOOT_IMAGE 找到這個標(biāo)記. 在標(biāo)準(zhǔn)輸出設(shè)備上,這個命令列出相應(yīng)的路徑名.
- ”-V”
- 列出版本號.
上面的命令行選項相對應(yīng)于下面在配置文件指出的關(guān)鍵字。
-
-b bootdev boot=bootdev -c compact -d dsec delay=dsec -D label default=label -i bootsector install=bootsector -f file disktab=file -l linear -m mapfile map=mapfile -P fix fix-table -P ignore ignore-table -s file backup=file -S file force-backup=file -v verbose=level
”請參閱”
lilo.conf(5).
lilo 分發(fā)的非常廣泛的文檔.
#p#
NAME
lilo - install boot loader
SYNOPSIS
Main function:
/sbin/lilo - install boot loader
Auxiliary uses:
/sbin/lilo -q - query map
/sbin/lilo -R - set default command line for next reboot
/sbin/lilo -I - inquire path name of current kernel
/sbin/lilo {-u|-U} - uninstall lilo
DESCRIPTION
lilo installs a boot loader that will be activated next time you boot. It has lots of options.
- -v
- Increase verbosity. Giving one or more -v options will make lilo more verbose.
- -q
- List the currently mapped files. lilo maintains a file, by default /boot/map, containing the name and location of the kernel(s) to boot. This option will list the names therein.
- -m map-file
- Use specified map file instead of the default.
- -C config-file
- lilo reads its instructions about what files to map from its config file, by default /etc/lilo.conf. This option can be used to specify a non-default config file.
- -d delay
- If you have specified several kernels, and press Shift at boot-time, the boot loader will present you with a choice of which system to boot. After a timeout period the first kernel in the list is booted. This option specifies the timeout delay in deciseconds.
- -D label
- Use the kernel with the given label, instead of the first one in the list, as the default kernel to boot.
- -r root-directory
- Before doing anything else, do a chroot to the indicated directory. Used for repairing a setup from a boot floppy.
- -t
- Test only. Do not really write a new boot sector or map file. Use together with -v to find out what lilo is about to do.
- -c
- Enable map compaction. This will merge read requests from adjacent sectors. Speeds up the booting (especially from floppy).
- -f disk-tab
- Specify disk geometry parameter file. (The default is /etc/disktab.)
- -i boot-sector
- Specify a file to be used as the new boot sector. (The default is /boot/boot.b.)
- -l
- Generate linear sector addresses instead of sector/head/cylinder addresses.
- -L
- Generate 32-bit Logical Block Addresses instead of C:H:S addresses, allowing access to all partitions on disks greater than 8.4Gb.
- -P {fix|ignore}
- Fix (or ignore) `corrupt' partition tables, i.e., partition tables with linear and sector/head/cylinder addresses that do not correspond.
- -s save-file
- When lilo overwrites the boot sector, it preserves the old contents in a file, by default /boot/boot.NNNN where NNNN depends on the device. This option specifies an alternate save file for the boot sector. (Or, together with the -u option, specifies from where to restore the boot sector.)
- -S save-file
- Normally, lilo will not overwrite an existing save file. This options says that overwriting is allowed.
- -u device-name
- Uninstall lilo, by copying the saved boot sector back. A time-stamp is checked.
- -U device-name
- Idem, but do not check the time-stamp.
- -R command line
- This option sets the default command for the boot loader the next time it executes. The boot loader will then erase this line: this is a once-only command. It is typically used in reboot scripts, just before calling `shutdown -r'.
- -I label
- The label of the running kernel can be found in the environment variable BOOT_IMAGE after startup. This command will print the corresponding path name on stdout.
- -V
- Print version number.
The above command line options correspond to the key words in the config file indicated below.
-
-b bootdev boot=bootdev
-c compact
-d dsec delay=dsec
-D label default=label
-i bootsector install=bootsector
-f file disktab=file
-l linear
-L lba32
-m mapfile map=mapfile
-P fix fix-table
-P ignore ignore-table
-s file backup=file
-S file force-backup=file
-v verbose=level
SEE ALSO
lilo.conf(5).
The lilo distribution comes with very extensive documentation.