LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint
User Name
Password
Linux Mint This forum is for the discussion of Linux Mint.

Notices


Reply
  Search this Thread
Old 12-26-2023, 03:28 PM   #1
gexl
LQ Newbie
 
Registered: Dec 2023
Posts: 2

Rep: Reputation: 0
Question Slow boot: long firmware and loader time.


Hello! I recently installed Linux Mint (21.2 Cinnamon) and encountered a problem that my PC is taking an unusually long time to boot.
Despite exploring various solutions, I haven't yet found anything that resolves the problem.
As a newcomer to Linux I'm still navigating in the system.

Code:
systemd-analyze
Startup finished in 19.648s (firmware) + 19.672s (loader) + 6.555s (kernel) + 5.592s (userspace) = 51.468s
Code:
systemd-analyze blame
3.170s NetworkManager-wait-online.service
1.549s systemd-udev-settle.service
1.533s ifupdown-pre.service
 352ms blueman-mechanism.service
 254ms dev-nvme0n1p2.device
 230ms networkd-dispatcher.service
 201ms accounts-daemon.service
 193ms udisks2.service
...
Code:
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 @5.582s
└─multi-user.target @5.582s
  └─kerneloops.service @5.555s +26ms
    └─network-online.target @5.549s
      └─NetworkManager-wait-online.service @2.377s +3.170s
        └─NetworkManager.service @2.226s +148ms
          └─dbus.service @2.225s
            └─basic.target @2.218s
              └─sockets.target @2.218s
                └─uuidd.socket @2.218s
                  └─sysinit.target @2.216s
                    └─systemd-timesyncd.service @2.104s +112ms
                      └─systemd-tmpfiles-setup.service @2.092s +9ms
                        └─local-fs.target @2.088s
                          └─zfs-mount.service @2.081s +6ms
                            └─zfs-import.target @2.081s
Code:
cat /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/nvme0n1p2 during installation
UUID=375820d8-3df9-4e7c-a918-63c731031e7b /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/nvme0n1p1 during installation
UUID=FD0D-5F3B  /boot/efi       vfat    umask=0077      0       1
/swapfile                                 none            swap    sw              0       0
I'm hopeful that this output provides some insight into the nature of the problem. Any assistance or guidance would be greatly appreciated!
 
Old 12-27-2023, 07:19 AM   #2
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Moderator Response

Moved: This thread is more suitable in <Linux Mint> and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 12-28-2023, 11:44 PM   #3
___
Member
 
Registered: Apr 2023
Posts: 149
Blog Entries: 1

Rep: Reputation: Disabled
Question I hope LQgurus chime in, so I&others can learn.

Welcome to LQ! Sorry no guru answered. This seems to be a general Linux topic.

I guess you're saying: 51sec is a lot longer than e.g. M$Win taking 10sec (IDK how)

Maybe you can somehow configure [efi?] firmware (again, IDK; hopefully some LQ'er does), so it takes the typical few seconds.

I think the 'loader' is grub

The 'blame' is init=systemd (probably 'userspace'), all after 'kernel' (so not relevant I'd guess).

Here's some ideas for more info: inxi -Fza; efiboomgr -v; egrep -v '^#|^$' /etc/default/grub; journalctl -o short-monotonic -b | nc termbin.com 9999 #post url
In 1 (Googled) case, fixing efi BootOrder fixed it. The inxi will tell us all about your PC. The journal is like dmesg; you might see n-second gaps but IDK what they indicate; without the |nc, you can see hilites & issues in color. (You can put () around the cmds before the | pipe nc, to get it all in 1 URL)

Customizing the kernel .config so it doesn't need (grub=loader) initrd/ramdisk would be a huge, expert project, for max optimization.

More, added later... (At least post just your efibootmgr -v)
Quote:
The “firmware” part of the systemd-analyze report shows the time spent initialising EFI, i.e. the time elapsed between the instant you switched the power on (or the system rebooted) and the instant your boot loader started running. If you want to decrease that you’ll need to investigate your motherboard’s setup options.
https://systemd.io/BOOT_LOADER_INTERFACE/
So, the firmware time is UEFI finding your disk, I guess! (see [&Google] efibootmgr BootOrder above)

Last edited by ___; 12-29-2023 at 02:38 AM.
 
Old 01-09-2024, 07:31 AM   #4
DaxRuecker
LQ Newbie
 
Registered: Dec 2023
Posts: 1

Rep: Reputation: 1
All good now? I am waiting for your response and till then I will visit https://www.linkedin.com/pulse/use-o...-landry-lqjre/ here because I want to know about the best research paper writing service and why shoud I use it. I am not that good at writing an essay assignment and that is why I need a help.

Last edited by DaxRuecker; 01-17-2024 at 07:15 AM.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Slow boot because of long loader stage Martijn600 Linux - General 10 12-22-2018 12:53 AM
Slow boot because of long loader stage Martijn600 Linux - General 1 12-10-2018 06:31 AM
Long time member, long time *nix user, about time to say hi. stuman LinuxQuestions.org Member Intro 0 10-15-2013 07:35 AM
long long long: Too long for GCC Kenny_Strawn Programming 5 09-18-2010 01:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint

All times are GMT -5. The time now is 12:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration