LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-03-2018, 02:21 AM   #1
ddenial
Member
 
Registered: Dec 2016
Distribution: CentOS, Fedora, Ubuntu
Posts: 359

Rep: Reputation: 56
Fedora 27 slow boot...


Hello

My Fedora 27 boots very slow. While booting, when it reaches 'Starting Switch Root', it takes almost 30+ seconds and then login screen appears.

I had installed CentOS 7.4 and Ubuntu 17.10 on the same machine earlier, and have noticed this problem doesn't exist on those OSs. Its only for Fedora Workstation.

These are my systemd-analyse results.

Code:
Startup finished in 8.743s (firmware) + 1.297s (loader) + 883ms (kernel) + 2.704s (initrd) + 33.739s (userspace) = 47.367s
         22.434s udisks2.service
          9.876s NetworkManager-wait-online.service
          6.444s firewalld.service
          5.958s lvm2-monitor.service
          5.273s dev-mapper-mdd\x2dsvr.device
          4.675s systemd-udev-settle.service
          4.323s sssd.service
          3.962s initrd-switch-root.service
          3.479s libvirtd.service
          3.358s jexec.service
          3.316s ModemManager.service
          2.997s polkit.service
          2.892s fwupd.service
          2.567s named.service
          2.180s switcheroo-control.service
          2.177s gssproxy.service
          2.173s sysstat.service
          2.173s livesys.service
          2.173s named-setup-rndc.service
          2.063s avahi-daemon.service
          2.054s accounts-daemon.service
          2.012s systemd-journal-flush.service
          1.624s abrtd.service
          1.597s systemd-udevd.service
          .
          .
So delay is from udisks2.service, I assume.

Code:
# systemd-analyze critical-chain udisks2.service

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.

udisks2.service +22.434s
└─basic.target @11.289s
  └─sockets.target @11.289s
    └─cups.socket @11.289s
      └─sysinit.target @11.255s
        └─systemd-update-utmp.service @11.229s +25ms
          └─auditd.service @10.822s +406ms
            └─systemd-tmpfiles-setup.service @10.544s +275ms
              └─fedora-import-state.service @10.203s +340ms
                └─local-fs.target @10.201s
                  └─run-user-42.mount @23.588s
                    └─local-fs-pre.target @9.224s
                      └─lvm2-monitor.service @3.265s +5.958s
                        └─lvm2-lvmetad.service @8.792s
                          └─lvm2-lvmetad.socket @3.264s
                            └─-.mount
                              └─system.slice
                                └─-.slice
This is my fstab
Code:
#
# /etc/fstab
# Created by anaconda on Mon Jan 29 19:54:52 2018
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/mdd-svr / xfs defaults 0 1
UUID=509b3b36-07f7-49be-a20c-02dd20ec015c /boot ext4 defaults 0 1
UUID=4F2A-13C2 /boot/efi vfat umask=0077,shortname=winnt 0 1

UUID="ebe1f019-3cfd-4aa2-bd0a-fe260e345976" none swap defaults 0 0
UUID="42ce5151-28f1-4567-b7b4-0b5a27e91721" /dc ext4 defaults 0 0
I've checked UUIDs are correct.

Why udisks2.service takes so long? Or is this normal?

Thanks
 
Old 04-03-2018, 03:00 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Check the journal. On this crappy 8 year old i7 laptop, udisks2.service took 1.211s on my last F27 boot.
 
1 members found this post helpful.
Old 04-03-2018, 04:44 AM   #3
ddenial
Member
 
Registered: Dec 2016
Distribution: CentOS, Fedora, Ubuntu
Posts: 359

Original Poster
Rep: Reputation: 56
Quote:
Originally Posted by syg00 View Post
Check the journal. On this crappy 8 year old i7 laptop, udisks2.service took 1.211s on my last F27 boot.
Nothing in there.

Code:
# journalctl | grep -i disk | grep -Ei 'fatal|error|warn|fail'
 
Old 04-03-2018, 03:44 PM   #4
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
What DE are you running?

https://www.techrepublic.com/blog/10...x-boot-faster/

https://ask.fedoraproject.org/en/que...o-i-reduce-it/

Here's how I was able to make Elementary OS boot faster-

https://www.linuxquestions.org/quest...-faster-37621/

Last edited by Ztcoracat; 04-03-2018 at 03:49 PM.
 
1 members found this post helpful.
Old 04-04-2018, 12:50 AM   #5
ddenial
Member
 
Registered: Dec 2016
Distribution: CentOS, Fedora, Ubuntu
Posts: 359

Original Poster
Rep: Reputation: 56
Quote:
Originally Posted by Ztcoracat View Post
Code:
$ neofetch 
          /:-------------:\          danial@svr.nix.lan
       :-------------------::        -----------------
     :-----------/shhOHbmp---:\      OS: Fedora release 27 (Twenty Seven) x86_64
   /-----------omMMMNNNMMD  ---:     Kernel: 4.15.13-300.fc27.x86_64
  :-----------sMMMMNMNMP.    ---:    Uptime: 37 mins
 :-----------:MMMdP-------    ---\   Packages: 2060
,------------:MMMd--------    ---:   Shell: bash 4.4.19
:------------:MMMd-------    .---:   Resolution: 1600x900
:----    oNMMMMMMMMMNho     .----:   DE: GNOME
:--     .+shhhMMMmhhy++   .------/   WM: GNOME Shell
:-    -------:MMMd--------------:    WM Theme: Adwaita
:-   --------/MMMd-------------;     Theme: Adwaita [GTK2/3]
:-    ------/hMMMy------------:      Icons: Candy [GTK2/3]
:-- :dMNdhhdNMMNo------------;       Terminal: gnome-terminal
:---:sdNMMMMNds:------------:        CPU: Intel i3-4130 (4) @ 3.400GHz
:------:://:-------------::          GPU: NVIDIA GeForce 9500 GT
:---------------------://            Memory: 4301MiB / 7913MiB
 
Old 04-04-2018, 01:17 AM   #6
ddenial
Member
 
Registered: Dec 2016
Distribution: CentOS, Fedora, Ubuntu
Posts: 359

Original Poster
Rep: Reputation: 56
Quote:
Originally Posted by Ztcoracat View Post
Here's how I was able to make Elementary OS boot faster-

https://www.linuxquestions.org/quest...-faster-37621/
I changed DefaultTimeoutStartSec and DefaultTimeoutStopSec to 10 seconds, and now the udisks2.service is reduced to 2.986 seconds from whopping 22.434 seconds. This is a great improvement. Thanks.

Code:
$ systemd-analyze blame | grep udisks2
          2.986s udisks2.service
But surprisingly, physical boot time is still same - has not reduced. Strange!!!

Code:
$ systemd-analyze
Startup finished in 8.749s (firmware) + 1.132s (loader) + 875ms (kernel) + 2.723s (initrd) + 33.112s (userspace) = 46.592s
 
1 members found this post helpful.
Old 04-04-2018, 07:10 AM   #7
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by ddenial View Post
I changed DefaultTimeoutStartSec and DefaultTimeoutStopSec to 10 seconds, and now the udisks2.service is reduced to 2.986 seconds from whopping 22.434 seconds. This is a great improvement. Thanks.

Code:
$ systemd-analyze blame | grep udisks2
          2.986s udisks2.service
But surprisingly, physical boot time is still same - has not reduced. Strange!!!

Code:
$ systemd-analyze
Startup finished in 8.749s (firmware) + 1.132s (loader) + 875ms (kernel) + 2.723s (initrd) + 33.112s (userspace) = 46.592s
You're Welcome.

Gnome isn't as much of a RAM hog as KDE so I don't think it's the DE.

Yeah, it is strange that the boot time is still the same.

When you have the time look in the Fedora Forums there might be a way around it:-
Good Luck
 
Old 04-04-2018, 07:33 AM   #8
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Sounds pretty normal for Fedora.
 
1 members found this post helpful.
Old 04-05-2018, 03:52 AM   #9
ddenial
Member
 
Registered: Dec 2016
Distribution: CentOS, Fedora, Ubuntu
Posts: 359

Original Poster
Rep: Reputation: 56
Thanks, everybody. Going back to CentOS 7.4. I'll try i3 Window Manager this time.
 
Old 04-05-2018, 06:25 AM   #10
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by ddenial View Post
Thanks, everybody. Going back to CentOS 7.4. I'll try i3 Window Manager this time.
You're Welcome:-
 
  


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
Fedora 22 slow boot (maybe it's a problem with /) Hasek39 Fedora 7 12-18-2015 01:03 PM
Fedora's boot is too slow SignorX Fedora 18 07-07-2011 07:08 AM
Fedora 10 SLOW BOOT process troyski Linux - Newbie 1 06-12-2009 06:22 PM
fedora 10 slow to boot.... chutsu Fedora 5 01-19-2009 05:39 PM
VERY SLOW BOOT on Fedora Core 3 anax93 Linux - General 1 07-23-2006 03:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:04 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