You are not logged in.

#1 2021-07-15 18:22:16

FenrisLycaon
Member
From: India
Registered: 2021-05-04
Posts: 8
Website

Slow Boot Time due to fsck

I am having slow boot times after moving /home to a HDD. The mounting of the HDD is taking long time.

Here's my

systemd-analyze critical-chain
graphical.target @12.278s
└─sddm.service @12.277s
  └─systemd-user-sessions.service @12.268s +6ms
    └─network.target @12.262s
      └─NetworkManager.service @12.149s +112ms
        └─dbus.service @12.144s
          └─basic.target @12.140s
            └─sockets.target @12.140s
              └─dbus.socket @12.140s
                └─sysinit.target @12.138s
                  └─systemd-update-utmp.service @12.124s +13ms
                    └─systemd-tmpfiles-setup.service @12.062s +57ms
                      └─local-fs.target @12.059s
                        └─home.mount @11.873s +185ms
                          └─systemd-fsck@dev-disk-by\x2duuid-2532049f\x2d4915\x2d4d15\x2d9ae0\x2df3405e917c80.service @1.284s +10.585s
                            └─local-fs-pre.target @1.283s
                              └─lvm2-monitor.service @375ms +907ms
                                └─systemd-journald.socket @369ms
                                  └─-.mount @354ms
                                    └─-.slice @354ms

and

systemd-analyze blmae
10.585s systemd-fsck@dev-disk-by\x2duuid-2532049f\x2d4915\x2d4d15\x2d9ae0\x2df3405e917c80.service
  907ms lvm2-monitor.service
  560ms dev-sdb3.device
  477ms udisks2.service
  410ms systemd-random-seed.service
  260ms polkit.service
  231ms user@1000.service
  185ms home.mount
  154ms upower.service
  126ms systemd-udev-trigger.service
  112ms NetworkManager.service
   97ms bluetooth.service
   87ms systemd-logind.service
   83ms systemd-udevd.service
   77ms systemd-tmpfiles-clean.service
   75ms systemd-journal-flush.service
   64ms systemd-journald.service
   62ms modprobe@drm.service
   57ms systemd-tmpfiles-setup.service
   41ms systemd-tmpfiles-setup-dev.service
   33ms dev-disk-by\x2duuid-3980f3d4\x2de89b\x2d4adc\x2db263\x2de598690b8510.swap
   24ms modprobe@fuse.service
   22ms dev-hugepages.mount
   21ms dev-mqueue.mount
   21ms wpa_supplicant.service
   20ms systemd-modules-load.service
   20ms systemd-remount-fs.service
   20ms sys-kernel-debug.mount
   19ms sys-kernel-tracing.mount
   18ms kmod-static-nodes.service
   17ms systemd-sysctl.service
   16ms modprobe@configfs.service
   16ms systemd-rfkill.service
   16ms systemd-backlight@backlight:intel_backlight.service
   13ms systemd-update-utmp.service
   13ms user-runtime-dir@1000.service
   10ms sys-kernel-config.mount
    7ms sys-fs-fuse-connections.mount
    6ms tmp.mount
    6ms systemd-user-sessions.service
    6ms rtkit-daemon.service

I don't know why this is happening. This is my 

lsblk

sda is my HDD and sdb is my SSD.

sda      8:0    0 298.1G  0 disk 
└─sda1   8:1    0 298.1G  0 part /home
sdb      8:16   0  59.6G  0 disk 
├─sdb1   8:17   0   550M  0 part 
├─sdb2   8:18   0     2G  0 part [SWAP]
└─sdb3   8:19   0  57.1G  0 part /

Last edited by FenrisLycaon (2021-07-15 18:24:39)

Offline

#2 2021-07-15 18:36:13

okubax
Member
From: Kent, UK.
Registered: 2010-04-24
Posts: 210
Website

Re: Slow Boot Time due to fsck

I wouldn't call a 12sec boot time with a HDD as too slow especially when accounting for the file system check, fsck doesn't run on every boot or is not supposed to anyway (default is to run on every 30 boots if I remember correctly). Have you tried booting again to compare your boot times?

Offline

#3 2021-07-15 19:03:50

loqs
Member
Registered: 2014-03-06
Posts: 19,009

Re: Slow Boot Time due to fsck

What file-system is /home?  Is fsck being forced due to not being unmounted cleanly?  Please post the system journal for a boot.

Offline

Board footer

Powered by FluxBB