Slow boot on Mint 19

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read how to get help
nemrod
Level 1
Level 1
Posts: 14
Joined: Wed Jul 11, 2018 9:13 am

Slow boot on Mint 19

Post by nemrod » Thu Jul 12, 2018 10:16 am

Hi,
I'm new to Linux, i installed Mint by deleting windows on a HP Notebook for my girlfriend. (windows 10 was just trash)
I promised her a fast OS, but the boot time is ~ 1mn 30.
And over that, launching programs seems long.
Some intermittent instability (keyboard not responsive)
I think there is a problem somewhere.
I don't know how to use terminal command but i found this.
So here the output of some commands:
If someone can help me

Code: Select all

systemd-analyze
Startup finished in 11.904s (firmware) + 8.591s (loader) + 21.759s (kernel) + 25.359s (userspace) = 1min 7.616s
graphical.target reached after 25.336s in userspace

Code: Select all

systemd-analyze blame
         16.641s dev-sda2.device
         15.818s ufw.service
         14.237s systemd-udevd.service
          6.453s lvm2-monitor.service
          5.337s systemd-journal-flush.service
          3.802s networkd-dispatcher.service
          3.762s systemd-sysctl.service
          3.549s ubuntu-system-adjustments.service
          3.000s udisks2.service
          2.983s keyboard-setup.service
          2.936s NetworkManager.service
          2.532s accounts-daemon.service
          2.456s ModemManager.service
          1.823s thermald.service
          1.210s swapfile.swap
          1.104s systemd-modules-load.service
          1.093s systemd-tmpfiles-setup.service
          1.085s systemd-remount-fs.service
          1.057s sys-kernel-debug.mount
          1.055s dev-hugepages.mount
          1.054s dev-mqueue.mount
          1.048s wpa_supplicant.service
           805ms lightdm.service

Code: Select all

systemd-analyze critical-chain
graphical.target @25.336s
└─multi-user.target @25.336s
  └─getty.target @25.336s
    └─getty@tty1.service @25.335s
      └─system-getty.slice @25.334s
        └─setvtrgb.service @25.177s +155ms
          └─systemd-user-sessions.service @24.360s +7ms
            └─network.target @24.357s
              └─NetworkManager.service @21.420s +2.936s
                └─dbus.service @21.150s
                  └─basic.target @21.143s
                    └─sockets.target @21.142s
                      └─avahi-daemon.socket @21.142s
                        └─sysinit.target @21.138s
                          └─systemd-timesyncd.service @20.979s +158ms
                            └─systemd-tmpfiles-setup.service @19.883s +1.093s
                              └─local-fs.target @19.880s
                                └─boot-efi.mount @19.824s +55ms
                                  └─systemd-fsck@dev-disk-by\x2duuid-10D2\x2d4DB
                                    └─dev-disk-by\x2duuid-10D2\x2d4DB9.device @1

DAMIEN1307
Level 7
Level 7
Posts: 1911
Joined: Tue Feb 21, 2017 8:13 pm
Location: Alamogordo, New Mexico, USA

Re: Slow boot on Mint 19

Post by DAMIEN1307 » Thu Jul 12, 2018 10:25 am

please copy and paste the following command in terminal and post back here so we can all see what is going on...tough to advise you when we have no specs to work with...DAMIEN

inxi -Fxz
ORDO AB CHAO

nemrod
Level 1
Level 1
Posts: 14
Joined: Wed Jul 11, 2018 9:13 am

Re: Slow boot on Mint 19

Post by nemrod » Thu Jul 12, 2018 10:40 am

Code: Select all

$  inxi -Fxz
System:    Host: caro-HP-Notebook Kernel: 4.15.0-24-generic x86_64
           bits: 64 gcc: 7.3.0
           Desktop: Cinnamon 3.8.7 (Gtk 3.22.30-1ubuntu1)
           Distro: Linux Mint 19 Tara
Machine:   Device: laptop System: HP product: HP Notebook v: Type1ProductConfigId serial: N/A
           Mobo: HP model: 82F6 v: 40.38 serial: N/A
           UEFI: Insyde v: F.21 date: 10/27/2016
Battery    BAT1: charge: 14.4 Wh 35.5% condition: 40.6/41.6 Wh (98%)
           model: Hewlett-Packard PABAS0241231 status: Discharging
CPU:       Quad core AMD A8-7410 APU with AMD Radeon R5 Graphics (-MCP-) 
           arch: Puma rev.1 cache: 2048 KB
           
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm) bmips: 17565
           clock speeds: max: 2200 MHz 1: 1116 MHz 2: 1107 MHz 3: 1091 MHz
           4: 1003 MHz
Graphics:  Card: Advanced Micro Devices [AMD/ATI] Mullins [Radeon R4/R5 Graphics]
           bus-ID: 00:01.0
           Display Server: x11 (X.Org 1.19.6 )
           drivers: ati,radeon (unloaded: modesetting,fbdev,vesa)
           Resolution: 1366x768@60.00hz
           OpenGL: renderer: AMD MULLINS (DRM 2.50.0 / 4.15.0-24-generic, LLVM 6.0.0)
           version: 4.5 Mesa 18.0.5 Direct Render: Yes
Audio:     Card-1 Advanced Micro Devices [AMD] FCH Azalia Controller
           driver: snd_hda_intel bus-ID: 00:14.2
           Card-2 Advanced Micro Devices [AMD/ATI] Kabini HDMI/DP Audio
           driver: snd_hda_intel bus-ID: 00:01.1
           Sound: Advanced Linux Sound Architecture v: k4.15.0-24-generic
Network:   Card-1: Realtek RTL8723BE PCIe Wireless Network Adapter
           driver: rtl8723be port: 3000 bus-ID: 02:00.0
           IF: wlo1 state: up mac: <filter>
           Card-2: Realtek RTL8101/2/6E PCIE Fast/Gigabit Ethernet controller
           driver: r8169 v: 2.3LK-NAPI port: 2000 bus-ID: 03:00.0
           IF: enp3s0 state: down mac: <filter>
Drives:    HDD Total Size: 1000.2GB (24.1% used)
           ID-1: /dev/sda model: ST1000LM035 size: 1000.2GB
Partition: ID-1: / size: 916G used: 225G (26%) fs: ext4 dev: /dev/sda2
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 48.0C mobo: 20.0C gpu: 48.0
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 194 Uptime: 4:29 Memory: 1807.8/4920.5MB
           Init: systemd runlevel: 5 Gcc sys: 7.3.0
           Client: Shell (bash 4.4.191) inxi: 2.3.56 

DAMIEN1307
Level 7
Level 7
Posts: 1911
Joined: Tue Feb 21, 2017 8:13 pm
Location: Alamogordo, New Mexico, USA

Re: Slow boot on Mint 19

Post by DAMIEN1307 » Thu Jul 12, 2018 10:47 am

OK...the problem is most likely the Kernel: 4.15.0-24-generic...it is a known flukey kernel and supposedly was removed from the updates a week ago by ubuntu...evidently some of the mirrors didnt get the memo...lol...what you need to do is to reboot your system and press either the shift key or the esc key during the reboot in order to get into the "grub" boot loader...once there you need to click on the "4.15.0-23 generic" kernel and then reboot...thereafter, click on the update manager and then click onto the "view" tab then click the linux kernels tab...it should show that the 4.15.0-23 kernel is now the active kernel...if this is so, uninstall the 4.15.0-24 kernel then make sure that you have one back up kernel installed such as the 4.15.0-22...let me know how you make out...DAMIEN
ORDO AB CHAO

nemrod
Level 1
Level 1
Posts: 14
Joined: Wed Jul 11, 2018 9:13 am

Re: Slow boot on Mint 19

Post by nemrod » Thu Jul 12, 2018 11:34 am

Thanks for the assist.
I did the change, however i do not see big improvement at boot time.
Is this normal ?
After :

Code: Select all

$ inxi -Fxz
System:    Host: caro-HP-Notebook Kernel: 4.15.0-23-generic x86_64
           bits: 64 gcc: 7.3.0
           Desktop: Cinnamon 3.8.7 (Gtk 3.22.30-1ubuntu1)
           Distro: Linux Mint 19 Tara
Machine:   Device: laptop System: HP product: HP Notebook v: Type1ProductConfigId serial: N/A
           Mobo: HP model: 82F6 v: 40.38 serial: N/A
           UEFI: Insyde v: F.21 date: 10/27/2016
Battery    BAT1: charge: 9.2 Wh 22.9% condition: 40.2/41.6 Wh (97%)
           model: Hewlett-Packard PABAS0241231 status: Charging
CPU:       Quad core AMD A8-7410 APU with AMD Radeon R5 Graphics (-MCP-) 
           arch: Puma rev.1 cache: 2048 KB
           
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm) bmips: 17566
           clock speeds: max: 2200 MHz 1: 1316 MHz 2: 1082 MHz 3: 1155 MHz
           4: 1121 MHz
Graphics:  Card: Advanced Micro Devices [AMD/ATI] Mullins [Radeon R4/R5 Graphics]
           bus-ID: 00:01.0
           Display Server: x11 (X.Org 1.19.6 )
           drivers: ati,radeon (unloaded: modesetting,fbdev,vesa)
           Resolution: 1366x768@60.00hz
           OpenGL: renderer: AMD MULLINS (DRM 2.50.0 / 4.15.0-23-generic, LLVM 6.0.0)
           version: 4.5 Mesa 18.0.5 Direct Render: Yes
Audio:     Card-1 Advanced Micro Devices [AMD] FCH Azalia Controller
           driver: snd_hda_intel bus-ID: 00:14.2
           Card-2 Advanced Micro Devices [AMD/ATI] Kabini HDMI/DP Audio
           driver: snd_hda_intel bus-ID: 00:01.1
           Sound: Advanced Linux Sound Architecture v: k4.15.0-23-generic
Network:   Card-1: Realtek RTL8723BE PCIe Wireless Network Adapter
           driver: rtl8723be port: 3000 bus-ID: 02:00.0
           IF: wlo1 state: up mac: <filter>
           Card-2: Realtek RTL8101/2/6E PCIE Fast/Gigabit Ethernet controller
           driver: r8169 v: 2.3LK-NAPI port: 2000 bus-ID: 03:00.0
           IF: enp3s0 state: down mac: <filter>
Drives:    HDD Total Size: 1000.2GB (24.0% used)
           ID-1: /dev/sda model: ST1000LM035 size: 1000.2GB
Partition: ID-1: / size: 916G used: 224G (26%) fs: ext4 dev: /dev/sda2
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 50.0C mobo: 20.0C gpu: 50.0
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 197 Uptime: 13 min Memory: 1488.0/4920.5MB
           Init: systemd runlevel: 5 Gcc sys: 7.3.0
           Client: Shell (bash 4.4.191) inxi: 2.3.56 

Code: Select all

$ systemd-analyze
Startup finished in 9.995s (firmware) + 8.711s (loader) + 10.762s (kernel) + 31.564s (userspace) = 1min 1.033s
graphical.target reached after 31.550s in userspace

Code: Select all

$ systemd-analyze blame
         10.447s ufw.service
         10.328s udisks2.service
          9.620s networkd-dispatcher.service
          9.450s dev-sda2.device
          6.736s ubuntu-system-adjustments.service
          6.475s lightdm.service
          6.465s plymouth-quit-wait.service
          6.421s ModemManager.service
          6.196s NetworkManager.service
          5.802s accounts-daemon.service
          4.448s grub-common.service
          4.290s apport.service
          3.614s polkit.service
          3.543s networking.service
          3.416s speech-dispatcher.service
          3.306s hddtemp.service
          3.300s bluetooth.service
          3.295s thermald.service
          3.288s lm-sensors.service
          3.275s rsyslog.service
          3.267s pppd-dns.service
          3.177s gpu-manager.service
          2.900s lvm2-monitor.service

Code: Select all

graphical.target @31.550s
└─multi-user.target @31.550s
  └─getty.target @31.549s
    └─getty@tty1.service @31.549s
      └─system-getty.slice @31.546s
        └─setvtrgb.service @31.375s +169ms
          └─systemd-user-sessions.service @24.281s +619ms
            └─network.target @24.276s
              └─NetworkManager.service @18.079s +6.196s
                └─dbus.service @15.902s
                  └─basic.target @15.302s
                    └─sockets.target @15.302s
                      └─avahi-daemon.socket @15.302s
                        └─sysinit.target @15.244s
                          └─apparmor.service @13.037s +2.207s
                            └─local-fs.target @13.035s
                              └─boot-efi.mount @12.494s +541ms
                                └─systemd-fsck@dev-disk-by\x2duuid-10D2\x2d4DB9.
                                  └─dev-disk-by\x2duuid-10D2\x2d4DB9.device @11.

DAMIEN1307
Level 7
Level 7
Posts: 1911
Joined: Tue Feb 21, 2017 8:13 pm
Location: Alamogordo, New Mexico, USA

Re: Slow boot on Mint 19

Post by DAMIEN1307 » Thu Jul 12, 2018 11:43 am

ok...now let me give you a few more terminal commands to get rid of any residual kernel components that are left over...DAMIEN

Kernel Cleanup after Deletion...run 1 at a time, not all together...the terminal will ask you for the password you used when installing, (the password will not show anything when you are typing it, it will stay blank)

sudo apt autoremove

dpkg -l | grep '^rc' | awk '{print $2}' | sudo xargs dpkg --purge

dpkg -l | grep '^rc' | awk '{print $2}' | xargs sudo apt-get purge

dpkg --get-selections | grep linux-headers && dpkg --get-selections | grep linux-image

then reboot it maybe a couple of times

post back the last one of these so i can have a look see at it...i may or may not have something else to do here depending on what i see
ORDO AB CHAO

nemrod
Level 1
Level 1
Posts: 14
Joined: Wed Jul 11, 2018 9:13 am

Re: Slow boot on Mint 19

Post by nemrod » Thu Jul 12, 2018 11:51 am

the first set of command give an error : "--purge need a package name..." (i translate from french)

DAMIEN1307
Level 7
Level 7
Posts: 1911
Joined: Tue Feb 21, 2017 8:13 pm
Location: Alamogordo, New Mexico, USA

Re: Slow boot on Mint 19

Post by DAMIEN1307 » Thu Jul 12, 2018 11:54 am

did it look like this?

damien@damien ~ $ dpkg -l | grep '^rc' | awk '{print $2}' | sudo xargs dpkg --purge
[sudo] password for damien:
dpkg: error: --purge needs at least one package name argument

Type dpkg --help for help about installing and deinstalling packages [*];
Use 'apt' or 'aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;

Options marked [*] produce a lot of output - pipe it through 'less' or 'more' !
damien@damien ~ $

if so thats ok...go to the next one
ORDO AB CHAO

nemrod
Level 1
Level 1
Posts: 14
Joined: Wed Jul 11, 2018 9:13 am

Re: Slow boot on Mint 19

Post by nemrod » Thu Jul 12, 2018 11:59 am

yes that was this error.
the last command gives

Code: Select all

$ dpkg --get-selections | grep linux-headers && dpkg --get-selections | grep linux-image
linux-headers-4.15.0-20				install
linux-headers-4.15.0-20-generic			install
linux-headers-4.15.0-23				install
linux-headers-4.15.0-23-generic			install
linux-headers-generic				install
linux-image-4.15.0-20-generic			install
linux-image-4.15.0-23-generic			install
linux-image-generic				install
Im going to reboot

DAMIEN1307
Level 7
Level 7
Posts: 1911
Joined: Tue Feb 21, 2017 8:13 pm
Location: Alamogordo, New Mexico, USA

Re: Slow boot on Mint 19

Post by DAMIEN1307 » Thu Jul 12, 2018 12:04 pm

great...that looks good...i also want to give you a link to easy linux which is written and maintained by "pjotr" who is a very knowledgeable contributor here in the linux mint forums...you will find a wealth of information provided there...i especially want you to look at 10 mistakes you never want to make as well as tips and tricks he has to speed up your system...DAMIEN

https://sites.google.com/site/easylinuxtipsproject/Home
ORDO AB CHAO

nemrod
Level 1
Level 1
Posts: 14
Joined: Wed Jul 11, 2018 9:13 am

Re: Slow boot on Mint 19

Post by nemrod » Thu Jul 12, 2018 12:12 pm

thanks.
My boot time is still over 1mn, is this ok ?
there is a new kernel update (4.15.0-24.26) is it safe ?

DAMIEN1307
Level 7
Level 7
Posts: 1911
Joined: Tue Feb 21, 2017 8:13 pm
Location: Alamogordo, New Mexico, USA

Re: Slow boot on Mint 19

Post by DAMIEN1307 » Thu Jul 12, 2018 12:13 pm

NO!...do not install that kernel...did you uninstall the the 4.15.0-24 kernel in the update manager as i instructed?...DAMIEN
ORDO AB CHAO

nemrod
Level 1
Level 1
Posts: 14
Joined: Wed Jul 11, 2018 9:13 am

Re: Slow boot on Mint 19

Post by nemrod » Thu Jul 12, 2018 12:18 pm

yes i uninstall it as you instructed.
but this one looks new with this little 26 at the end!...

DAMIEN1307
Level 7
Level 7
Posts: 1911
Joined: Tue Feb 21, 2017 8:13 pm
Location: Alamogordo, New Mexico, USA

Re: Slow boot on Mint 19

Post by DAMIEN1307 » Thu Jul 12, 2018 12:21 pm

that IS the bad kernel that you just uninstalled..."26" is just an additional suffix...do not install any kernel in the 4.15.0-24 series...wait for the next in series which may be 4.15.0-25 or later...DAMIEN
ORDO AB CHAO

DAMIEN1307
Level 7
Level 7
Posts: 1911
Joined: Tue Feb 21, 2017 8:13 pm
Location: Alamogordo, New Mexico, USA

Re: Slow boot on Mint 19

Post by DAMIEN1307 » Thu Jul 12, 2018 12:24 pm

Also 1 minute boot time for linux mint 19 cinnamon is not bad overall since it is not a real light weight distribution but has all the horns, bells and whistles you could possibly want in an operating system...DAMIEN
ORDO AB CHAO

DAMIEN1307
Level 7
Level 7
Posts: 1911
Joined: Tue Feb 21, 2017 8:13 pm
Location: Alamogordo, New Mexico, USA

Re: Slow boot on Mint 19

Post by DAMIEN1307 » Thu Jul 12, 2018 12:29 pm

By the way, is the keyboard back to normal again?...i ask because that was my major problem with the bad kernel as well until i went back to the "4.15.0-23 kernel...DAMIEN
ORDO AB CHAO

nemrod
Level 1
Level 1
Posts: 14
Joined: Wed Jul 11, 2018 9:13 am

Re: Slow boot on Mint 19

Post by nemrod » Thu Jul 12, 2018 12:31 pm

i do not see any problem for now. thanks for help

DAMIEN1307
Level 7
Level 7
Posts: 1911
Joined: Tue Feb 21, 2017 8:13 pm
Location: Alamogordo, New Mexico, USA

Re: Slow boot on Mint 19

Post by DAMIEN1307 » Thu Jul 12, 2018 12:34 pm

you are welcome...DAMIEN
ORDO AB CHAO

User avatar
Flemur
Level 17
Level 17
Posts: 7073
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: Slow boot on Mint 19

Post by Flemur » Thu Jul 12, 2018 12:51 pm

nemrod wrote:
Thu Jul 12, 2018 12:31 pm
i do not see any problem for now. thanks for help
Your booting is still very slow - you seem to have the "all services take about 10 times as long to start as they should" syndrome which sometimes pops up in this forum and...I, at least, have only seen it with Cinnamon.

Yours:

Code: Select all

         10.328s udisks2.service
          6.196s NetworkManager.service
          3.614s polkit.service
          3.543s networking.service
Mine (on a 8 year-old low-end machine):

Code: Select all

           777ms udisks2.service
           438ms NetworkManager.service
           113ms polkit.service
           430ms networking.service
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
Mint 19.1 Xfce/fluxbox
Manjaro openbox/fluxbox

DAMIEN1307
Level 7
Level 7
Posts: 1911
Joined: Tue Feb 21, 2017 8:13 pm
Location: Alamogordo, New Mexico, USA

Re: Slow boot on Mint 19

Post by DAMIEN1307 » Thu Jul 12, 2018 1:05 pm

hi flemur...i also only seem to notice this in cinnamon and i call it "cinnamon syndrome" myself...hence why i always run xfce editions...glad im not the only one that only sees it in cinnamon...hence why i tell folks that 1 minute boot time is ok for cinnamon, just seems normal somehow...the best boot time i personally got in cinnamon was 45 seconds...in xfce my boot times are 14 seconds...DAMIEN
ORDO AB CHAO

Post Reply

Return to “Installation & Boot”