LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Closed Thread
  Search this Thread
Old 12-10-2018, 01:57 AM   #1
Martijn600
LQ Newbie
 
Registered: Dec 2018
Posts: 8

Rep: Reputation: Disabled
Slow boot because of long loader stage


Recently I did a fresh install of Lubuntu 18.04 on my machine (Asus R417S, Duo Core, 2 GHz, 2 GB RAM). Before Ubuntu 16.04 was installed. In Lubuntu 18.04 boot time to get into login screen is over 30s, I am quite sure Ubuntu 16.04 was a lot faster. Not being a Linux expert myself, hopefully someone can help on tracking down a cause for the long boot time.

The boot plot shows for the loader stage a long gray bar.

systemd-analyze

Startup finished in 5.603s (firmware) + 15.788s (loader) + 3.786s (kernel) + 5.643s (userspace) = 30.822s
graphical.target reached after 5.609s in userspace


systemd-analyze blame

2.069s NetworkManager-wait-online.service
1.734s dev-mmcblk0p2.device
1.691s plymouth-start.service
1.240s systemd-rfkill.service
722ms systemd-journal-flush.service
...


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 "+" charaIter.

graphical.target @5.609s
└─multi-user.target @5.609s
└─kerneloops.service @5.573s +35ms
└─network-online.target @5.566s
└─NetworkManager-wait-online.service @3.392s +2.174s
└─NetworkManager.service @2.883s +497ms
└─dbus.service @2.820s
└─basic.target @2.735s
└─sockets.target @2.735s
└─cups.socket @2.735s
└─sysinit.target @2.726s
└─apparmor.service @2.226s +498ms
└─local-fs.target @2.203s
└─boot-efi.mount @2.151s +50ms
└─systemd-fsck@dev-disk-by\x2duuid-85B4\x2d7A39.servic
└─dev-disk-by\x2duuid-85B4\x2d7A39.device @1.992s

In my opinion, the most suspicuous lines in journalctl-b:

dec 07 22:29:05 asus-r417s systemd-gpt-auto-generator[224]: Failed to dissect: Input/output error
dec 07 22:29:05 asus-r417s systemd[217]: /lib/systemd/system-generators/systemd-gpt-auto-generator failed with exit status 1.


dec 07 22:29:11 asus-r417s lightdm[726]: PAM unable to dlopen(pam_gnome_keyring.so): /lib/security/pam_gnome_keyring.so: cannot open shared object file: No such file or di
dec 07 22:29:11 asus-r417s lightdm[726]: PAM adding faulty module: pam_gnome_keyring.so
dec 07 22:29:11 asus-r417s lightdm[726]: PAM unable to dlopen(pam_kwallet.so): /lib/security/pam_kwallet.so: cannot open shared object file: No such file or directory
dec 07 22:29:11 asus-r417s lightdm[726]: PAM adding faulty module: pam_kwallet.so
dec 07 22:29:11 asus-r417s lightdm[726]: PAM unable to dlopen(pam_kwallet5.so): /lib/security/pam_kwallet5.so: cannot open shared object file: No such file or directory
dec 07 22:29:11 asus-r417s lightdm[726]: PAM adding faulty module: pam_kwallet5.so

5 sec difference in journalctl-b:

dec 07 22:29:16 asus-r417s dbus-daemon[761]: [session uid=1000 pid=761] Successfully activated service 'com.canonical.indicator.sound-gtk2'
dec 07 22:29:21 asus-r417s pkexec[1006]: pam_unix(polkit-1:session): session opened for user root by (uid=1000)

Tried to disable pam gnome_keyring and kwallet stuff, but then I couldn't login at all (enabled it again my going to the terminal in login screen (Ctrl+Alt+F2).
 
Old 12-10-2018, 06:31 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

Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate of https://www.linuxquestions.org/quest...ge-4175643975/
 
  


Closed Thread



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 On
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
master boot code (MBC) and First stage boot loader both are same or not mithz Linux - Newbie 3 03-02-2017 10:40 AM
long long long: Too long for GCC Kenny_Strawn Programming 5 09-18-2010 01:14 AM
Half of my applications are broken. I am using Gentoo stage 1 on 3 nptl (stage 1.5) dragonslay Linux - Games 3 04-01-2005 05:23 PM
Gentoo: Stage 1, Stage 2, or Stage 3 skorpi0wn Linux - Distributions 3 03-01-2005 07:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:49 AM.

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