Ask Your Question

Boot has become slow due to service failures

asked 2017-12-19 03:13:57 -0500

updated 2017-12-20 00:22:03 -0500

When I first installed Fedora 27 its boot wasn't blazing fast but it was acceptably fast at least. Now it's intolerably slow, at least partly because a dev-disk-by service times out (after 1 & 1/2 minutes). It seems to correspond to something I dare not remove from my /etc/fstab file: my swap partition. The precise service is:


My /etc/fstab file is here:

# /etc/fstab
# Created by anaconda on Sun Dec 17 01:24:32 2017
# 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
UUID=c42b821c-e07d-4322-8e47-ff1d76a0fd75 /                       btrfs   subvol=root     0 0
UUID=b7e401ea-a7e5-4ed9-94c1-acf8f8ba5b83 /boot                   ext4    defaults        1 2
UUID=D796-7F56          /boot/efi               vfat    umask=0077,shortname=winnt 0 0
UUID=0a85c259-e28b-4fb7-aa9e-a5894701c6b4 swap                    swap    defaults        0 0
/dev/sdb1               /data        ext4        defaults  0 1
#/dev/sda3               /arch        btrfs       defaults  0 1
#/dev/sdb1               /arch        ext4        defaults  0 1

as you can see the UUID seems to line up with my swap partition. I don't really want to disable swap. So is there a way to fix this issue?

I also see kernel module load service failing when I start up. I think the kernels fail due to the fact I use the Broadcom DKMS (akmod-wl) package in RPMFusion nonfree as I need it to connect to the WiFi (my Broadcom chip is BCM4352).

If you're wondering how "unacceptable" the boot time is well systemd-analyze time gives 3 minutes and 12.5 seconds.

EDIT: I uninstalled akmods-wl (using broadcom-wl, as I think it's pre-built against the latest kernel, right?), NVIDIA and bbswitch kernel modules and still systemd-modules-load.service is failing. Any ideas?

edit retag flag offensive close merge delete


I suggest that you remove that paste. It contains information about a lot of your files.

ssieb gravatar imagessieb ( 2017-12-19 18:14:22 -0500 )edit

If anybody can actually use that information, they've already got root access to the poster's computer and it's too late.

sideburns gravatar imagesideburns ( 2017-12-19 22:31:51 -0500 )edit

If one service is timing out, that's not systemd's fault. More likely there's something wonky with that one partition.

sideburns gravatar imagesideburns ( 2017-12-19 22:35:30 -0500 )edit

I wasn't concerned so much about security, more about privacy.

ssieb gravatar imagessieb ( 2017-12-20 00:09:58 -0500 )edit

Ya I realized there wasn't anything too nasty in it. Frankly I checked for stuff I actually cared about remaining private and I found nothing. I decided to remove it more out of caution in case I missed something.

Brenton Horne gravatar imageBrenton Horne ( 2017-12-20 00:13:04 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2017-12-19 18:10:14 -0500

ssieb gravatar image

Run blkid and verify that your swap partition really does have that UUID. I think swap partitions are automatically detected now so even if that entry is wrong, your swap will still get mounted.

When I run systemd-analyze time, it appears to include the time it takes me to login as well. You can run systemd-analyze plot to see the dependencies and when different services get started. The swap partition timed out about a minute after starting.

edit flag offensive delete link more


Ya I know my way around systemd itself, like I know how to use systemd-analyze and systemctl, just wanted help with these specific problems. The systemd modules load service, any ideas how to fix it? I uninstalled akmods-wl and just used broadcom-wl (pre-built against every new kernel to my understanding, instead of being built with DKMS), I also uninstalled bbswitch and NVIDIA-related modules and it still fails. Just wondering if you have a solution to that. As for your swap suggestion it worked perfectly, must have reformatted swap since I installed Fedora.

Brenton Horne gravatar imageBrenton Horne ( 2017-12-20 00:17:36 -0500 )edit

For some reason now the service is running right, I missed a few NVIDIA packages and I uninstalled them.

Brenton Horne gravatar imageBrenton Horne ( 2017-12-20 03:32:57 -0500 )edit

answered 2017-12-19 17:22:07 -0500

meskarune gravatar image

Can you try reformatting your swap partition or even deleting it and recreating it?

edit flag offensive delete link more



That won't work very well, because then the UUID will definitely be wrong.

ssieb gravatar imagessieb ( 2017-12-20 00:10:41 -0500 )edit

That would only happen if you deleted/replaced the swap partition, not if you only reformatted it. And, I'm not sure that swap partitions are formatted in the usual sense. I've gotten the impression that the system just keeps track in memory of where everything is and saves the overhead of time and space needed by a directory structure. After all, it's not like anything there is expected to survive a reboot.

sideburns gravatar imagesideburns ( 2017-12-20 01:18:54 -0500 )edit

The mkswap command does some sort of formatting. That how blkid and the kernel can identify it. Look in your /etc/fstab file, the swap partition has a UUID. And yes, if you hibernate, everything in that swap partition had better survive the reboot.

ssieb gravatar imagessieb ( 2018-01-10 14:27:31 -0500 )edit

Question Tools

1 follower


Asked: 2017-12-19 03:13:57 -0500

Seen: 550 times

Last updated: Dec 20 '17