在哪裡可以看到啟動期間顯示的文字?

在哪裡可以看到啟動期間顯示的文字?

啟動過程中,分為三個階段:

  1. 在 grub 之前,我有兩行文字閃爍,告訴我找不到東西
  2. 然後就是 grub 菜單
  3. 然後就是正常的啟動過程

在 ubuntu 伺服器 12.04 LTS 上,我可以在哪個日誌中找到第 1 階段和第 3 階段顯示的所有文字?

答案1

我懷疑你能否透過 Linux 找到第一階段。如果出現grub 它與您安裝的作業系統無關。您也許可以在 BIOS 日誌中找到它。

至於第 3 階段,您可以在 中找到該文字/var/log/boot.log。例如,這是我的前 20 行(當然你的會有所不同):

$ head -20 /var/log/boot.log 
Scanning for Btrfs filesystems
resume: libgcrypt version: 1.5.3
[e4rat-preload] Open /var/lib/e4rat/startup.log ... 
[e4rat-preload] 6693 files scanned
[e4rat-preload] Pre-loading I-Nodes ...
[e4rat-preload] Execute `/sbin/init' ...
[e4rat-preload] Pre-loading file content ...
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[e4rat-preload] Successfully transferred files into page cache
[ ok ] Reading early boot files....
[ ok ] Starting the hotplug events dispatcher: udevd.
[ ok ] Synthesizing the initial hotplug events...done.
[ ok ] Waiting for /dev to be fully populated...done.
[ ok ] Activating swap...done.
[....] Checking root file system...fsck from util-linux 2.20.1
/dev/sda7: clean, 581416/4505600 files, 6554372/18013696 blocks
done.
[ ok ] Activating lvm and md swap...done.
[....] Checking file systems...fsck from util-linux 2.20.1

相關內容