this post was submitted on 07 Oct 2023
778 points (98.0% liked)

Linux

48077 readers
743 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

Apparently the reason my computer has been taking 2 minutes to boot was a faulty network mount

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 114 points 1 year ago (3 children)

You can use systemd-analyze blame if you want raw numbers:

This command prints a list of all running units, ordered by the time they took to initialize. This information may be used to optimize boot-up times.

Good way to see if your systemd also waits 2 minutes for a network connection which already exists but it can't see it because systemd doesn't do the networking (lxc containers on proxmox in my case) lol.

Also see systemd-analyze.

[–] [email protected] 23 points 1 year ago

Also systemd-analyze critical-chain

[–] [email protected] 8 points 1 year ago* (last edited 1 year ago) (1 children)

systemd also waits 2 minutes for a network connection which already exists but it can’t see it because systemd doesn’t do the networking

Any way to speed this up? On my system in every boot it waits for network for 30s.

[–] [email protected] 1 points 1 year ago

In my case i masked the service because like i said, inside the lxc container there is no networking to do, it's done on the host (proxmox). Note that disabling the service in my case was not enough since it could be invoked by other services, and then you would have to wait again.

See this for further info and maybe arguments why you shouldn't do it.

[–] [email protected] 1 points 1 year ago* (last edited 1 year ago)

My main offender is something called updatedb.service, whatever that is.