为什么Linux 薄荷 20正在四处走动1分30秒至2分钟在 i310G 上启动 我真的对缓慢的启动时间感到沮丧。我正在尝试寻找过去 1 周的解决方案,但尚未取得丰硕成果。
我衷心感谢社区的回答。
系统分析
Startup finished in 10.699s (firmware) + 3.368s (loader) + 7.923s (kernel) + 30.193s (userspace) = 52.185s
graphical.target reached after 30.181s in userspace
$ systemd-分析责任
9.913s accounts-daemon.service
9.303s dev-sda7.device
8.674s ubuntu-system-adjustments.service
8.229s NetworkManager.service
6.241s avahi-daemon.service
6.239s bluetooth.service
6.081s thermald.service
6.073s wpa_supplicant.service
6.072s systemd-logind.service
5.087s systemd-journal-flush.service
systemd 分析关键链
graphical.target @30.181s
└─multi-user.target @27.593s
└─getty.target @27.593s
└─[email protected] @27.592s
└─system-getty.slice @27.590s
└─setvtrgb.service @27.461s +126ms
└─systemd-user-sessions.service @25.740s +34ms
└─network.target @25.735s
└─NetworkManager.service @17.505s +8.229s
└─dbus.service @17.503s
└─basic.target @17.430s
└─sockets.target @17.430s
└─uuidd.socket @17.430s
└─sysinit.target @17.374s
└─systemd-timesyncd.service @17.012s +361ms
└─systemd-tmpfiles-setup.service @15.529s +1.271s
└─local-fs.target @15.402s
└─boot-efi.mount @15.300s +101ms
└─systemd-fsck@dev-disk-by\x2duuid-BC85\x2dD177.service @13.996s +1.279s
└─dev-disk-by\x2duuid-BC85\x2dD177.device @13.995s
因西-Fxi
猫 /etc/fstab
# / was on /dev/sda7 during installation
UUID=ca57e331-79fb-4f04-b68e-7f2de5247b1a / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
UUID=BC85-D177 /boot/efi vfat umask=0077 0 1
# /home was on /dev/sda9 during installation
UUID=47c8dbf8-dec0-4238-8c0e-8582def09194 /home ext4 defaults 0 2
# swap was on /dev/sda8 during installation
UUID=00d38b07-5422-46f2-8ed7-82fc3186f50b none swap sw 0 0
黑子
zahid@Zahid-HP15s ~ $ blkid
/dev/sda1: LABEL="SYSTEM" UUID="BC85-D177" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="7c859521-1909-42cc-9d5d-6fbbf2b72a77"
/dev/sda3: LABEL="Windows" UUID="1A0066FD0066DF6F" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="8dfca0e5-c889-441a-ad8a-415c0f445e31"
/dev/sda4: LABEL="New Volume" UUID="F0C88F71C88F34BE" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="648dffd2-e679-4125-a5ed-490568be4fc6"
/dev/sda5: LABEL="New Volume" UUID="ACF205FCF205CC10" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="cb143e3e-20c2-4128-8394-d34405816d66"
/dev/sda6: LABEL="Windows RE tools" UUID="BE1AC1A01AC155D5" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="bfa3e33d-0db2-4b5c-a804-8c5ef4f356f7"
/dev/sda7: UUID="ca57e331-79fb-4f04-b68e-7f2de5247b1a" TYPE="ext4" PARTUUID="a2c0f78a-d763-44b8-9a33-a535095218ed"
/dev/sda8: UUID="00d38b07-5422-46f2-8ed7-82fc3186f50b" TYPE="swap" PARTUUID="80c26d41-bcd4-4f77-a705-10ae5d7266c6"
/dev/sda9: UUID="47c8dbf8-dec0-4238-8c0e-8582def09194" TYPE="ext4" PARTUUID="9d2f1025-b6a4-465e-b0ad-c4a4b4336c24"
须藤猫 /var/log/boot.log
------------ Thu Sep 03 16:27:11 IST 2020 ------------
/dev/sda7: clean, 509970/6250496 files, 4357931/24999936 blocks
[ OK ] Finished Tell Plymouth To Write Out Runtime Data.
[ OK ] Finished Clean up any mess left by 0dns-up.
[ OK ] Finished Create Volatile Files and Directories.
Starting Network Name Resolution...
Starting Network Time Synchronization...
Starting Update UTMP about System Boot/Shutdown...
[ OK ] Finished Update UTMP about System Boot/Shutdown.
[ OK ] Finished Load AppArmor profiles.
Starting Raise network interfaces...
[ OK ] Started Network Time Synchronization.
[ OK ] Reached target System Initialization.
[ OK ] Started ACPI Events Check.
[ OK ] Started CUPS Scheduler.
[ OK ] Started Daily Cleanup of Temporary Directories.
[ OK ] Reached target Paths.
[ OK ] Reached target System Time Set.
[ OK ] Reached target System Time Synchronized.
[ OK ] Started Trigger anacron every hour.
[ OK ] Started Daily apt download activities.
[ OK ] Started Daily apt upgrade and clean activities.
[ OK ] Started Periodic ext4 Online Metadata Check for All Filesystems.
[ OK ] Started Discard unused blocks once a week.
[ OK ] Started Refresh fwupd metadata regularly.
[ OK ] Started Daily rotation of log files.
[ OK ] Started Daily man-db regeneration.
[ OK ] Started Message of the Day.
[ OK ] Reached target Timers.
[ OK ] Listening on ACPID Listen Socket.
[ OK ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
[ OK ] Listening on CUPS Scheduler.
[ OK ] Listening on D-Bus System Message Bus Socket.
[ OK ] Listening on UUID daemon activation socket.
[ OK ] Reached target Sockets.
[ OK ] Reached target Basic System.
Starting Accounts Service...
[ OK ] Started ACPI event daemon.
Starting Save/Restore Sound Card State...
Starting Avahi mDNS/DNS-SD Stack...
Starting Bluetooth service...
[ OK ] Started Regular background program processing daemon.
[ OK ] Started CUPS Scheduler.
[ OK ] Started D-Bus System Message Bus.
Starting Network Manager...
[ OK ] Started Save initial kernel messages after boot.
Starting Remove Stale Online ext4 Metadata Check Snapshots...
Starting Detect the available GPUs and deal with any system changes...
Starting LSB: Record successful boot for GRUB...
Starting GRUB failed boot detection...
Starting LSB: disk temperature monitoring daemon...
[ OK ] Started irqbalance daemon.
Starting Initialize hardware monitoring sensors...
Starting LSB: Load kernel modules needed to enable cpufreq scaling...
[ OK ] Started mintsystem.service.
[ OK ] Started Set the CPU Frequency Scaling governor.
Starting Restore /etc/resolv.conf if the system crashed before the ppp link was shut down...
Starting LSB: Adaptive readahead daemon...
Starting System Logging Service...
Starting Login Service...
Starting Thermal Daemon Service...
Starting Ubuntu system adjustments...
Starting Disk Manager...
Starting WPA supplicant...
[ OK ] Finished Raise network interfaces.
[ OK ] Finished Restore /etc/resolv.conf if the system crashed before the ppp link was shut down.
[ OK ] Finished Save/Restore Sound Card State.
[ OK ] Finished Initialize hardware monitoring sensors.
[ OK ] Started LSB: disk temperature monitoring daemon.
[ OK ] Reached target Sound Card.
[ OK ] Finished Remove Stale Online ext4 Metadata Check Snapshots.
[ OK ] Started LSB: Record successful boot for GRUB.
[ OK ] Started LSB: Load kernel modules needed to enable cpufreq scaling.
Starting LSB: set CPUFreq kernel parameters...
[ OK ] Finished GRUB failed boot detection.
[ OK ] Started System Logging Service.
[ OK ] Started LSB: set CPUFreq kernel parameters.
[ OK ] Started Network Name Resolution.
[ OK ] Reached target Host and Network Name Lookups.
Starting Tool to automatically collect and submit kernel crash signatures...
[ OK ] Started LSB: Adaptive readahead daemon.
[ OK ] Started Tool to automatically collect and submit kernel crash signatures.
[ OK ] Finished Detect the available GPUs and deal with any system changes.
分析日志控制他的演讲结束时有一分钟的延迟日志控制重启后如下:
Aug 29 13:24:06 Zahid-HP15s udisksd[1008]: Failed to load the 'mdraid' libblockdev plugin
Aug 29 13:24:10 Zahid-HP15s wpa_supplicant[1009]: dbus: fill_dict_with_properties dbus_interface=fi.w1.wpa_supplicant1.Interface.P2PDevice dbus_property=P2PDeviceConfig getter failed
Aug 29 13:24:10 Zahid-HP15s NetworkManager[988]: <warn> [1598687650.7084] device (wlo1): wifi-scan: active scanning for networks due to profiles with wifi.hidden=yes. This makes you trackable
Aug 29 13:24:13 Zahid-HP15s wpa_supplicant[1009]: bgscan simple: Failed to enable signal strength monitoring
Aug 29 13:24:23 Zahid-HP15s systemd-resolved[913]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP.
Aug 29 13:24:23 Zahid-HP15s systemd-resolved[913]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP.
Aug 29 13:24:30 Zahid-HP15s /slick-greeter-set-keyboard-layout[2973]: Result: Warning! Multiple definitions of keyboard model
Warning! Multiple definitions of keyboard layout
Aug 29 13:25:16 Zahid-HP15s cinnamon-session[6142]: WARNING: t+0.30993s: Could not read /home/zahid/.config/autostart/warpinator-autostart.desktop: Key file does not have key “Name” in group “Desktop Entry”
Aug 29 13:25:27 Zahid-HP15s cinnamon-session[6142]: WARNING: t+10.73768s: Detected that screensaver has appeared on the bus
zahid@Zahid-HP15s ~ $ cat /var/log/syslog |错误*
Sep 3 16:27:16 Zahid-HP15s kernel: [ 0.317325] ACPI Error: Aborting method \_SB.PCI0.RP05.PCRP._ON due to previous error (AE_NOT_FOUND) (20200528/psparse-529)
Sep 3 16:27:16 Zahid-HP15s kernel: [ 2.225653] pcieport 0000:00:1d.0: DPC: error containment capabilities: Int Msg #0, RPExt+ PoisonedTLP+ SwTrigger+ RP PIO Log 4, DL_ActiveErr+
Sep 3 16:27:16 Zahid-HP15s kernel: [ 2.226157] pcieport 0000:00:1d.1: DPC: error containment capabilities: Int Msg #0, RPExt+ PoisonedTLP+ SwTrigger+ RP PIO Log 4, DL_ActiveErr+
Sep 3 16:27:16 Zahid-HP15s kernel: [ 12.536398] EXT4-fs (sda7): re-mounted. Opts: errors=remount-ro
Sep 3 16:27:21 Zahid-HP15s thermald[722]: [WARN]error: could not parse file /etc/thermald/thermal-conf.xml
Sep 3 16:27:21 Zahid-HP15s thermald[722]: [WARN]error: could not parse file /etc/thermald/thermal-conf.xml
Sep 3 16:27:21 Zahid-HP15s thermald[722]: [WARN]error: could not parse file /etc/thermald/thermal-conf.xml
猫 /var/log/dmesg:
[ 8.361162] systemd[1]: Inserted module 'autofs4'
[ 8.973333] systemd[1]: systemd 245.4-4ubuntu3.2 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=hybrid)
[ 8.992651] systemd[1]: Detected architecture x86-64.
[ 9.030608] systemd[1]: Set hostname to <Zahid-HP15s>.
[ 11.633242] systemd[1]: /lib/systemd/system/dbus.socket:5: ListenStream= references a path below legacy directory /var/run/, updating /var/run/dbus/system_bus_socket → /run/dbus/system_bus_socket; please update the unit file accordingly.
[ 12.148373] systemd[1]: Created slice system-modprobe.slice.
[ 12.148593] systemd[1]: Created slice system-systemd\x2dfsck.slice.
[ 12.148858] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[ 12.148882] systemd[1]: Reached target User and Group Name Lookups.
[ 12.148891] systemd[1]: Reached target Remote File Systems.
[ 12.148895] systemd[1]: Reached target Slices.
[ 12.148942] systemd[1]: Listening on Device-mapper event daemon FIFOs.
[ 12.148992] systemd[1]: Listening on LVM2 poll daemon socket.
[ 12.166706] systemd[1]: Listening on Syslog Socket.
[ 12.167731] systemd[1]: Listening on Process Core Dump Socket.
[ 12.167769] systemd[1]: Listening on fsck to fsckd communication Socket.
[ 12.167792] systemd[1]: Listening on initctl Compatibility Named Pipe.
[ 12.167873] systemd[1]: Listening on Journal Audit Socket.
[ 12.167909] systemd[1]: Listening on Journal Socket (/dev/log).
[ 12.167949] systemd[1]: Listening on Journal Socket.
[ 12.167990] systemd[1]: Listening on udev Control Socket.
[ 12.168021] systemd[1]: Listening on udev Kernel Socket.
[ 12.168622] systemd[1]: Mounting Huge Pages File System...
[ 12.169214] systemd[1]: Mounting POSIX Message Queue File System...
[ 12.169972] systemd[1]: Mounting Kernel Debug File System...
[ 12.170549] systemd[1]: Mounting Kernel Trace File System...
[ 12.171551] systemd[1]: Starting Journal Service...
[ 12.172413] systemd[1]: Starting Availability of block devices...
[ 12.173585] systemd[1]: Starting Set the console keyboard layout...
[ 12.174504] systemd[1]: Starting Create list of static device nodes for the current kernel...
[ 12.175571] systemd[1]: Starting Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling...
[ 12.175611] systemd[1]: Condition check resulted in Load Kernel Module drm being skipped.
[ 12.383942] systemd[1]: Condition check resulted in Set Up Additional Binary Formats being skipped.
[ 12.383983] systemd[1]: Condition check resulted in File System Check on Root Device being skipped.
[ 12.420942] systemd[1]: Starting Load Kernel Modules...
[ 12.421690] systemd[1]: Starting Remount Root and Kernel File Systems...
[ 12.422490] systemd[1]: Starting udev Coldplug all Devices...
[ 12.423252] systemd[1]: Starting Uncomplicated firewall...
[ 12.424317] systemd[1]: Started Journal Service.
[ 12.536398] kernel: EXT4-fs (sda7): re-mounted. Opts: errors=remount-ro
[ 13.268397] kernel: bpfilter: Loaded bpfilter_umh pid 362
[ 13.268469] unknown: Started bpfilter
[ 13.853807] kernel: lp: driver loaded but no devices found
[ 14.018916] kernel: ppdev: user-space parallel port driver
[ 18.239605] kernel: input: HP Wireless hotkeys as /devices/virtual/input/input8
[ 18.457909] kernel: mei_me 0000:00:16.0: enabling device (0000 -> 0002)
[ 18.662880] kernel: pstore: Using crash dump compression: deflate
[ 18.662899] kernel: pstore: Registered efi as persistent store backend
[ 18.674479] kernel: intel_rapl_common: Found RAPL domain package
[ 18.674530] kernel: proc_thermal 0000:00:04.0: Creating sysfs group for PROC_THERMAL_PCI
[ 18.728619] kernel: dw-apb-uart.2: ttyS4 at MMIO 0x4010002000 (irq = 20, base_baud = 7500000) is a 16550A
[ 18.753628] kernel: ee1004 0-0050: 512 byte EE1004-compliant SPD EEPROM, read-only
[ 18.834225] kernel: input: ELAN0709:00 04F3:30A0 Mouse as /devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-1/i2c-ELAN0709:00/0018:04F3:30A0.0001/input/input10
[ 18.834303] kernel: input: ELAN0709:00 04F3:30A0 Touchpad as /devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-1/i2c-ELAN0709:00/0018:04F3:30A0.0001/input/input12
[ 18.834376] kernel: hid-multitouch 0018:04F3:30A0.0001: input,hidraw0: I2C HID v1.00 Mouse [ELAN0709:00 04F3:30A0] on i2c-ELAN0709:00
[ 18.869646] kernel: cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 18.869913] kernel: cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 18.874136] kernel: intel_rapl_common: Found RAPL domain package
[ 18.874137] kernel: intel_rapl_common: Found RAPL domain core
[ 18.874138] kernel: intel_rapl_common: Found RAPL domain uncore
[ 19.014397] kernel: mei_hdcp 0000:00:16.0-b638ab7e-94e2-4ea2-a552-d1c54b627f04: bound 0000:00:02.0 (ops i915_hdcp_component_ops [i915])
[ 19.233473] kernel: Bluetooth: Core ver 2.22
[ 19.233491] kernel: NET: Registered protocol family 31
[ 19.233491] kernel: Bluetooth: HCI device and connection manager initialized
[ 19.233495] kernel: Bluetooth: HCI socket layer initialized
[ 19.233496] kernel: Bluetooth: L2CAP socket layer initialized
[ 19.233498] kernel: Bluetooth: SCO socket layer initialized
[ 19.487156] kernel: input: HP WMI hotkeys as /devices/virtual/input/input9
[ 19.586363] kernel: mc: Linux media interface: v0.10
[ 19.641041] kernel: rtl8821ce: loading out-of-tree module taints kernel.
[ 19.641722] kernel: rtl8821ce: module verification failed: signature and/or required key missing - tainting kernel
[ 19.643816] kernel: rtl8821ce 0000:02:00.0: enabling device (0000 -> 0003)
[ 19.743727] kernel: videodev: Linux video capture interface: v2.00
[ 19.753481] kernel: rtl8821ce 0000:02:00.0 wlo1: renamed from wlan0
[ 19.762035] kernel: usbcore: registered new interface driver btusb
[ 19.763134] kernel: Bluetooth: hci0: RTL: examining hci_ver=08 hci_rev=000c lmp_ver=08 lmp_subver=8821
[ 19.764124] kernel: Bluetooth: hci0: RTL: rom_version status=0 version=1
[ 19.764125] kernel: Bluetooth: hci0: RTL: loading rtl_bt/rtl8821c_fw.bin
[ 19.796235] kernel: RAPL PMU: API unit is 2^-32 Joules, 3 fixed counters, 655360 ms ovfl timer
[ 19.796237] kernel: RAPL PMU: hw unit of domain pp0-core 2^-14 Joules
[ 19.796237] kernel: RAPL PMU: hw unit of domain package 2^-14 Joules
[ 19.796238] kernel: RAPL PMU: hw unit of domain pp1-gpu 2^-14 Joules
[ 19.860696] kernel: Bluetooth: hci0: RTL: loading rtl_bt/rtl8821c_config.bin
[ 19.860774] kernel: Bluetooth: hci0: RTL: cfg_sz 10, total sz 21678
[ 20.145893] kernel: uvcvideo: Found UVC 1.00 device HP TrueVision HD Camera (0408:5365)
[ 20.164444] kernel: uvcvideo 1-5:1.0: Entity type for entity Extension 4 was not initialized!
[ 20.164446] kernel: uvcvideo 1-5:1.0: Entity type for entity Extension 3 was not initialized!
[ 20.164446] kernel: uvcvideo 1-5:1.0: Entity type for entity Processing 2 was not initialized!
[ 20.164447] kernel: uvcvideo 1-5:1.0: Entity type for entity Camera 1 was not initialized!
[ 20.164491] kernel: input: HP TrueVision HD Camera: HP Tru as /devices/pci0000:00/0000:00:14.0/usb1/1-5/1-5:1.0/input/input13
[ 20.164534] kernel: usbcore: registered new interface driver uvcvideo
[ 20.164535] kernel: USB Video Class driver (1.1.1)
[ 20.226540] kernel: snd_hda_intel 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040380
[ 20.226562] kernel: snd_hda_intel 0000:00:1f.3: enabling device (0000 -> 0002)
[ 20.226774] kernel: snd_hda_intel 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[ 20.272168] kernel: Bluetooth: hci0: RTL: fw version 0x826ca99e
[ 20.384793] kernel: snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC236: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:speaker
[ 20.384795] kernel: snd_hda_codec_realtek hdaudioC0D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[ 20.384796] kernel: snd_hda_codec_realtek hdaudioC0D0: hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
[ 20.384797] kernel: snd_hda_codec_realtek hdaudioC0D0: mono: mono_out=0x0
[ 20.384797] kernel: snd_hda_codec_realtek hdaudioC0D0: inputs:
[ 20.456176] kernel: input: HDA Intel PCH Headphone as /devices/pci0000:00/0000:00:1f.3/sound/card0/input15
[ 20.456204] kernel: input: HDA Intel PCH HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input16
[ 20.456231] kernel: input: HDA Intel PCH HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input17
[ 20.456258] kernel: input: HDA Intel PCH HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input18
[ 20.456280] kernel: input: HDA Intel PCH HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input19
[ 20.456302] kernel: input: HDA Intel PCH HDMI/DP,pcm=10 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input20
[ 20.456327] kernel: input: HDA Intel PCH HDMI/DP,pcm=11 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input21
[ 20.456348] kernel: input: HDA Intel PCH HDMI/DP,pcm=12 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input22
[ 22.364592] kernel: Adding 3000316k swap on /dev/sda8. Priority:-2 extents:1 across:3000316k FS
[ 22.536315] kernel: EXT4-fs (sda9): mounted filesystem with ordered data mode. Opts: (null)
[ 24.658301] kernel: audit: type=1400 audit(1599130632.907:2): apparmor="STATUS" operation="profile_load" profile="unconfined" name="libreoffice-senddoc" pid=668 comm="apparmor_parser"
[ 24.920964] kernel: audit: type=1400 audit(1599130633.171:10): apparmor="STATUS" operation="profile_load" profile="unconfined" name="libreoffice-xpdfimport" pid=678 comm="apparmor_parser"
[ 24.973595] kernel: audit: type=1400 audit(1599130633.223:11): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/sbin/cups-browsed" pid=680 comm="apparmor_parser"
[ 32.043775] kernel: Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 32.043778] kernel: Bluetooth: BNEP filters: protocol multicast
[ 32.043783] kernel: Bluetooth: BNEP socket layer initialized
[ 32.092795] kernel: NET: Registered protocol family 38
答案1
作为一般性答案,我会说,如果您想快速进入 root 登录...无论您的硬件如何:不要使用 systemd。使用旧的 openrc,我用我的 core 2 在不到 20 秒的时间内达到 root 登录。(4 个磁盘 + 5 个 USB2 设备 + 2 个 LAN)(*)
我不知道您的发行版是否提供 init 系统的选择,但如果提供,请不要犹豫。
更具体地说,无论 CPU 能力如何,您的跟踪显示的几个操作都会花费一些时间。例如,取自您的 systemd-analyze key-chain :
FSCK:(文件系统检查)取决于设置的 fsck 选项、文件系统的数量、类型、make 选项、引导时它们是否干净的事实... => 检查所有这些选项。无论你的CPU是什么......这些操作都是有时间限制的。
时间同步:您的系统似乎正在向某个时间服务器询问时间。根据其可用性,回答所需的时间...您确定需要在每次启动时实现这一点吗?您对关机时保存的值以及电池支持的内部时钟的可靠性不满意吗?
网络管理器:据说您不需要这个来建立以太网 LAN 链接,我假设您不想连接到某些 wifi。这可能需要很长时间。特别是等待网络管理器枚举可用的 wifi 网络。如果您有方便的方法通过某些以太网链接链接到您的互联网路由器。更喜欢!
无论如何,我承认网络管理器很方便,因为它的使用不需要用户方面的任何特定知识。但是,出于基本的安全原因,我不希望这种服务在初始化时立即启动。我的意思是在对自己进行几次健全检查之前。
ETC...
(*) 斜体是因为我知道这是我在 2010 年代初分享的经历。酷炫在他下面的评论中得到了不同的答案。