Laptop Boot time is this normal?

My boot time is 2 minutes 20 seconds. At 25 seconds the screen pauses with
“/dev/sda2: clean, 463926/61030400 files, 9210624/244112696, blocks”. The text size is about 15 point.
At 60 seconds the screen flashes and now the “/dev/sda2: clean, 463926/61030400 files, 9210624/244112696, blocks” text size is about 10 point.
Now it takes another 1 minute 20 seconds to reach Desktop, boot complete. This is on my HP laptop (show in this post). However, my Asus laptop has the same issue but boot time is only 1 minute 30 seconds. Which is nearly half the time of the HP. Any advice wellcome.

System:
  Kernel: 5.15.78-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-5.15-x86_64
    root=UUID=2b3f64a3-6e55-4ab7-aa36-d576f361a51b rw quiet apparmor=1
    security=apparmor udev.log_priority=3
  Desktop: Xfce v: 4.16.1 tk: Gtk v: 3.24.34 info: xfce4-panel wm: xfwm
    v: 4.16.1 dm: LightDM v: 1.32.0 Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Laptop System: HP product: HP ProBook 470 G3 v: N/A serial: <filter>
    Chassis: type: 10 serial: <filter>
  Mobo: HP model: 8102 v: KBC Version 40.73 serial: <filter> UEFI: HP
    v: N78 Ver. 01.53 date: 11/24/2021
Battery:
  ID-1: BAT0 charge: 44.6 Wh (91.0%) condition: 49.0/55.1 Wh (88.9%)
    volts: 11.8 min: 10.7 model: Hewlett-Packard Primary type: Li-ion
    serial: <filter> status: discharging cycles: 439
Memory:
  RAM: total: 7.66 GiB used: 1.83 GiB (23.9%)
  Array-1: capacity: 16 GiB slots: 2 EC: None max-module-size: 8 GiB
    note: est.
  Device-1: Bottom-Slot 2(under) type: DDR3 detail: synchronous unbuffered
    (unregistered) size: 8 GiB speed: 1600 MT/s volts: curr: 1.35 width (bits):
    data: 64 total: 64 manufacturer: Hynix/Hyundai part-no: HMT41GS6BFR8A-PB
    serial: <filter>
  Device-2: Bottom-Slot 1(top) type: no module installed
CPU:
  Info: model: Intel Core i7-6500U socket: U3E1 bits: 64 type: MT MCP
    arch: Skylake gen: core 6 level: v3 note: check built: 2015
    process: Intel 14nm family: 6 model-id: 0x4E (78) stepping: 3
    microcode: 0xF0
  Topology: cpus: 1x cores: 2 tpc: 2 threads: 4 smt: enabled cache:
    L1: 128 KiB desc: d-2x32 KiB; i-2x32 KiB L2: 512 KiB desc: 2x256 KiB
    L3: 4 MiB desc: 1x4 MiB
  Speed (MHz): avg: 500 min/max: 400/3100 base/boost: 2800/8300 scaling:
    driver: intel_pstate governor: powersave volts: 0.9 V ext-clock: 100 MHz
    cores: 1: 500 2: 500 3: 500 4: 500 bogomips: 20810
  Flags: 3dnowprefetch abm acpi adx aes aperfmperf apic arat
    arch_capabilities arch_perfmon art avx avx2 bmi1 bmi2 bts clflush
    clflushopt cmov constant_tsc cpuid cpuid_fault cx16 cx8 de ds_cpl dtes64
    dtherm dts epb erms est f16c flush_l1d fma fpu fsgsbase fxsr ht hwp
    hwp_act_window hwp_epp hwp_notify ibpb ibrs ida intel_pt invpcid
    invpcid_single lahf_lm lm mca mce md_clear mmx monitor movbe mpx msr mtrr
    nonstop_tsc nopl nx pae pat pbe pcid pclmulqdq pdcm pdpe1gb pebs pge pln
    pni popcnt pse pse36 pti pts rdrand rdseed rdtscp rep_good sdbg sep smap
    smep ss ssbd sse sse2 sse4_1 sse4_2 ssse3 stibp syscall tm tm2 tsc
    tsc_adjust tsc_deadline_timer vme x2apic xgetbv1 xsave xsavec xsaveopt
    xsaves xtopology xtpr
  Vulnerabilities:
  Type: itlb_multihit status: KVM: VMX unsupported
  Type: l1tf mitigation: PTE Inversion
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable
  Type: meltdown mitigation: PTI
  Type: mmio_stale_data mitigation: Clear CPU buffers; SMT vulnerable
  Type: retbleed mitigation: IBRS
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl and seccomp
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: IBRS, IBPB: conditional, RSB filling,
    PBRSB-eIBRS: Not affected
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel Skylake GT2 [HD Graphics 520] vendor: Hewlett-Packard
    driver: i915 v: kernel arch: Gen-9 process: Intel 14n built: 2015-16 ports:
    active: eDP-1 empty: DP-1,HDMI-A-1,HDMI-A-2 bus-ID: 00:02.0
    chip-ID: 8086:1916 class-ID: 0300
  Device-2: AMD Topaz XT [Radeon R7 M260/M265 / M340/M360 M440/M445 530/535
    620/625 Mobile] vendor: Hewlett-Packard driver: amdgpu v: kernel
    arch: GCN-3 code: Volcanic Islands process: TSMC 28nm built: 2014-19 pcie:
    gen: 1 speed: 2.5 GT/s lanes: 4 link-max: gen: 3 speed: 8 GT/s lanes: 8
    bus-ID: 01:00.0 chip-ID: 1002:6900 class-ID: 0380 temp: 28.0 C
  Device-3: Cheng Uei Precision Industry (Foxlink) HP HD Camera type: USB
    driver: uvcvideo bus-ID: 1-6:2 chip-ID: 05c8:0383 class-ID: 0e02
  Display: x11 server: X.Org v: 21.1.4 with: Xwayland v: 22.1.5
    compositor: xfwm v: 4.16.1 driver: X: loaded: amdgpu,modesetting
    alternate: fbdev,vesa dri: iris,radeonsi gpu: i915 display-ID: :0.0
    screens: 1
  Screen-1: 0 s-res: 1600x900 s-dpi: 96 s-size: 423x238mm (16.65x9.37")
    s-diag: 485mm (19.11")
  Monitor-1: eDP-1 model: AU Optronics 0x219e built: 2015 res: 1600x900
    hz: 60 dpi: 106 gamma: 1.2 size: 382x214mm (15.04x8.43") diag: 438mm (17.2")
    ratio: 16:9 modes: 1600x900
  API: OpenGL Message: Unable to show GL data. Required tool glxinfo missing.
Audio:
  Device-1: Intel Sunrise Point-LP HD Audio vendor: Hewlett-Packard
    driver: snd_hda_intel v: kernel alternate: snd_soc_skl bus-ID: 00:1f.3
    chip-ID: 8086:9d70 class-ID: 0403
  Sound API: ALSA v: k5.15.78-1-MANJARO running: yes
  Sound Server-1: JACK v: 1.9.21 running: no
  Sound Server-2: PulseAudio v: 16.1 running: yes
  Sound Server-3: PipeWire v: 0.3.59 running: yes
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Hewlett-Packard driver: r8169 v: kernel pcie: speed: Unknown
    lanes: 63 link-max: gen: 6 speed: 64 GT/s port: 4000 bus-ID: 02:00.0
    chip-ID: 10ec:8168 class-ID: 0200
  IF: enp2s0 state: down mac: <filter>
  Device-2: Intel Wireless 8260 driver: iwlwifi v: kernel pcie: gen: 1
    speed: 2.5 GT/s lanes: 1 bus-ID: 03:00.0 chip-ID: 8086:24f3 class-ID: 0280
  IF: wlp3s0 state: up mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: noprefixroute scope: link
  WAN IP: <filter>
Bluetooth:
  Device-1: Intel Bluetooth wireless interface type: USB driver: btusb v: 0.8
    bus-ID: 1-7:3 chip-ID: 8087:0a2b class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 1 state: up address: see --recommends
Logical:
  Message: No logical block device data found.
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 931.51 GiB used: 16.53 GiB (1.8%)
  ID-1: /dev/sda maj-min: 8:0 vendor: Samsung model: ST1000LM024 HN-M101MBB
    family: Seagate SpinPoint M8 (AF) size: 931.51 GiB block-size:
    physical: 4096 B logical: 512 B sata: 3.1 speed: 6.0 Gb/s type: HDD
    rpm: 5400 serial: <filter> rev: 0001 temp: 23 C scheme: GPT
  SMART: yes state: enabled health: PASSED on: 283d 2h cycles: 5169 Old-Age:
    g-sense error rate: 244
  Optical-1: /dev/sr0 vendor: hp model: DVDRW DU8A6SH rev: DH61
    dev-links: cdrom
  Features: speed: 24 multisession: yes audio: yes dvd: yes
    rw: cd-r,cd-rw,dvd-r,dvd-ram state: running
Partition:
  ID-1: / raw-size: 931.22 GiB size: 915.53 GiB (98.32%) used: 16.53 GiB (1.8%)
    fs: ext4 block-size: 4096 B dev: /dev/sda2 maj-min: 8:2 label: N/A
    uuid: 2b3f64a3-6e55-4ab7-aa36-d576f361a51b
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 312 KiB (0.1%) fs: vfat block-size: 512 B dev: /dev/sda1 maj-min: 8:1
    label: NO_LABEL uuid: BE39-D070
Swap:
  Alert: No swap data was found.
Unmounted:
  Message: No unmounted partitions found.
USB:
  Hub-1: 1-0:1 info: Hi-speed hub with single TT ports: 12 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Device-1: 1-2:5 info: USB OPTICAL MOUSE type: Mouse
    driver: hid-generic,usbhid interfaces: 1 rev: 1.1 speed: 1.5 Mb/s
    power: 100mA chip-ID: 0000:3825 class-ID: 0301
  Device-2: 1-6:2 info: Cheng Uei Precision Industry (Foxlink) HP HD Camera
    type: Video driver: uvcvideo interfaces: 2 rev: 2.0 speed: 480 Mb/s
    power: 500mA chip-ID: 05c8:0383 class-ID: 0e02
  Device-3: 1-7:3 info: Intel Bluetooth wireless interface type: Bluetooth
    driver: btusb interfaces: 2 rev: 2.0 speed: 12 Mb/s power: 100mA
    chip-ID: 8087:0a2b class-ID: e001
  Device-4: 1-8:4 info: Validity Sensors VFS495 Fingerprint Reader
    type: <vendor specific> driver: N/A interfaces: 1 rev: 1.1 speed: 12 Mb/s
    power: 100mA chip-ID: 138a:003f class-ID: ff00 serial: <filter>
  Hub-2: 2-0:1 info: Super-speed hub ports: 6 rev: 3.0 speed: 5 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
Sensors:
  System Temperatures: cpu: 25.0 C pch: 27.5 C mobo: N/A gpu: amdgpu
    temp: 28.0 C
  Fan Speeds (RPM): N/A
Info:
  Processes: 204 Uptime: 8m wakeups: 3 Init: systemd v: 251 default: graphical
  tool: systemctl Compilers: gcc: 12.2.0 clang: 14.0.6 Packages: pm: pacman
  pkgs: 1236 libs: 369 tools: pamac pm: flatpak pkgs: 0 Shell: Bash (sudo)
  v: 5.1.16 running-in: xfce4-terminal inxi: 3.3.23
[bugster@470g3 ~]$ 

For sanity’s sake replace that 5400-RPM HDD with an SSD – but no, 2:20 is even on that a bit long.

Often it’s a timeout on a non-existent swap-partiion or file or other filesystem. Check your /etc/fstab and cross-reference mentioned UUIDs with output of sudo blkid. If your /etc/fstab mentions a swap file make sure said file in fact exists.

Hi @Cencar44,

As @rene said, replacing the HDD with an SSD would do wonders. But that is quite long. Let’s see if we can troubleshoot it, at least. Please provide the output of:

systemd-analyze

And

systemd-analyze blame --no-pager

That last one can be long, but post everything nonetheless.

Noticing you are using a laptop, it might be caused by you not properly shutting down your system…
Which in turn makes the bootup re-check your hard-drive called fsck which can take long depending on the damage done by a non-clean shut-down.

Replacing hardware with faster hardware is not a solution, especially if you consider that not everyone is a millionaire able to buy the latest and fastest hardware available…
The poster might even live in a country where they don’t sell or are so high priced it is un-afordable for their budget

1 Like

Hi TriMoon, No as posted this happens with both laptops and I am diligent about bringing up the logout screen and select "Shut Down"a

Then let me warn you that sooner or later your Linux wont be able to boot at all, because of file corruptions, your choice :wink:

Those corruption stuff start showing with slower bootups…

Hi Mirdarthos, here are the outputs you requested.

 systemd-analyze
Startup finished in 9.886s (firmware) + 6.154s (loader) + 7.046s (kernel) + 47.449s (userspace) = 1min 10.536s 
graphical.target reached after 46.632s in userspace.

systemd-analyze blame --no-pager
22.688s systemd-journal-flush.service
11.365s dev-sda2.device
 9.173s snapd.service
 6.676s udisks2.service
 6.004s upower.service
 5.247s ModemManager.service
 5.150s lightdm.service
 4.113s polkit.service
 3.837s systemd-udevd.service
 3.832s cups.service
 3.471s apparmor.service
 3.325s avahi-daemon.service
 3.276s bluetooth.service
 3.236s dbus.service
 3.234s systemd-logind.service
 2.548s accounts-daemon.service
 2.393s NetworkManager.service
 2.277s user@1000.service
 2.149s colord.service
 2.087s tlp.service
 1.495s systemd-tmpfiles-setup-dev.service
 1.385s lvm2-monitor.service
 1.340s wpa_supplicant.service
 1.319s systemd-fsck@dev-disk-by\x2duuid-BE39\x2dD070.service
  965ms systemd-random-seed.service
  800ms systemd-tmpfiles-setup.service
  681ms dev-hugepages.mount
  679ms dev-mqueue.mount
  629ms snapd.apparmor.service
  615ms systemd-modules-load.service
  601ms kmod-static-nodes.service
  535ms ufw.service
  501ms systemd-udev-trigger.service
  469ms systemd-tmpfiles-clean.service
  422ms sys-kernel-debug.mount
  421ms sys-kernel-tracing.mount
  393ms boot-efi.mount
  351ms tmp.mount
  303ms systemd-sysctl.service
  275ms modprobe@fuse.service
  272ms systemd-remount-fs.service
  253ms systemd-backlight@backlight:intel_backlight.service
  250ms sys-kernel-config.mount
  141ms systemd-update-utmp.service
  127ms systemd-journald.service
  109ms modprobe@drm.service
  107ms modprobe@configfs.service
  101ms alsa-restore.service
   91ms rtkit-daemon.service
   85ms user-runtime-dir@1000.service
   66ms sys-fs-fuse-connections.mount
   59ms systemd-user-sessions.service
    3ms snapd.socket
    2ms proc-sys-fs-binfmt_misc.mount

wow hmmm :thinking:
That means it has to write a lot of logs to disk i guess…

Why? I no tech and I just follow standard install.

Yeah…

Please provide the output for:

journalctl --unit=systemd-journal-flush.service --no-pager --boot=-1
journalctl --unit=systemd-journal-flush.service --no-pager --boot=-1
Dec 02 15:59:16 470g3 systemd[1]: Starting Flush Journal to Persistent Storage...
Dec 02 15:59:38 470g3 systemd[1]: Finished Flush Journal to Persistent Storage.

That flush service writes the logs that are in the RAM while booting to the hard-disk…
Seeing you also use snap, it might be related to the snap(s) you have installed :woman_shrugging:

Nope no Snap or Flatpak but AUR

Let’s see if there are any warnings and/or errors present during startup. Please provide the output of:

journalctl --priority=3 --boot=0 --no-pager

Where:

  • The --priority=3 argument will limit the output to warnings and below (or above , depending on how you choose to look at it.);
  • the --boot=0 will limit the output to messages from the current boot only.
journalctl --priority=3 --boot=0 --no-pager
Dec 02 16:03:26 470g3 kernel: x86/cpu: VMX (outside TXT) disabled by BIOS
Dec 02 16:03:26 470g3 kernel: x86/cpu: SGX disabled by BIOS.
Dec 02 16:03:49 470g3 kernel: kfd kfd: amdgpu: TOPAZ  not supported in kfd
Dec 02 16:03:49 470g3 kernel: Bluetooth: hci0: Reading supported features failed (-16)
Dec 02 16:03:54 470g3 bluetoothd[704]: src/plugin.c:plugin_init() Failed to init vcp plugin
Dec 02 16:03:54 470g3 bluetoothd[704]: src/plugin.c:plugin_init() Failed to init mcp plugin
Dec 02 16:03:54 470g3 bluetoothd[704]: src/plugin.c:plugin_init() Failed to init bap plugin
Dec 02 16:04:20 470g3 lightdm[1049]: gkr-pam: couldn't unlock the login keyring.
Dec 02 17:15:30 470g3 kernel: Bluetooth: hci0: Failed to send firmware data (-38)
Dec 02 17:15:39 470g3 kernel: Bluetooth: hci0: Reading supported features failed (-16)
Dec 02 19:20:39 470g3 kernel: sd 3:0:0:0: [sdb] No Caching mode page found
Dec 02 19:20:39 470g3 kernel: sd 3:0:0:0: [sdb] Assuming drive cache: write through
Dec 02 19:30:51 470g3 kernel: sd 3:0:0:0: [sdb] No Caching mode page found
Dec 02 19:30:51 470g3 kernel: sd 3:0:0:0: [sdb] Assuming drive cache: write through

> pamac search -f snapd.service
/usr/lib/systemd/system/snapd.service is owned by snapd

> pamac info snapd
...
Required By           : discover-snap libpamac-snap-plugin
...

:woman_shrugging:

I very explicitly did not suggest it was the problem – but, oh, please. A small 256G or so SSD can be had for $20. Not exactly millions needed. Magnetic storage are obsolete paper weights generally.

And to op: you did not mention having checked /etc/fstab as per advise (although admittedly the analyze output seems to deny).

If you don’t use snap or flatpak, I think it’s safe to uninstall them:

pamac remove snapd

…and

pamac remove flatpak

And try turning off you bluetooth and rebooting, just to see if it makes a difference.

For warning tobe included you should use 4, Quoting from man journalctl: :wink:

i.e. “emerg” (0), “alert” (1), “crit” (2),
“err” (3), “warning” (4), “notice” (5), “info” (6), “debug” (7). If a single log level is specified, all messages with this log level or a lower (hence more
important) log level are shown.

1 Like

No, it’s not.

However, for some people it is one hell of a lot.