Slow to boot on fresh mint 18 install (solved)

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read how to get help
bushblade
Level 3
Level 3
Posts: 191
Joined: Wed Jan 22, 2014 1:30 pm

Slow to boot on fresh mint 18 install (solved)

Post by bushblade » Sun Jul 03, 2016 6:20 am

Hi I did a fresh install of Mint 18 Cinnamon yesterday and all works fine when up and running, however it takes around 3 minutes to boot up. Previously on 17.3 it booted up in under 30 seconds. I tried a fresh install again but I got the same results.

Any suggestions on how I speed it back up? I'm booting from a 120gb SSD so it should be pretty quick.

Thanks in advance.

Will
Last edited by bushblade on Sun Jul 03, 2016 11:53 am, edited 1 time in total.

turtlebay
Level 5
Level 5
Posts: 629
Joined: Mon Apr 01, 2013 12:33 pm

Re: Slow to boot on fresh mint 18 install

Post by turtlebay » Sun Jul 03, 2016 6:29 am

Perhaps your computer cannot handle the resource hungry Cinnamon DE, try 18 Mate which is less.

Cosmo.
Level 23
Level 23
Posts: 17830
Joined: Sat Dec 06, 2014 7:34 am

Re: Slow to boot on fresh mint 18 install

Post by Cosmo. » Sun Jul 03, 2016 6:50 am

3 minutes is really extreme, but LM 18 does - probably depend from the hardware - boot and login in dramatically slower than LM 17.x. In an virtual environment I get a difference between both of about 30 seconds.

User avatar
Pjotr
Level 21
Level 21
Posts: 13158
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland)
Contact:

Re: Slow to boot on fresh mint 18 install

Post by Pjotr » Sun Jul 03, 2016 6:58 am

Analyze the delay like this:
https://sites.google.com/site/easylinux ... oot-delay-
(item 12, right column)

Post the output here (use copy/paste).

By the way: in my experience, a well-configured LM 18 boots just as fast as Mint 17.x.... But this might be hardware dependent.
Tip: 10 things to do after installing Linux Mint 19.2 Tina
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.

altair4
Level 19
Level 19
Posts: 9679
Joined: Tue Feb 03, 2009 10:27 am

Re: Slow to boot on fresh mint 18 install

Post by altair4 » Sun Jul 03, 2016 7:26 am

Although the output is somewhat misleading[*][/color] you can see how much time each process is taking at boot with these commands:

Code: Select all

systemd-analyze critical-chain

Code: Select all

systemd-analyze blame
[*] I actually found this out by accident. I booted up Mint18-MATE and did this:[/color][/i]
tester@cmint180mate ~ $ systemd-analyze critical-chain
Bootup is not yet finished. Please try again later.
Think about that for a moment. I booted, logged in, launched the terminal, and ran the command yet the system says the boot process isn't finished yet.

After waiting a few minutes I ran it again:
tester@cmint180mate ~ $ systemd-analyze critical-chain
The time after the unit is active or started is printed after the "@" character.
The time the unit takes to start is printed after the "+" character.

graphical.target @23.444s
└─ntp.service @33.583s +3min 45.028s
└─basic.target @5.061s
└─sockets.target @5.061s
└─cups.socket @5.061s
└─sysinit.target @4.893s
.....
.....
Although the ntp service took an eternity to run I had a functional desktop while it finished. Plus, the time it takes for a service to finish may be dependant on another service finishing so you would see both it's run time plus a wait.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.

bushblade
Level 3
Level 3
Posts: 191
Joined: Wed Jan 22, 2014 1:30 pm

Re: Slow to boot on fresh mint 18 install

Post by bushblade » Sun Jul 03, 2016 7:35 am

turtlebay wrote:Perhaps your computer cannot handle the resource hungry Cinnamon DE, try 18 Mate which is less.
I really don't think that's it I have and 4gz quad core processor, 16gb of hyperx ram and a 120gb SSD when it's up and running everything works fine and is super fast.

bushblade
Level 3
Level 3
Posts: 191
Joined: Wed Jan 22, 2014 1:30 pm

Re: Slow to boot on fresh mint 18 install

Post by bushblade » Sun Jul 03, 2016 7:38 am

Pjotr wrote:Analyze the delay like this:
https://sites.google.com/site/easylinux ... oot-delay-
(item 12, right column)

Post the output here (use copy/paste).

By the way: in my experience, a well-configured LM 18 boots just as fast as Mint 17.x.... But this might be hardware dependent.
Thanks for that.

Code: Select all

will@will-bushblade ~ $ systemd-analyze blame
    3min 45.023s ntp.service
          7.675s udev-configure-printer@-devices-pci0000:00-0000:00:10.1-usb8-8\
           416ms dev-sda1.device
           325ms lvm2-monitor.service
           184ms ModemManager.service
           155ms accounts-daemon.service
           146ms systemd-logind.service
           131ms NetworkManager.service
           123ms upower.service
           114ms grub-common.service
           106ms loadcpufreq.service
            92ms ondemand.service
            92ms hddtemp.service
            88ms irqbalance.service
            87ms networking.service
            86ms systemd-udev-trigger.service
            81ms virtualbox-guest-utils.service
            79ms speech-dispatcher.service
            68ms console-setup.service
            64ms udisks2.service
            54ms thermald.service
            50ms systemd-journald.service
            49ms rsyslog.service
            43ms gpu-manager.service
            43ms systemd-hostnamed.service
            42ms alsa-restore.service
            40ms systemd-tmpfiles-setup.service
            36ms plymouth-quit-wait.service
            36ms plymouth-quit.service
            33ms pppd-dns.service
            32ms user@1000.service
            32ms plymouth-read-write.service
            31ms binfmt-support.service
            31ms systemd-tmpfiles-clean.service
            31ms cpufrequtils.service
            30ms systemd-modules-load.service
            28ms systemd-user-sessions.service
            27ms lm-sensors.service
            23ms systemd-udevd.service
            23ms systemd-journal-flush.service
            22ms plymouth-start.service
            20ms systemd-update-utmp.service
            17ms console-kit-daemon.service
            17ms resolvconf.service
            15ms dns-clean.service
            14ms avahi-daemon.service
            12ms proc-sys-fs-binfmt_misc.mount
            12ms polkitd.service
            11ms ufw.service
            11ms sys-kernel-debug.mount
            10ms console-kit-log-system-start.service
            10ms dev-hugepages.mount
            10ms systemd-update-utmp-runlevel.service
             9ms systemd-tmpfiles-setup-dev.service
             9ms colord.service
             8ms ureadahead-stop.service
             8ms kmod-static-nodes.service
             7ms rc-local.service
             7ms systemd-remount-fs.service
             6ms rtkit-daemon.service
             6ms openvpn.service
             5ms systemd-sysctl.service
             5ms sys-fs-fuse-connections.mount
             5ms dev-mqueue.mount
             2ms systemd-random-seed.service
             1ms systemd-backlight@backlight:acpi_video0.service
So from that it looks like the issue is with ntp.service but I have no idea what that is.

User avatar
Pjotr
Level 21
Level 21
Posts: 13158
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland)
Contact:

Re: Slow to boot on fresh mint 18 install

Post by Pjotr » Sun Jul 03, 2016 8:17 am

This is indeed likely to be the problem:
3min 45.023s ntp.service

Apparently there's an issue with the Network Time Protocol. You might try this:

Code: Select all

sudo systemctl disable ntp
... But I'm not sure whether this will survive a reboot. However: does this help, when you boot again?

The price you pay for disabling NTP, by the way, is that your system time is no longer synchronized with NTP servers. It might also help to select other NTP servers.

--edit: fixed typo in the command.
Last edited by Pjotr on Tue Jul 26, 2016 1:35 pm, edited 2 times in total.
Tip: 10 things to do after installing Linux Mint 19.2 Tina
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.

bushblade
Level 3
Level 3
Posts: 191
Joined: Wed Jan 22, 2014 1:30 pm

Re: Slow to boot on fresh mint 18 install

Post by bushblade » Sun Jul 03, 2016 8:28 am

Thanks I tried that but get

Code: Select all

will@will-bushblade ~ $ sudo systemctl disable ntpd
[sudo] password for will: 
Failed to execute operation: No such file or directory
How would I change NTP servers?

Also the

Code: Select all

systemd-analyze blame
never actualy finished, I left it for a few minutes and hit enter to prompt the next lines of code but it only gets so far, closing terminal says that it is still running. Not sure if that's normal or part of the issue.

altair4
Level 19
Level 19
Posts: 9679
Joined: Tue Feb 03, 2009 10:27 am

Re: Slow to boot on fresh mint 18 install

Post by altair4 » Sun Jul 03, 2016 8:50 am

If you are going to follow that advice it's:

Code: Select all

sudo systemctl disable ntp
There is no such thing as ntpd.service.

It won't do you much good though since it will just restart itself:
tester@vmint180cinn ~ $ sudo systemctl disable ntp
Synchronizing state of ntp.service with SysV init with /lib/systemd/systemd-sysv-install...
Executing /lib/systemd/systemd-sysv-install disable ntp
insserv: warning: current start runlevel(s) (empty) of script `ntp' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (1 2 3 4 5) of script `ntp' overrides LSB defaults (1).
tester@vmint180cinn ~ $ sudo systemctl status ntp
● ntp.service - LSB: Start NTP daemon
Loaded: loaded (/etc/init.d/ntp; disabled; vendor preset: enabled)
Active: active (running) since Sun 2016-07-03 08:43:04 EDT; 1min 9s ago
Docs: man:systemd-sysv-generator(8)
CGroup: /system.slice/ntp.service
└─1911 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 108:114

Jul 03 08:43:07 vmint180cinn ntpd[1911]: Soliciting pool server 128.138.141.172
You might want to go to Menu > Settings > Date and Time > and switch off "Network Time"
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.

User avatar
Pjotr
Level 21
Level 21
Posts: 13158
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland)
Contact:

Re: Slow to boot on fresh mint 18 install

Post by Pjotr » Sun Jul 03, 2016 9:07 am

altair4 wrote:You might want to go to Menu > Settings > Date and Time > and switch off "Network Time"
That sounds like a much better solution. :)
Tip: 10 things to do after installing Linux Mint 19.2 Tina
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.

bushblade
Level 3
Level 3
Posts: 191
Joined: Wed Jan 22, 2014 1:30 pm

Re: Slow to boot on fresh mint 18 install

Post by bushblade » Sun Jul 03, 2016 9:16 am

altair4 wrote:
You might want to go to Menu > Settings > Date and Time > and switch off "Network Time"

thanks for that, I did that and rebooted but there is no difference, it still takes a few minutes.

User avatar
Pjotr
Level 21
Level 21
Posts: 13158
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland)
Contact:

Re: Slow to boot on fresh mint 18 install

Post by Pjotr » Sun Jul 03, 2016 9:29 am

Wat does systemd-analyze blame say now?
Tip: 10 things to do after installing Linux Mint 19.2 Tina
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.

bushblade
Level 3
Level 3
Posts: 191
Joined: Wed Jan 22, 2014 1:30 pm

Re: Slow to boot on fresh mint 18 install

Post by bushblade » Sun Jul 03, 2016 10:05 am

Code: Select all

will@will-bushblade ~ $ systemd-analyze blame
          5.585s udev-configure-printer@-devices-pci0000:00-0000:00:10.1-usb8-8\
           631ms lvm2-monitor.service
           357ms dev-sda1.device
           191ms accounts-daemon.service
           173ms ModemManager.service
           143ms upower.service
           134ms systemd-logind.service
           126ms avahi-daemon.service
           126ms NetworkManager.service
           100ms loadcpufreq.service
            89ms virtualbox-guest-utils.service
            89ms grub-common.service
            87ms irqbalance.service
            83ms ondemand.service
            83ms console-setup.service
            83ms speech-dispatcher.service
            83ms systemd-udev-trigger.service
            77ms hddtemp.service
            66ms udisks2.service
            63ms console-kit-log-system-start.service
            62ms systemd-user-sessions.service
            60ms gpu-manager.service
            56ms networking.service
            55ms cpufrequtils.service
            53ms binfmt-support.service
            53ms systemd-journald.service
            44ms thermald.service
            37ms lm-sensors.service
            31ms user@1000.service
            30ms systemd-modules-load.service
            30ms colord.service
            28ms plymouth-quit.service
            28ms systemd-udevd.service
            28ms plymouth-quit-wait.service
            25ms pppd-dns.service
            25ms systemd-tmpfiles-clean.service
            25ms systemd-tmpfiles-setup.service
            20ms proc-sys-fs-binfmt_misc.mount
            19ms rsyslog.service
            18ms alsa-restore.service
            18ms console-kit-daemon.service
            14ms systemd-update-utmp.service
            14ms plymouth-read-write.service
            14ms plymouth-start.service
            13ms dev-hugepages.mount
            13ms systemd-journal-flush.service
            12ms openvpn.service
            12ms kmod-static-nodes.service
            11ms rc-local.service
            11ms dns-clean.service
            10ms sys-kernel-debug.mount
             9ms polkitd.service
             8ms rtkit-daemon.service
             8ms resolvconf.service
             8ms ufw.service
             8ms ureadahead-stop.service
             7ms systemd-sysctl.service
             7ms systemd-hostnamed.service
             7ms systemd-tmpfiles-setup-dev.service
             7ms systemd-remount-fs.service
             6ms dev-mqueue.mount
             5ms systemd-update-utmp-runlevel.service
             3ms systemd-random-seed.service
             2ms sys-fs-fuse-connections.mount
             1ms systemd-backlight@backlight:acpi_video0.service
lines 43-65/65 (END)

altair4
Level 19
Level 19
Posts: 9679
Joined: Tue Feb 03, 2009 10:27 am

Re: Slow to boot on fresh mint 18 install

Post by altair4 » Sun Jul 03, 2016 10:27 am

And how out the output of this one so we know which of those matter:

Code: Select all

systemd-analyze critical-chain
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.

bushblade
Level 3
Level 3
Posts: 191
Joined: Wed Jan 22, 2014 1:30 pm

Re: Slow to boot on fresh mint 18 install

Post by bushblade » Sun Jul 03, 2016 10:31 am

Code: Select all

will@will-bushblade ~ $ systemd-analyze critical-chain
The time after the unit is active or started is printed after the "@" character.
The time the unit takes to start is printed after the "+" character.

graphical.target @1min 30.429s
└─mdm.service @1min 30.429s
  └─systemd-user-sessions.service @1min 30.154s +62ms
    └─basic.target @1min 30.153s
      └─paths.target @1min 30.153s
        └─systemd-networkd-resolvconf-update.path @1min 30.153s
          └─sysinit.target @1min 30.136s
            └─systemd-update-utmp.service @882ms +14ms
              └─systemd-tmpfiles-setup.service @853ms +25ms
                └─local-fs.target @765ms
                  └─media-will-SAMSUNG.mount @1min 41.142s
                    └─local-fs-pre.target @765ms
                      └─lvm2-monitor.service @133ms +631ms
                        └─lvm2-lvmetad.service @177ms
                          └─systemd-journald.socket @119ms
                            └─-.mount @116ms
                              └─system.slice @118ms
                                └─-.slice @116ms
will@will-bushblade ~ $ 

altair4
Level 19
Level 19
Posts: 9679
Joined: Tue Feb 03, 2009 10:27 am

Re: Slow to boot on fresh mint 18 install

Post by altair4 » Sun Jul 03, 2016 10:47 am

media-will-SAMSUNG.mount @1min 41.142s
You have something mounting to /media/will/SAMSUNG.

Is that a USB device that you have plugged in?

Or do you have an entry in fstab that is mounting it?

Code: Select all

cat /etc/fstab
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.

bushblade
Level 3
Level 3
Posts: 191
Joined: Wed Jan 22, 2014 1:30 pm

Re: Slow to boot on fresh mint 18 install

Post by bushblade » Sun Jul 03, 2016 10:51 am

Code: Select all

will@will-bushblade ~ $ 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/sda1 during installation
UUID=7bd17f52-5d2d-42dd-b937-1f6e3b831a62 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda5 during installation
UUID=f92ac476-3d1c-448e-82f7-389b3cbe57d7 none            swap    sw              0       0
will@will-bushblade ~ $ 
I did see that about the external hard drive so I unplugged it and rebooted but there was no change.

User avatar
Pjotr
Level 21
Level 21
Posts: 13158
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland)
Contact:

Re: Slow to boot on fresh mint 18 install

Post by Pjotr » Sun Jul 03, 2016 11:17 am

Well, without NTP the total boot time appears to have improved considerably: NTP *alone* took 3 minutes 45 seconds, whereas the *entire* boot process now takes only 1 minute 30 seconds.

Your current 90 seconds boot time is not bad.....
Last edited by Pjotr on Sun Jul 03, 2016 11:19 am, edited 2 times in total.
Tip: 10 things to do after installing Linux Mint 19.2 Tina
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.

bushblade
Level 3
Level 3
Posts: 191
Joined: Wed Jan 22, 2014 1:30 pm

Re: Slow to boot on fresh mint 18 install

Post by bushblade » Sun Jul 03, 2016 11:18 am

Ah is it because I turned swap off then? Should I comment out

Code: Select all

UUID=f92ac476-3d1c-448e-82f7-389b3cbe57d7 none            swap    sw           $
or remove that line?

Post Reply

Return to “Installation & Boot”