Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: boot time over 10min

  1. #1

    boot time over 10min

    Hi

    i have Ubuntu on a dual boot. BTW my windows has UEFI boot
    also note that i'm a newbie, please dont assume I know...
    i have reinstalled several times and boot time is still over 10min

    as advised I ran systemd-analyze critical-chain
    hope someone can help.

    Code:
    graphical.target @1min 58.679s
    └─multi-user.target @1min 58.679s
      └─plymouth-quit-wait.service @35.891s +1min 22.788s
        └─systemd-user-sessions.service @35.853s +34ms
          └─network.target @35.837s
            └─NetworkManager.service @29.382s +6.454s
              └─dbus.service @29.377s
                └─basic.target @29.218s
                  └─sockets.target @29.218s
                    └─snapd.socket @29.215s +2ms
                      └─sysinit.target @29.068s
                        └─systemd-timesyncd.service @28.796s +272ms
                          └─systemd-tmpfiles-setup.service @28.631s +154ms
                            └─systemd-journal-flush.service @5.040s +23.588s
                              └─systemd-journald.service @4.443s +595ms
                                └─systemd-journald.socket @4.419s
                                  └─-.mount @4.405s
                                    └─-.slice @4.405s
    Last edited by ajgreeny; May 14th, 2023 at 08:30 PM. Reason: Code tags added

  2. #2
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: boot time over 10min

    Above says boot was 2 minutes.
    Check the log files for bad hardware and look for reasons any network issues could be slow.

  3. #3

    Re: boot time over 10min

    Hi, thanks for your reply.
    stragely enough i rebooted and checked boot time with my watch. real boot time was above 5min last tine. yet log shows less. see below:
    Code:
    graphical.target @2min 37.232s
    └─multi-user.target @2min 37.232s
      └─plymouth-quit-wait.service @34.431s +2min 2.799s
        └─systemd-user-sessions.service @34.392s +35ms
          └─network.target @34.378s
            └─NetworkManager.service @29.351s +5.027s
              └─dbus.service @29.345s
                └─basic.target @29.211s
                  └─sockets.target @29.211s
                    └─snapd.socket @29.208s +1ms
                      └─sysinit.target @29.120s
                        └─snapd.apparmor.service @26.553s +2.566s
                          └─apparmor.service @24.906s +1.646s
                            └─local-fs.target @24.904s
                              └─run-snapd-ns-snapd\x2ddesktop\x2dintegration.mnt.mount @1min 1.069s
                                └─run-snapd-ns.mount @53.666s
                                  └─local-fs-pre.target @7.637s
                                    └─systemd-tmpfiles-setup-dev.service @5.900s +1.736s
                                      └─systemd-sysusers.service @4.885s +1.011s
                                        └─systemd-remount-fs.service @4.712s +153ms
                                          └─systemd-journald.socket @4.607s
                                            └─system.slice @4.594s
                                              └─-.slice @4.594s
    please let me know how to check logs, i have NO idea
    Last edited by ajgreeny; May 15th, 2023 at 07:39 PM.

  4. #4
    Join Date
    Jun 2014
    Beans
    7,794

    Re: boot time over 10min

    The log files are located in the /var/log directory which includes boot.log files.

  5. #5
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: boot time over 10min

    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  6. #6
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: boot time over 10min

    So... are you time (with your wrist watch, the time up to the display of the graphical login screen? Or including from that to the display of the desktop?

    "Concurrent coexistence of Windows, Linux and UNIX..." || Ubuntu user # 33563, Linux user # 533637
    Sticky: Graphics Resolution | UbuntuForums 'system-info' Script | Posting Guidelines | Code Tags

  7. #7
    Join Date
    Jul 2013
    Location
    Wisconsin
    Beans
    5,022

    Re: boot time over 10min

    Quote Originally Posted by utilisateurcherchepseudo View Post
    plymouth-quit-wait.service @35.891s +1min 22.788s
    That's the one to look into.

    Please show the output of
    Code:
    cat /lib/systemd/system/plymouth-quit-wait.service
    cat /etc/systemd/system/plymouth-quit-wait.service
    systemd-analyze blame
    Last edited by ian-weisser; May 15th, 2023 at 07:06 PM.

  8. #8
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: boot time over 10min

    Quote Originally Posted by utilisateurcherchepseudo View Post
    Hi, thanks for your reply.
    stragely enough i rebooted and checked boot time with my watch. real boot time was above 5min last tine. yet log shows less. see below:
    ...
    please let me know how to check logs, i have NO idea
    To learn about most things, using a web search would be a good idea. "ubuntu log files" is what I'd suggest. There are many techniques and there might be a program to make it easier (IDK).

    Also, systemd-analyze output doesn't always say what it appears to say. That's where reading the documentation carefully will be helpful to understand all the caveats about the output for each option. There's little need for people to reproduce any documentation already on your system. Most of the options have good explanations and examples to show what can be known. For example, "blame" sorts by the time, not in the order.
    All this information is hidden in the manpage ... well, hidden to people who don't read manpages. For example,
    Code:
       systemd-analyze blame
           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.
           Note that the output might be misleading as the initialization of one service
           might be slow simply because it waits for the initialization of another
           service to complete. Also note: systemd-analyze blame doesn't display results
           for services with Type=simple, because systemd considers such services to be
           started immediately, hence no measurement of the initialization delays can be
           done. Also note that this command only shows the time units took for starting
           up, it does not show how long unit jobs spent in the execution queue. In
           particular it shows the time units spent in "activating" state, which is not
           defined for units such as device units that transition directly from
           "inactive" to "active". This command hence gives an impression of the
           performance of program code, but cannot accurately
    There are lots of "misleading" notes in the manpage.

  9. #9

    Re: boot time over 10min

    until login. after login the time is (usually, not always) very decent

  10. #10
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: boot time over 10min

    One setting I change is this in /etc/default/grub:

    changed from quiet splash to noplymouth, will see boot process rather than Ubuntu logo.
    It used to be slow enough I could track entries. They are what gets posted to log files.
    But with new faster SSD, it scrolls by very fast. If errors it stops, but last entry is rarely the issue, usually several before last entry.
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •