SparkyLinux Forums

Installation & Upgrade => Installation => Topic started by: Erwin on October 13, 2020, 04:42:20 PM

Title: <SOLVED> Sparky boot time 4 minutes!
Post by: Erwin on October 13, 2020, 04:42:20 PM
So I have finally installed Sparky after several issues and it runs.
However there is still a problem, boot time.
From the moment GRUB start until the login it takes 4 minutes, I have no idea what is the causin problem.
Can anybody tell me where to look first?  ::)
Title: Re: Sparky boot time 4 minutes!
Post by: lami07 on October 13, 2020, 05:45:24 PM
sudo systemd-analyze
And
sudo systemd-analyze blame
Title: Re: Sparky boot time 4 minutes!
Post by: Erwin on October 13, 2020, 06:37:36 PM
Quote from: lami07 on October 13, 2020, 05:45:24 PM
sudo systemd-analyze
And
sudo systemd-analyze blame
sudo systemd-analyze
Startup finished in 37.990s (kernel) + 1min 47.177s (userspace) = 2min 25.168s
graphical.target reached after 1min 47.127s in userspace

sudo systemd-analyze blame
13.609s udisks2.service                     
7.367s systemd-udev-settle.service         
6.207s ModemManager.service               
5.721s dev-sda1.device                     
5.552s NetworkManager-wait-online.service 
5.480s accounts-daemon.service             
5.139s polkit.service                     
5.008s apparmor.service                   
4.682s e2scrub_reap.service               
4.456s avahi-daemon.service               
4.414s NetworkManager.service             
4.315s rtkit-daemon.service               
4.305s wpa_supplicant.service             
4.289s systemd-logind.service             
4.194s loadcpufreq.service                 
4.165s exim4.service                       
2.769s upower.service                     
2.437s ntp.service                         
2.369s systemd-journal-flush.service       
2.327s systemd-udevd.service               
2.252s rsyslog.service                     
2.060s systemd-journald.service           
1.617s keyboard-setup.service       
Title: Re: Sparky boot time 4 minutes!
Post by: Erwin on October 13, 2020, 06:51:13 PM
Some more info since udisk2.service take a long time:

systemd-analyze critical-chain udisks2.service
The time when unit became active or started is printed after the "@" character.
The time the unit took to start is printed after the "+" character.

udisks2.service +13.609s
└─basic.target @1min 32.815s
  └─sockets.target @1min 32.815s
    └─uuidd.socket @1min 32.815s
      └─sysinit.target @1min 32.775s
        └─systemd-udev-settle.service @3.975s +7.367s
          └─systemd-udev-trigger.service @3.078s +878ms
            └─systemd-udevd-kernel.socket @2.613s
              └─system.slice @1.908s
                └─-.slice @1.908s
Title: Re: <SOLVED> Sparky boot time 4 minutes!
Post by: Erwin on October 15, 2020, 05:17:44 PM
Installed Linux Lite and everything works smooth.
Sorry Sparky, still some work to do!
Title: Re: <SOLVED> Sparky boot time 4 minutes!
Post by: paxmark1 on October 17, 2020, 09:53:54 PM

Well for the future, you can still learn how to mark up code  via the # button to improve readability.   That will aid you in wherever you go in linux forums.