Exremely slow boot time on 18.3 Sylvia

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Ivasan

Exremely slow boot time on 18.3 Sylvia

Post by Ivasan »

I have just upgraded to Sylvia (18.3). And I have started experiencing extremely slow boot times : >5min. I have tried searching and google-ing, however yet without success.
I see the problem -I think- but have not been able to find a solution. I have followed some earlier instructions:

Code: Select all

dmesg > ~/Desktop/dmesg.txt
, then I got the following results:

Code: Select all

[   24.874637] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   24.874640] Bluetooth: BNEP filters: protocol multicast
[   24.874644] Bluetooth: BNEP socket layer initialized
[   29.107223] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   29.110389] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[  327.777242] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[  335.816325] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20150930/nsarguments-95)
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
deepakdeshp
Level 20
Level 20
Posts: 12334
Joined: Sun Aug 09, 2015 10:00 am

Re: Exremely slow boot time on 18.3 Sylvia

Post by deepakdeshp »

You can try to find out what is taking the most time with systemd

Code: Select all

systemd-analyze blame
https://askubuntu.com/questions/760694/ ... le_rich_qa
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak

Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
Ivasan

Re: Exremely slow boot time on 18.3 Sylvia

Post by Ivasan »

The networking services takes 5 min and 8 seconds.
I have made a workaround, however I do not think this is a proper solution.
I have set in
/lib/systemd/system/networking.service
The TimeOut from 5 min to:
TimeoutStartSec=10sec.

In contrast I do not experience any networking(wifi or eth) problems.
User avatar
thx-1138
Level 8
Level 8
Posts: 2092
Joined: Fri Mar 10, 2017 12:15 pm
Location: Athens, Greece

Re: Exremely slow boot time on 18.3 Sylvia

Post by thx-1138 »

...if NetworkManager-wait-online.service is the culprit taking ages (according to systemd-analyze blame), you could try masking it's service...and usually this doesn't have any ill side-effects...
sudo systemctl mask NetworkManager-wait-online.service

...also, from the snippet that you posted above, if the problem somehow is due to IPv6, you could try disabling such for your connection under NetworkManager...
Or else, in a more drastic manner, gksudo xed /etc/default/grub....change as:
GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 quiet splash"...save, then sudo update-grub, and IPv6 will be completely disabled...
Ivasan

Re: Exremely slow boot time on 18.3 Sylvia

Post by Ivasan »

Unfortunately, none of the mentioned solutions helped the booting process. I played around with it. And whatever the Timeout period it always waits for that then continues. :(
Sir Charles

Re: Exremely slow boot time on 18.3 Sylvia

Post by Sir Charles »

Just a thought. If you have a swap partition, is it being mounted at boot? Sometimes a slow boot can be due to unmatched UUID for the actual swap partition on disk and the one specified in /etc/fstab. In order to exclude this possibility you could run a check:

Code: Select all

sudo blkid -o list
and compare the UUID for swap with the one you get from

Code: Select all

cat /etc/fstab
Ivasan

Re: Exremely slow boot time on 18.3 Sylvia

Post by Ivasan »

I have a swap partition. I am fairly new to linux so I can not really answer the question with confidence if that is mounted @boot. Now I did the recommended check and there seems to be an error, I show the results:
device fs_type label mount point UUID
----------------------------------------------------------------------------------
/dev/sda1 ntfs System Reserved (not mounted) DA2AD5452AD51F77
/dev/sda2 ntfs (not mounted) 8C3221E93221D94A
/dev/sda3 ntfs Data (not mounted) 04DC39D4DC39C0AA
/dev/sda5 ext4 / 38c0c22d-0468-43fa-a1c9-9ed7d780470c
/dev/sda6 swap [SWAP] 921a5b2f-b8fe-4170-aa4f-4d48a3b25935


and in /etc/fstab:

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda5 during installation
UUID=38c0c22d-0468-43fa-a1c9-9ed7d780470c / ext4 errors=remount-ro 0 1
# swap was on /dev/sda6 during installation
UUID=921a5b2f-b8fe-4170-aa4f-4d48a3b25935 none swap sw 0 0
Sir Charles

Re: Exremely slow boot time on 18.3 Sylvia

Post by Sir Charles »

Hi Ivasan,

Thanks for posting the outputs.
They look ok. If I am not mistaken, errors=remount-ro , means basically that if there are any errors when mounting the root partition it will be mounted "read-only" and not "read-write". We can very well rule out the possibility of a "misplaced" swap.

Cheers
Locked

Return to “Installation & Boot”