启动故障求解答!

启动讨论 grub/grub2/syslinux/grub4dos/Lilo
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 启动故障求解答!

#16

帖子 poloshiao » 2018-04-24 11:21

我这里是这样的
[Journal]
#Storage=auto
前面加了 # 就會被忽略 只有備忘用途
參閱
https://www.freedesktop.org/software/sy ... .conf.html
Storage=

Controls where to store journal data. One of "volatile", "persistent", "auto" and "none". If "volatile", journal log data will be stored only in memory, i.e. below the /run/log/journal hierarchy (which is created if needed). If "persistent", data will be stored preferably on disk, i.e. below the /var/log/journal hierarchy (which is created if needed), with a fallback to /run/log/journal (which is created if needed), during early boot and if the disk is not writable. "auto" is similar to "persistent" but the directory /var/log/journal is not created if needed, so that its existence controls where log data goes. "none" turns off all storage, all log data received will be dropped. Forwarding to other targets, such as the console, the kernel log buffer, or a syslog socket will still work however. Defaults to "auto".
chenglx2006
帖子: 25
注册时间: 2018-03-16 21:44
系统: ubuntu

Re: 启动故障求解答!

#17

帖子 chenglx2006 » 2018-04-24 11:24

刚才把journalctl 的结果输出到了文本文件,有40多M,应该从中找哪些关键字?
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 启动故障求解答!

#18

帖子 poloshiao » 2018-04-24 11:30

sudo journalctl -b --no-pager # current boot 本次開機
sudo journalctl -b 0 --no-pager # last boot 上次開機
sudo journalctl -b -1 --no-pager # previous boot 上上次開機
sudo journalctl -b -1 --no-pager # previous boot 上上上次開機
....
应该从中找哪些关键字?
關鍵字 過濾
sudo journalctl -b 0 --no-pager | grep 關鍵字
然後使用得到的開機錯誤關鍵字串 上網搜尋

提醒
不用了 把 Storage= 設定 改回來
[Journal]
#Storage=auto
否則 你的分割區空間會被佔用 越來越大
chenglx2006
帖子: 25
注册时间: 2018-03-16 21:44
系统: ubuntu

Re: 启动故障求解答!

#19

帖子 chenglx2006 » 2018-04-24 13:11

我用journalctl >> \home\log.txt
为何会得到一个40M的文件,里面有近一个月的信息。
内容是这样的:
-- Logs begin at Fri 2018-03-16 18:03:25 CST, end at Tue 2018-04-24 11:16:45 CST. --
3月 16 18:03:25 chenglx-ubuntu kernel: microcode: microcode updated early to revision 0x29, date = 2013-06-12
3月 16 18:03:25 chenglx-ubuntu kernel: random: get_random_bytes called from start_kernel+0x42/0x4e6 with crng_init=0
3月 16 18:03:25 chenglx-ubuntu kernel: Linux version 4.13.0-32-generic (buildd@lgw01-amd64-016) (gcc version 7.2.0 (Ubuntu 7.2.0-8ubuntu3)) #35-Ubuntu SMP Thu Jan 25 09:13:46 UTC 2018 (Ubuntu 4.13.0-32.35-generic 4.13.13)
3月 16 18:03:25 chenglx-ubuntu kernel: Command line: BOOT_IMAGE=/vmlinuz-4.13.0-32-generic root=UUID=e403ada7-3dad-4e0b-8c83-ec348e3ee4f5 ro quiet splash vt.handoff=7
3月 16 18:03:25 chenglx-ubuntu kernel: KERNEL supported cpus:
3月 16 18:03:25 chenglx-ubuntu kernel: Intel GenuineIntel
3月 16 18:03:25 chenglx-ubuntu kernel: AMD AuthenticAMD
3月 16 18:03:25 chenglx-ubuntu kernel: Centaur CentaurHauls
3月 16 18:03:25 chenglx-ubuntu kernel: x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
3月 16 18:03:25 chenglx-ubuntu kernel: x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
3月 16 18:03:25 chenglx-ubuntu kernel: x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
3月 16 18:03:25 chenglx-ubuntu kernel: x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256
3月 16 18:03:25 chenglx-ubuntu kernel: x86/fpu: Enabled xstate features 0x7, context size is 832 bytes, using 'standard' format.
3月 16 18:03:25 chenglx-ubuntu kernel: e820: BIOS-provided physical RAM map:
3月 16 18:03:25 chenglx-ubuntu kernel: BIOS-e820: [mem 0x0000000000000000-0x000000000009c3ff] usable
3月 16 18:03:25 chenglx-ubuntu kernel: BIOS-e820: [mem 0x000000000009c400-0x000000000009ffff] reserved
3月 16 18:03:25 chenglx-ubuntu kernel: BIOS-e820: [mem 0x00000000000dc000-0x00000000000dffff] reserved
3月 16 18:03:25 chenglx-ubuntu kernel: BIOS-e820: [mem 0x00000000000e4000-0x00000000000fffff] reserved
3月 16 18:03:25 chenglx-ubuntu kernel: BIOS-e820: [mem 0x0000000000100000-0x000000001fffffff] usable
3月 16 18:03:25 chenglx-ubuntu kernel: BIOS-e820: [mem 0x0000000020000000-0x00000000201fffff] reserved
3月 16 18:03:25 chenglx-ubuntu kernel: BIOS-e820: [mem 0x0000000020200000-0x000000003fffffff] usable
3月 16 18:03:25 chenglx-ubuntu kernel: BIOS-e820: [mem 0x0000000040000000-0x00000000401fffff] reserved
3月 16 18:03:25 chenglx-ubuntu kernel: BIOS-e820: [mem 0x0000000040200000-0x00000000d6a7bfff] usable
3月 16 18:03:25 chenglx-ubuntu kernel: BIOS-e820: [mem 0x00000000d6a7c000-0x00000000d6a81fff] reserved
3月 16 18:03:25 chenglx-ubuntu kernel: BIOS-e820: [mem 0x00000000d6a82000-0x00000000d6bf1fff] usable
3月 16 18:03:25 chenglx-ubuntu kernel: BIOS-e820: [mem 0x00000000d6bf2000-0x00000000d6c0efff] reserved
3月 16 18:03:25 chenglx-ubuntu kernel: BIOS-e820: [mem 0x00000000d6c0f000-0x00000000d6c6ffff] usable
3月 16 18:03:25 chenglx-ubuntu kernel: BIOS-e820: [mem 0x00000000d6c70000-0x00000000d6cf0fff] ACPI NVS
3月 16 18:03:25 chenglx-ubuntu kernel: BIOS-e820: [mem 0x00000000d6cf1000-0x00000000d6f0efff] reserved
3月 16 18:03:25 chenglx-ubuntu kernel: BIOS-e820: [mem 0x00000000d6f0f000-0x00000000d6f17fff] usable
3月 16 18:03:25 chenglx-ubuntu kernel: BIOS-e820: [mem 0x00000000d6f18000-0x00000000d6f1efff] reserved
3月 16 18:03:25 chenglx-ubuntu kernel: BIOS-e820: [mem 0x00000000d6f1f000-0x00000000d6f7ffff] usable
3月 16 18:03:25 chenglx-ubuntu kernel: BIOS-e820: [mem 0x00000000d6f80000-0x00000000d6f9efff] ACPI NVS
3月 16 18:03:25 chenglx-ubuntu kernel: BIOS-e820: [mem 0x00000000d6f9f000-0x00000000d6fdffff] usable
3月 16 18:03:25 chenglx-ubuntu kernel: BIOS-e820: [mem 0x00000000d6fe0000-0x00000000d6ffefff] ACPI data
3月 16 18:03:25 chenglx-ubuntu kernel: BIOS-e820: [mem 0x00000000d6fff000-0x00000000d6ffffff] usable
3月 16 18:03:25 chenglx-ubuntu kernel: BIOS-e820: [mem 0x00000000d7000000-0x00000000dfffffff] reserved
3月 16 18:03:25 chenglx-ubuntu kernel: BIOS-e820: [mem 0x00000000f80f8000-0x00000000f80f8fff] reserved
3月 16 18:03:25 chenglx-ubuntu kernel: BIOS-e820: [mem 0x00000000fed1c000-0x00000000fed8ffff] reserved
3月 16 18:03:25 chenglx-ubuntu kernel: BIOS-e820: [mem 0x00000000fee00000-0x00000000fee00fff] reserved
3月 16 18:03:25 chenglx-ubuntu kernel: BIOS-e820: [mem 0x00000000ff000000-0x00000000ffffffff] reserved
3月 16 18:03:25 chenglx-ubuntu kernel: BIOS-e820: [mem 0x0000000100000000-0x000000011f7fffff] usable
3月 16 18:03:25 chenglx-ubuntu kernel: NX (Execute Disable) protection: active
3月 16 18:03:25 chenglx-ubuntu kernel: random: fast init done
3月 16 18:03:25 chenglx-ubuntu kernel: SMBIOS 2.6 present.
3月 16 18:03:25 chenglx-ubuntu kernel: DMI: LENOVO ZHAOYANG K27 /KLx , BIOS 46CN21WW 09/07/2011

如果按日期搜索,一天大约有1万多条记录。
回复