帮酷LOGO
0 0 评论
文章标签:Drive  HIG  引导  时间  BOO  Ubuntu  

问题:

我已经在我的HP Pavilion 15笔记本电脑(i7-8750h,8GB RAM,Nvidia GTX 1050 4GB显卡)上安装了Ubuntu 18.04和Windows 10双启动,我在128GB SSD上有Windows 10,安装了一个1TB硬盘。

Ubuntu需要大约3分钟来启动,这太长了,我在终端上使用dmesg检查引导日志,但是,无法找到特定的解决方案。 日志的某些部分如下-


[ 28.304674] ACPI Error: Field [D128] at bit offset/length 128/1024 exceeds size of target Buffer (160 bits) (20170831/dsopcode-235)


[ 28.304680] No Local Variables are initialized for Method [HWMC]


[ 28.304681] Initialized Arguments for Method [HWMC]: (2 arguments defined for method invocation)


[ 28.304682] Arg0: 00000000d4827883 <Obj> Integer 0000000000000002


[ 28.304685] Arg1: 00000000d8e2e5c3 <Obj> Buffer(20) 53 45 43 55 01 00 00 00


[ 28.304691] ACPI Error: Method parse/execution failed HWMC, AE_AML_BUFFER_LIMIT (20170831/psparse-550)


[ 28.304698] ACPI Error: Method parse/execution failed _SB.WMID.WMAA, AE_AML_BUFFER_LIMIT (20170831/psparse-550)


[ 28.304737] ACPI Error: Field [D128] at bit offset/length 128/1024 exceeds size of target Buffer (160 bits) (20170831/dsopcode-235)


[ 28.304741] No Local Variables are initialized for Method [HWMC]


[ 28.304742] Initialized Arguments for Method [HWMC]: (2 arguments defined for method invocation)


[ 28.304743] Arg0: 000000006a1236a5 <Obj> Integer 0000000000000002


[ 28.304745] Arg1: 0000000058614773 <Obj> Buffer(20) 53 45 43 55 01 00 00 00


[ 28.304750] ACPI Error: Method parse/execution failed HWMC, AE_AML_BUFFER_LIMIT (20170831/psparse-550)


[ 28.304755] ACPI Error: Method parse/execution failed _SB.WMID.WMAA, AE_AML_BUFFER_LIMIT (20170831/psparse-550)


[ 28.304792] ACPI Error: Field [D128] at bit offset/length 128/1024 exceeds size of target Buffer (160 bits) (20170831/dsopcode-235)


[ 28.304796] No Local Variables are initialized for Method [HWMC]


[ 28.304797] Initialized Arguments for Method [HWMC]: (2 arguments defined for method invocation)


[ 28.304797] Arg0: 000000006a1236a5 <Obj> Integer 0000000000000002


[ 28.304799] Arg1: 0000000010b0d4d2 <Obj> Buffer(20) 53 45 43 55 01 00 00 00


[ 28.304805] ACPI Error: Method parse/execution failed HWMC, AE_AML_BUFFER_LIMIT (20170831/psparse-550)


[ 28.304809] ACPI Error: Method parse/execution failed _SB.WMID.WMAA, AE_AML_BUFFER_LIMIT (20170831/psparse-550)


[ 28.304840] input: HP WMI hotkeys as /devices/virtual/input/input11


[ 28.304935] ACPI Error: Field [D128] at bit offset/length 128/1024 exceeds size of target Buffer (160 bits) (20170831/dsopcode-235)


[ 28.304939] No Local Variables are initialized for Method [HWMC]


[ 28.304940] Initialized Arguments for Method [HWMC]: (2 arguments defined for method invocation)


[ 28.304940] Arg0: 000000006a1236a5 <Obj> Integer 0000000000000002


[ 28.304942] Arg1: 0000000058614773 <Obj> Buffer(20) 53 45 43 55 01 00 00 00


[ 28.304948] ACPI Error: Method parse/execution failed HWMC, AE_AML_BUFFER_LIMIT (20170831/psparse-550)


[ 28.304953] ACPI Error: Method parse/execution failed _SB.WMID.WMAA, AE_AML_BUFFER_LIMIT (20170831/psparse-550)


[ 28.304989] ACPI Error: Field [D128] at bit offset/length 128/1024 exceeds size of target Buffer (160 bits) (20170831/dsopcode-235)


[ 28.304992] No Local Variables are initialized for Method [HWMC]


[ 28.304993] Initialized Arguments for Method [HWMC]: (2 arguments defined for method invocation)


[ 28.304994] Arg0: 000000006a1236a5 <Obj> Integer 0000000000000003


[ 28.304996] Arg1: 0000000010b0d4d2 <Obj> Buffer(20) 53 45 43 55 01 00 00 00


[ 28.305001] ACPI Error: Method parse/execution failed HWMC, AE_AML_BUFFER_LIMIT (20170831/psparse-550)


[ 28.305006] ACPI Error: Method parse/execution failed _SB.WMID.WMAA, AE_AML_BUFFER_LIMIT (20170831/psparse-550)




[ 57.223498] Bluetooth: BNEP (Ethernet Emulation) ver 1.3


[ 57.223499] Bluetooth: BNEP filters: protocol multicast


[ 57.223500] Bluetooth: BNEP socket layer initialized


[ 72.479544] IPv6: ADDRCONF(NETDEV_UP): eno1: link is not ready


[ 73.118840] r8169 0000:02:00.0 eno1: link down


[ 73.118970] IPv6: ADDRCONF(NETDEV_UP): eno1: link is not ready


[ 73.219866] IPv6: ADDRCONF(NETDEV_UP): wlo1: link is not ready


[ 73.843272] IPv6: ADDRCONF(NETDEV_UP): wlo1: link is not ready


[ 74.922172] IPv6: ADDRCONF(NETDEV_UP): wlo1: link is not ready


[ 105.606945] wlo1: authenticate with e4:46:da:97:22:1d


[ 105.607275] wlo1: send auth to e4:46:da:97:22:1d (try 1/3)


[ 105.609899] wlo1: authenticated


[ 105.616013] wlo1: associate with e4:46:da:97:22:1d (try 1/3)


[ 105.628806] wlo1: RX AssocResp from e4:46:da:97:22:1d (capab=0x431 status=0 aid=7)


[ 105.629150] wlo1: associated


[ 105.862745] IPv6: ADDRCONF(NETDEV_CHANGE): wlo1: link becomes ready


[ 145.733942] ahci 0000:00:17.0: port does not support device sleep


[ 175.120308] Bluetooth: RFCOMM TTY layer initialized


[ 175.120315] Bluetooth: RFCOMM socket layer initialized


[ 175.120318] Bluetooth: RFCOMM ver 1.11


[ 187.978585] rfkill: input handler disabled



但是,即使除此之外,有多个地方的活动需要5-10秒,而且有很多,我无法找到导致延迟巨慢的特定事物。

请帮我一下。

编辑1:systemd-analyze blame | head -n 20 结果-


1min 44.210s apt-daily.service


 1min 18.450s postgresql@10-main.service


 1min 15.205s plymouth-quit-wait.service


 58.390s fstrim.service


 31.935s dev-sdb6.device


 28.224s snapd.service


 21.987s networkd-dispatcher.service


 20.731s phpsessionclean.service


 18.816s dev-loop23.device


 18.615s dev-loop22.device


 18.480s gpu-manager.service


 18.368s dev-loop24.device


 18.307s dev-loop25.device


 18.137s grub-common.service


 18.110s dev-loop20.device


 17.286s dev-loop15.device


 17.158s dev-loop21.device


 16.665s dev-loop19.device


 16.648s dev-loop17.device


 15.046s dev-loop11.device



systemd-analyze critical-chain结果-


graphical.target @2min 17.958s


└─multi-user.target @2min 17.957s


 └─postgresql.service @2min 2.541s +143ms


 └─postgresql@10-main.service @44.090s +1min 18.450s


 └─basic.target @44.051s


 └─sockets.target @44.051s


 └─snapd.socket @43.990s +60ms


 └─sysinit.target @43.876s


 └─systemd-timesyncd.service @40.817s +3.059s


 └─systemd-tmpfiles-setup.service @38.798s +1.520s


 └─local-fs.target @38.796s


 └─run-user-1000-gvfs.mount @2min 48.252s


 └─run-user-1000.mount @2min 30.698s


 └─swap.target @35.602s


 └─dev-disk-byx2duuid-c8bb376cx2dd620x2d4b47x2da8fbx2d652c38543811.swap @33.503s +2.098s


 └─dev-disk-byx2duuid-c8bb376cx2dd620x2d4b47x2da8fbx2d652c38543811.device @33.502s




回答1:

因此systemd-analyze输出表明postgresql@10-main.service是导致引导时间减慢的主要原因。

如果你不需要在系统上运行PostgreSQL服务器,并且在启动时自动启动,则可以使用,


sudo apt remove postgresql*



或者你应该能够保持它的安装,并且只在启动时禁用服务的自动启动,


sudo systemctl disable postgresql



然后,你仍然可以手动启动当前会话的服务,


sudo systemctl start postgresql




回答2:
  • 检查你是否拥有最新的BIOS

    • sudo dmidecode -s bios-version #获取当前BIOS版本

    • 转到https://hp.support.com,输入序列号,转到下载区域,检查更新的BIOS,

    • 下载并安装更新的BIOS
  • 慢速引导

    • 你安装了超过24个snap应用程序
    • snap list #来查看它们
    • sudo snap remove xxxx #以删除snap应用程序
    • sudo apt-get install xxxx #将应用程序重新安装为常规应用程序
  • 检查你的文件系统

    • 引导到Ubuntu Live dvd/usb
    • 打开terminal窗口
    • 类型sudo fdisk -l
    • 识别"linux文件系统"的/dev/xxxx设备名称
    • 类型 sudo fsck -f /dev/XXXX #用你之前找到的号码替换XXXX
    • 如果出现错误,请重复fsck命令
    • 类型reboot



文章标签:BOO  引导  Drive  时间  HIG  Ubuntu  

Copyright © 2011 HelpLib All rights reserved.    知识分享协议 京ICP备05059198号-3  |  如果智培  |  酷兔英语