Decrease boot time Zorin 16 Lite

I've recently started using Zorin 16.2 Lite on my personal (and obsolete) laptop, an HP Pavilion dv6748us. It's quite old (3gb od 667MHz DDR2 ram, Turion64 x2 Processor, and an Nvidia nForce 630M), but it's enough.

One thing that bothers me (but i know there is not much to do), are boot times. When I first installed Zorin, the first boot (as expected) took quite some time. But after setting up all my programs and fiddling with the nvidia 304.137 driver, boot times got down to 1:30 minutes (systemd-analyze time). I looked a bit on what could be stripped down to get better boot times, and ended up uninstalling flatpak and snap and disabled systemd-networkd.service. That took 40 seconds off the boot time. The thing that the first time I used systemd-analyze blame, man-db.service and udisks2.service, each one reported from 30 to 40 seconds (of what i think is "time to set up"). What is weirder, is that that only happens when I turn on the notebook after some time of being turned off, those services always take that time, but if I reboot, they take less than a half of that time.

Zorin is the only OS this notebook has installed, and the bios has no options about "fast boot", so, i dont know why that happens.

In any case, I will probably end up installing an SSD, but for the time, I want to try and reduce boot times as much as possible.

Here is some info about my system and current boot times:

fpp@fpp-dv6000:~$ inxi -Frzxxx
System:    Kernel: 5.15.0-73-generic x86_64 bits: 64 compiler: N/A Desktop: Xfce 4.16.0 tk: Gtk 3.24.20 info: xfce4-panel 
           wm: xfwm4 dm: LightDM 1.30.0 Distro: Zorin OS 16.2 base: Ubuntu 20.04 LTS Focal 
Machine:   Type: Laptop System: Hewlett-Packard product: N/A v: Rev 1 serial: <filter> Chassis: Quanta type: 10 
           serial: <filter> 
           Mobo: Quanta model: 30CF v: 85.26 serial: <filter> BIOS: Hewlett-Packard v: F.34 date: 03/22/2011 
Battery:   ID-1: BAT0 charge: 49.4 Wh condition: 49.4/55.1 Wh (90%) volts: 12.5/10.8 model: Hewlett-Packard Primary 
           type: Li-ion serial: <filter> status: Full 
CPU:       Topology: Dual Core model: AMD Turion 64 X2 Mobile TL-60 bits: 64 type: MCP arch: K8 rev.F+ rev: 2 
           L2 cache: 1024 KiB 
           flags: lm nx pae sse sse2 sse3 svm bogomips: 8000 
           Speed: 800 MHz min/max: 800/2000 MHz Core speeds (MHz): 1: 800 2: 800 
Graphics:  Device-1: NVIDIA C67 [GeForce 7150M / nForce 630M] vendor: Hewlett-Packard driver: nvidia v: 304.137 
           bus ID: 00:12.0 chip ID: 10de:0531 
           Display: x11 server: X.Org 1.19.6 driver: nvidia compositor: compton v: 0.1~beta2+20150922 
           resolution: 1280x800~60Hz 
           OpenGL: renderer: GeForce 7150M / nForce 630M/integrated/SSE2 v: 2.1.2 NVIDIA 304.137 direct render: Yes 
Audio:     Device-1: NVIDIA MCP67 High Definition Audio vendor: Hewlett-Packard driver: snd_hda_intel v: kernel 
           bus ID: 00:07.0 chip ID: 10de:055c 
           Sound Server: ALSA v: k5.15.0-73-generic 
Network:   Device-1: NVIDIA MCP67 Ethernet vendor: Hewlett-Packard driver: forcedeth v: kernel port: 30f8 bus ID: 00:0a.0 
           chip ID: 10de:054c 
           IF: enp0s10 state: down mac: <filter> 
           Device-2: Broadcom and subsidiaries BCM4321 802.11a/b/g/n vendor: Hewlett-Packard driver: b43-pci-bridge v: N/A 
           port: 30f8 bus ID: 03:00.0 chip ID: 14e4:4328 
           IF-ID-1: wlan0 state: up mac: <filter> 
Drives:    Local Storage: total: 149.05 GiB used: 13.32 GiB (8.9%) 
           ID-1: /dev/sda vendor: Hitachi model: HTS542516K9SA00 size: 149.05 GiB speed: 1.5 Gb/s serial: <filter> rev: C32P 
           scheme: MBR 
Partition: ID-1: / size: 145.16 GiB used: 13.32 GiB (9.2%) fs: ext4 dev: /dev/sda5 
Sensors:   System Temperatures: cpu: 52.0 C mobo: N/A gpu: nvidia temp: 64 C 
           Fan Speeds (RPM): N/A 
Repos:     Active apt repos in: /etc/apt/sources.list 
           1: deb http://ar.archive.ubuntu.com/ubuntu/ focal main restricted
           2: deb http://ar.archive.ubuntu.com/ubuntu/ focal-updates main restricted
           3: deb http://ar.archive.ubuntu.com/ubuntu/ focal universe
           4: deb http://ar.archive.ubuntu.com/ubuntu/ focal-updates universe
           5: deb http://ar.archive.ubuntu.com/ubuntu/ focal multiverse
           6: deb http://ar.archive.ubuntu.com/ubuntu/ focal-updates multiverse
           7: deb http://ar.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
           8: deb http://security.ubuntu.com/ubuntu focal-security main restricted
           9: deb http://security.ubuntu.com/ubuntu focal-security universe
           10: deb http://security.ubuntu.com/ubuntu focal-security multiverse
           Active apt repos in: /etc/apt/sources.list.d/google-chrome.list 
           1: deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main
           Active apt repos in: /etc/apt/sources.list.d/spotify.list 
           1: deb http://repository.spotify.com stable non-free
           Active apt repos in: /etc/apt/sources.list.d/vscode.list 
           1: deb [arch=amd64,arm64,armhf] http://packages.microsoft.com/repos/code stable main
           Active apt repos in: /etc/apt/sources.list.d/zorin.list 
           1: deb https://packages.zorinos.com/stable focal main
           2: deb https://packages.zorinos.com/patches focal main
           3: deb https://packages.zorinos.com/apps focal main
           4: deb https://packages.zorinos.com/drivers focal main restricted
           Active apt repos in: /etc/apt/sources.list.d/zorinos-ubuntu-apps-focal.list 
           1: deb http://ppa.launchpad.net/zorinos/apps/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/zorinos-ubuntu-drivers-focal.list 
           1: deb http://ppa.launchpad.net/zorinos/drivers/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/zorinos-ubuntu-patches-focal.list 
           1: deb http://ppa.launchpad.net/zorinos/patches/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/zorinos-ubuntu-stable-focal.list 
           1: deb http://ppa.launchpad.net/zorinos/stable/ubuntu focal main
Info:      Processes: 196 Uptime: 1h 15m Memory: 2.79 GiB used: 1.45 GiB (51.9%) Init: systemd v: 245 runlevel: 5 Compilers: 
           gcc: 9.4.0 alt: 9 Shell: bash v: 5.0.17 running in: xfce4-terminal inxi: 3.0.38 
fpp@fpp-dv6000:~$ systemd-analyze blame
35.090s man-db.service                                       
30.914s udisks2.service                                      
17.383s networkd-dispatcher.service                          
16.392s gpu-manager.service                                  
15.710s NetworkManager-wait-online.service                   
14.451s accounts-daemon.service                              
14.090s apt-daily-upgrade.service                            
13.526s systemd-journal-flush.service                        
10.885s logrotate.service                                    
10.712s polkit.service                                       
10.677s NetworkManager.service                               
10.578s avahi-daemon.service                                 
10.440s dev-sda5.device                                      
10.002s thermald.service                                     
 9.988s systemd-logind.service                               
 9.985s wpa_supplicant.service                               
 7.414s ModemManager.service                                 
 7.124s plymouth-quit-wait.service                           
 5.546s systemd-resolved.service                             
 3.839s rsyslog.service                                      
 3.668s colord.service                                       
 3.390s e2scrub_reap.service                                 
 3.388s systemd-udevd.service                                
 2.491s grub-common.service                                  
 2.238s apparmor.service                                     
 1.719s lm-sensors.service                                   
 1.597s lightdm.service                                      
 1.552s grub-initrd-fallback.service                         
 1.178s systemd-modules-load.service                         
  929ms systemd-random-seed.service                          
  826ms systemd-tmpfiles-setup-dev.service                   
  804ms systemd-udev-trigger.service                         
  748ms systemd-sysusers.service                             
  741ms keyboard-setup.service                               
  694ms systemd-sysctl.service                               
  685ms systemd-fsck@dev-disk-by\x2duuid-1AE1\x2d74AD.service
  660ms alsa-restore.service                                 
  596ms hddtemp.service                                      
  588ms upower.service                                       
  548ms pppd-dns.service                                     
  529ms systemd-tmpfiles-setup.service                       
  520ms modprobe@drm.service                                 
  468ms modprobe@ramoops.service                             
  461ms systemd-journald.service                             
  442ms modprobe@pstore_blk.service                          
  425ms dev-hugepages.mount                                  
  418ms dev-mqueue.mount                                     
  411ms sys-kernel-debug.mount                               
  408ms sys-kernel-tracing.mount                             
  389ms blueman-mechanism.service                            
  386ms kmod-static-nodes.service                            
  385ms systemd-backlight@backlight:acpi_video0.service      
  376ms modprobe@efi_pstore.service                          
  359ms modprobe@pstore_zone.service                         
  316ms ufw.service                                          
  294ms openvpn.service                                      
  291ms systemd-rfkill.service                               
  273ms swapfile.swap                                        
  271ms user@1000.service                                    
  247ms boot-efi.mount                                       
  245ms systemd-timesyncd.service                            
  184ms systemd-remount-fs.service                           
  182ms systemd-user-sessions.service                        
  160ms setvtrgb.service                                     
  113ms console-setup.service                                
   98ms kerneloops.service                                   
   94ms systemd-update-utmp.service                          
   72ms plymouth-read-write.service                          
   52ms modprobe@chromeos_pstore.service                     
   49ms user-runtime-dir@1000.service                        
   31ms rtkit-daemon.service                                 
   25ms plymouth-start.service                               
   25ms systemd-tmpfiles-clean.service                       
   17ms systemd-update-utmp-runlevel.service                 
   17ms sys-fs-fuse-connections.mount                        
   15ms sys-kernel-config.mount 
fpp@fpp-dv6000:~$ systemd-analyze critical-chain
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.

graphical.target @50.521s
└─udisks2.service @19.605s +30.914s
  └─basic.target @18.900s
    └─sockets.target @18.899s
      └─uuidd.socket @18.899s
        └─sysinit.target @18.762s
          └─systemd-timesyncd.service @18.516s +245ms
            └─systemd-tmpfiles-setup.service @17.963s +529ms
              └─systemd-journal-flush.service @4.430s +13.526s
                └─systemd-remount-fs.service @4.116s +184ms
                  └─systemd-journald.socket @3.702s
                    └─system.slice @3.683s
                      └─-.slice @3.683s

For those specs, the model (HP Pavilion dv6748us), age of the CMOS battery (is that that only happens when I turn on the notebook after some time of being turned off, those services always take that time, but if I reboot, they take less than a half of that time) a 50 second period to reach the Graphical target is not unusual at all.
That is quite average.
Yes, an SSD would improve that. My old computer was about the same boot time. I used that chance to get up and get a drink like coffee or D. Pepper.:wink:

1 Like

Windows uses several tricks to reduce boot time, such as fast startup, but they undermine the reliability of the system. Zorin OS never does such things.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.