歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Unix知識 >> BSD >> FreeBSD如何保存和使用內核更改信息

FreeBSD如何保存和使用內核更改信息

日期:2017/2/28 11:28:01   编辑:BSD


如果你安裝好了FreeBSD的話,那麼應該認識了全屏幕配置界面。在這個界面裡你可以排除硬件資源沖突,並且可以設置不同的系統部件,完成後可以保存這些信息然後繼續引導處理。簡而言之,這一步操作允許你對現有的內核作一些改變。這些改變會被保存到磁盤上。不過,在版本3.1,這些內容不會被保存到正確的位置,在這裡我教你怎樣改正它。
改變系統引導信息
先參考一下3.1版的errata.txt。以下是使用這些推薦信息的步驟。引導系統後登錄,執行:
把以下命令加入/boot/loader.r:
load /kernel
autoboot 5
然後重新引導,這時可以看到一些新的引導信息。系統實際上進入了配置過程,並且執行了各種配置命令,我認為這確實是一個功能很強的工具。
以下是這次引導的dmesg信息,可以看出引導信息已經被修改了。
$ dmesg
Copyright (c) 1992-1999 FreeBSD Inc.
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
FreeBSD 3.1-RELEASE #0: Mon Feb 15 11:08:08 GMT 1999
Timecounter "i8254" frequency 1193182 Hz
CPU: i486DX (486-class CPU)
real memory = 8650752 (8448K bytes)
config> di zp0
config> di ze0
config> di lnc0
config> di le0
config> di ie0
config> di fe0
config> di ex0
config> di ep0
config> di cs0
config> di wt0
config> di wdc1
config> di scd0
config> di mcd0
config> di matcdc0
config> di bt0
config> di aha0
config> di adv0
config> en ed0
config> po ed0 0x300
config> ir ed0 5
config> iom ed0 0xd8000
config> f ed0 0
config> q
avail memory = 5476352 (5348K bytes)
Preloaded elf kernel "kernel" at 0xf0340000.
Probing for devices on the ISA bus:
sc0 on isa
sc0: VGA color <16 virtual consoles, flags="0x0">
ed0 at 0x300-0x31f irq 5 on isa
ed0: address 00:80:29:b1:f2:61, type NE2000 (16 bit)
atkbdc0 at 0x60-0x6f on motherboard
atkbd0 irq 1 on isa
psm0 not found
sio0 at 0x3f8-0x3ff irq 4 flags 0x10 on isa
sio0: type 16550A
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1 not found at 0x2f8
fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa
fd0: 1.44MB 3.5in
wdc0 at 0x1f0-0x1f7 irq 14 on isa
wdc0: unit 0 (wd0):
wd0: 407MB (833664 sectors), 1002 cyls, 16 heads, 52 S/T, 512 B/S
ppc0 at 0x3bc irq 7 on isa
ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
nlpt0: on ppbus 0
nlpt0: Interrupt-driven port
ppi0: on ppbus 0
plip0: on ppbus 0
vga0 at 0x3b0-0x3df maddr 0xa0000 msize 131072 on isa
npx0 on motherboard
npx0: INT 16 interface
changing root device to wd0s1a
Copyright © Linux教程網 All Rights Reserved