Ubuntu mate 20.04 takes too long to boot (3min)

hello everyone I quit windows and I installed ubuntu mate 20.04 yesterday but my laptop used to boot in 15 seconds back on win 8.1 and it takes more than 3 minutes to boot with ubuntu I cant understand how could this happen please help

post output of systemd-analyze blame

1 Like

Welcome, @Magdy_Atef.

To make sure what @pavlos_kairis is saying is clear:

  1. Boot into the Ubuntu MATE 20.04 system that has an unacceptable 3 minute boot time. If you're already booted up and logged in, skip this step and step 2.
  2. Log in.
  3. Go up to the Main Menu (probably at the top of the screen if you haven't changed anything yet), and search (using the provided search bar) for an application known as "Terminal". This application is used a lot for many tasks around here, particularly for troubleshooting like we're doing here.
  4. Once the Terminal has opened, you'll be presented with a strange "prompt" of your username and several other pieces of information which we do not care about here. Type into the terminal the following text (make sure you don't leave out any spaces; you can copy and paste this text into the terminal):
    systemd-analyze blame
    That text is a command for the computer to execute. Make sure you include the hyphen (-) character and then press Enter.
  5. That command should produce some output in a tabular form. Copy the output onto the clipboard and paste it into a new post in this thread. Preferably, after pasting the output of that command, highlight the text in the post and click the button that looks like a </> in the post editor. This last step will make the text a lot easier for us to read.
  6. If logging in and/or opening the terminal took a lot longer than you might expect as well, tell us about that, too: The last time I saw a topic like this, the culprit was a failing hard drive, which often affects almost every aspect of the computer's operation speed.

On a closing note, I should say that Ubuntu (MATE) usually does some initialization routines the first time you boot a newly-installed system; Ubuntu used to take up to a minute to do so on my 22-year-old Pentium III system. However, this doesn't sound like 22-year-old hardware, and if the 3 minute boot time persists even after you reboot the system once, then it's probably not installation related.

I'm sorry if I gave you too much hand-holding, but I wanted to ensure I did enough.

1 Like

Hi. Sorry to barge in.

Since there was no continue from the original poster, I have the same difficulty on boot, since I made this last upgrade.

on "sudo systemd-analyze blame" I get:

"57.652s apt-daily.service
37.770s apt-daily-upgrade.service
26.486s dev-sda5.device
25.844s systemd-journal-flush.service
21.343s NetworkManager.service
18.144s udisks2.service
17.511s accounts-daemon.service
13.060s polkit.service
13.006s dev-loop17.device
12.998s dev-loop13.device
12.998s dev-loop14.device
12.994s dev-loop12.device
12.991s dev-loop11.device
12.988s dev-loop10.device
12.987s dev-loop9.device
12.984s dev-loop8.device
12.866s dev-loop19.device
12.696s dev-loop18.device
12.650s dev-loop20.device
12.531s group-admin-daemon.service
11.189s avahi-daemon.service
11.155s dbus.service
9.295s dev-loop4.device"

even after I disabled various services through "sudo systemctl disable *.service".
Any idea how to solve this?

1 Like

Hi, @PingaP and welcome to the Ubuntu MATE Community!

1 Like

Thanks, Bombilla. And happy hollidays for everyone.

1 Like

Can anyone give an advice?

old Debian bug. search for "apt-daily takes too long". you will see comments to modify the service entry so that it starts after boot. Mine takes 5.7s

ref: Ubuntu 16.04 slow boot (apt-daily.service) - Ask Ubuntu

Go line by line to figure out why your services take too long to start.

Is your sda5 HDD, SSD, what? taking 26.4s seems a lot.

please post inxi -F nicely formatted.

3 Likes

Hi, Pavlos.

Sure. Thanks in advance.

System:
Host: Aspire-5732Z Kernel: 6.8.0-51-generic arch: x86_64 bits: 64
Desktop: MATE v: 1.26.2 Distro: Ubuntu 24.04.1 LTS (Noble Numbat)
Machine:
Type: Laptop System: Acer product: Aspire 5732Z v: V3.10
serial: LXPGU0208694404E0A1601
Mobo: Acer model: Aspire 5732Z v: V3.10 serial: N/A BIOS: Acer v: 3.10
date: 11/04/2010
Battery:
ID-1: BAT0 charge: 0% condition: 0.1/47.5 Wh (0.3%) volts: 7.4 min: 10.8
CPU:
Info: dual core model: Pentium T4400 bits: 64 type: MCP cache: L2: 1024 KiB
Speed (MHz): avg: 1200 min/max: 1200/2200 cores: 1: 1200 2: 1200
Graphics:
Device-1: Intel Mobile 4 Series Integrated Graphics driver: i915 v: kernel
Device-2: Suyin Acer/HP Integrated Webcam [CN0314] driver: uvcvideo
type: USB
Display: x11 server: X.Org v: 21.1.11 driver: X: loaded: modesetting
unloaded: fbdev,vesa dri: crocus gpu: i915 resolution: 1366x768~60Hz
API: EGL v: 1.5 drivers: crocus,swrast platforms: x11,surfaceless,device
API: OpenGL v: 4.5 compat-v: 2.1 vendor: intel mesa v: 24.0.9-0ubuntu0.2
renderer: Mesa Mobile Intel GM45 Express (CTG)
Audio:
Device-1: Intel 82801I HD Audio driver: snd_hda_intel
API: ALSA v: k6.8.0-51-generic status: kernel-api
Network:
Device-1: Qualcomm Atheros AR928X Wireless Network Adapter driver: ath9k
IF: wlp4s0 state: up mac: xx:xx:xx:xx:xx:xx
Device-2: Qualcomm Atheros AR8132 Fast Ethernet driver: atl1c
IF: enp5s0 state: down mac: xx:xx:xx:xx:xx:xx
Drives:
Local Storage: total: 186.31 GiB used: 81.59 GiB (43.8%)
ID-1: /dev/sda vendor: Toshiba model: MK2035GSS size: 186.31 GiB
Partition:
ID-1: / size: 181.83 GiB used: 81.59 GiB (44.9%) fs: ext4 dev: /dev/sda5
ID-2: /boot/efi size: 511 MiB used: 4 KiB (0.0%) fs: vfat dev: /dev/sda1
Swap:
ID-1: swap-1 type: file size: 2 GiB used: 319.8 MiB (15.6%) file: /swapfile
Sensors:
System Temperatures: cpu: 75.0 C mobo: N/A
Fan Speeds (rpm): N/A
Info:
Memory: total: 4 GiB available: 3.76 GiB used: 2.37 GiB (63.2%) igpu: 64 MiB
Processes: 183 Uptime: 2h 31m Shell: Sudo inxi: 3.3.34

Since I'm out of replies, I'll answer to last Pavlos' post. Sure, you're right, but it was booting nicely before I upgraded the system to Noble, that's why I don't think it's a hardware issue!

Ubuntu Mate is still a good option for old stuff.

Your hard disk is a Toshiba spin drive, slow in today's world. I would suggest replacing it with an SSD.

You have only 4GB ram, again low in today's world. Maybe you can add another 4GB stick ram.

CPU running at 75 C is high, clean up the ducts of the fan with compressed air.

Laptop BIOS dated 2010. Not sure if you can upgrade to the latest BIOS.

4 Likes