Slow boot time on Ubuntu Studio

I don’t know if this thread is still going but I am having the same problem with a slow boot to Ubuntu Studio. It takes my machine almost four minutes to boot. I made a video of the entire boot, however I don’t know if I can load it to this thread?

I did run systemd-analyze in the the terminal and the results are in the attached pictures.

I am a newbie so PLEASE help!!

That information is much easier to parse if you just copy and paste the content here. If you have the xclip package installed, you can just add | xclip -selection clipboard to the end of your command. Then paste like normal.

1 Like

I don’t have xclip. Ive been trying to load the video, but apparently this forum doesn’t allow Mp4 videos to be uploaded. I’ve trying to find out which video type IS allowed?

then I can change the video type and then load it to this thread…

Maybe just install xclip and do what I said? Or just copy and paste. Videos aren’t really helpful in communicating information that is text based, regardless of their format.

2 Likes

My system is a bit older. I use Kubuntu which is somewhat lighter weight. I had to run systemd-analyze and blame multiple times and research each entry. Best to make one change at a time to make sure system still is ok. Found SSD makes huge difference. If you can upgrade to SSD best to do that also.

Made sure UEFI firmware & SSD firmware at latest versions
Compare to vendors support site

sudo dmidecode -s bios-version
udisksctl status

Now my system show this. It actually now takes about 25 sec for full shutdown & reboot. Not sure where the 44 min is coming from, have not seen that before.

fred@z170-noble:~$ systemd-analyze
Startup finished in 44min 46.692s (firmware) + 5.383s (loader) + 4.112s (kernel) + 4.001s (userspace) = 45min 190ms
graphical.target reached after 3.987s in userspace.

/etc/default/grub changed from quiet splash to noplymouth, will see boot process rather than Ubuntu logo,

sudo systemctl disable NetworkManager-wait-online.service

remove snaps (many here prefer snaps)
If UEFI firmware update not supported (yet)

sudo apt-get purge fwupd

My system does not have Thunderbolt

systemctl mask bolt.service

disable unused devices:

journalctl -b | grep udisks

Check all UUIDs are correct in fstab. Often happens with another install that reformats swap or incorrect/typo entry. I now prefer labels.

If old BIOS only system with core2 Duo, there has been a kernel bug.
https://www.phoronix.com/news/Intel-Core-2-Stalls-Boot-Fix

Advanced changes:
https://wiki.archlinux.org/title/Improving_performance/Boot_process
Other references:
https://askubuntu.com/questions/1284302/is-it-possible-to-make-ubuntu-20-04-boot-faster

I ran it again and here this paste via xclip:

Doing systemd-analyze

startup finished in 5.957s (firmware) + 6.155s (loader) + 26.296s (kernel) + 2min 41.968s (userspace) = 3min 20.378s
graphical.target reached after 2min 41.949s in userspace.

For what it’s worth, what you did in that screenshot was systemd-analyze critical-chain and systemd-analyze blame not systemd-analyze time (which is what runs if you just run systemd-analyze).

when i try to post the next paste from xclip it gives me this er


ror message

Here is a screenshot of what I just tried to post but got the above error…

Surround your postings in code blocks, either with the preformatted text button (image) or by using code blocks (three backticks on separate lines before and after the paste).

Here is this information for systemd-analyze time
dan@localhost:~$ systemd-analyze time
Startup finished in 5.957s (firmware) + 6.155s (loader) + 26.296s (kernel) + 2min 41.968s (userspace) = 3min 20.378s
graphical.target reached after 2min 41.949s in userspace.
dan@localhost:~$

dan@localhost:~$ sudo dmidecode -s bios-version
[sudo] password for dan:
V1.15
dan@localhost:~$ udisksctl status
MODEL REVISION SERIAL DEVICE

WDC WD10JPVX-22JC3T0 01.01A01 WD-WX31E73TPN24 sda
SanDisk SDSSDH3 1T00 401100RL 193236803007 sdb
MATSHITADVD-RAM UJ8E0 1.00 SP00JBK03709 sr0

I have an 1 tb ssd and a 1tb old hd disk on this laptop. I think?? I put this operating system on the ssd? How can I confirm this?

You need to compare UEFI firmware with vendor’s site. And compare SSD firmware with SanDisk’s site. They should have support page for your model and show firmware versions.

Post these:
sudo parted -l
lsblk -f

<dan@localhost:~$ systemd-analyze blame
5min 41.058s plocate-updatedb.service
1min 22.692s nmbd.service
32.271s e2scrub_reap.service
30.728s logrotate.service
28.690s snapd.seeded.service
27.638s snapd.service
26.252s apport.service
18.960s fwupd-refresh.service
17.386s fwupd.service
16.216s accounts-daemon.service
15.972s gpu-manager.service
15.865s udisks2.service
15.737s NetworkManager.service
15.576s systemd-udev-settle.service
14.274s dev-sda2.device
14.005s power-profiles-daemon.service
13.993s NetworkManager-wait-online.service
13.755s polkit.service
13.586s avahi-daemon.service
13.584s bluetooth.service
13.548s dbus.service
12.023s switcheroo-control.service
12.018s thermald.service
10.147s systemd-journal-flush.service
8.171s dpkg-db-backup.service
7.471s dev-loop26.device
7.470s dev-loop25.device
lines 1-27

<dan@localhost:~$ sudo parted -l
[sudo] password for dan:
Model: ATA WDC WD10JPVX-22J (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:

Number Start End Size File system Name Flags
1 1049kB 1128MB 1127MB fat32 boot, esp
2 1128MB 1000GB 999GB ext4

Model: ATA SanDisk SDSSDH3 (scsi)
Disk /dev/sdb: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number Start End Size File system Name Flags
1 1049kB 420MB 419MB ntfs Basic data partition hidden, diag, no_automount
2 420MB 735MB 315MB fat32 EFI system partition boot, esp, no_automount
3 735MB 869MB 134MB Microsoft reserved partition msftres, no_automount
4 869MB 982GB 981GB ntfs Basic data partition msftdata
5 982GB 1000GB 18.3GB ntfs Basic data partition hidden, diag, no_automount

You are running Windows from SSD & Linux from HDD.

I thought plocate was not supposed to run at startup. Was this from a reboot?

Ubuntu would be a lot faster if / (root) was on SSD and data that is used less often for both Ubuntu & Windows was on HDD.

I agree. But it helps to know what host “machine” you are using.
I run Windows (when needed) in my Dell Inspiron, then for Ubuntu 22.04 my SSD is external in powered docking bay, but through USB 3.0 port. I use rEFInd as grub manager.

systemd-analyze time
Startup finished in 13.854s (firmware) + 17.869s (loader) + 3.925s (kernel) + 21.102s (userspace) = 56.752s
graphical.target reached after 21.086s in userspace

<dan@localhost:~$ lsblk -f
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
loop0 0 100% /snap/core18/2855
loop1 0 100% /snap/bare/5
loop2 0 100% /snap/core22/1564
loop3 0 100% /snap/core22/1748
loop4 0 100% /snap/core24/716
loop5 0 100% /snap/core24/739
loop6 0 100% /snap/filefly/2
loop7 0 100% /snap/firefox/5751
loop8 0 100% /snap/firefox/5783
loop9 0 100% /snap/firmware-updater/127
loop10 0 100% /snap/firmware-updater/167
loop12 0 100% /snap/freeshow/79
loop13 0 100% /snap/gnome-3-28-1804/198
loop14 0 100% /snap/gaming-graphics-core22/184
loop15 0 100% /snap/gnome-42-2204/176
loop16 0 100% /snap/gnome-42-2204/202
loop17 0 100% /snap/gnome-46-2404/77
loop18 0 100% /snap/gtk-common-themes/1535
loop19 0 100% /snap/mesa-2404/495
loop20 0 100% /snap/mesa-2404/143
loop21 0 100% /snap/snap-store/1218
loop22 0 100% /snap/snap-store/1248
loop23 0 100% /snap/snapd/21759
loop24 0 100% /snap/snapd/23545
loop25 0 100% /snap/snapd-desktop-integration/178
loop26 0 100% /snap/snapd-desktop-integration/253
loop27 0 100% /snap/steam/206
loop28 0 100% /snap/thunderbird/644
loop29 0 100% /snap/thunderbird/663
loop30 0 100% /snap/unvanquished/1
loop31 0 100% /snap/freeshow/82
sda
├─sda1 vfat FAT32 EB93-C43D 1G 1% /boot/efi
└─sda2 ext4 1.0 fa36a5c8-57af-4ee3-825e-2a7a11cdaf22 813.9G 6% /
sdb
├─sdb1 ntfs Recovery 22E817C5E817965F
├─sdb2 vfat FAT32 ESP B219-E5FA
├─sdb3
├─sdb4 ntfs Acer 5AB61B72B61B4DBF 155.9G 83% /media/dan/Acer
└─sdb5 ntfs Push Button Reset 50CA1D27CA1D0ABC
sr0
dan@localhost:~$

This forum is limiting how many replies I can do within a certain period of time?? I guess because I am new? It says I have to wait an HOUR to post this reply? Why is it doing this? >