Debian起動時にエラー等が出力されている内容を確認しようと思い、
/var/log/boot.logを確認しようとすると、boot.logが存在しませんでした。
本資料は、起動時に出力される内容を確認する方法を記します。
$ lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 8.7 (jessie) Release: 8.7 Codename: jessie
journalctlを使用することにより、起動時のログ(出力)を確認することができます。
journalctlのヘルプを見ると以下のように-bオプションがあります。 # journalctl --help journalctl [OPTIONS...] [MATCHES...] Query the journal. Flags: <snip> -b --boot[=ID] Show data only from ID or, if unspecified, the current boot --list-boots Show terse information about recorded boots
オプション-bを使用することにより、起動時の出力を確認することができます。
尚、rootユーザでjournalctlを起動してください。
journalctl -b
以上、Debianで起動時のブートログ(出力)を確認する方法でした。