PDA

View Full Version : Fedora 16 boots slow because of extra swap line in /etc/fstab



Jeff72
5th December 2011, 08:24 AM
I thought I would post something I noticed with one of my systems booting slow with Fedora 16. My system booted very fast with Fedora 15 before and I was seeing much slower boot times with Fedora 16.

I saw this "failed" message in my /var/log/boot.log-20111204 file:
# grep -i fail /var/log/boot.log-20111204
Starting /dev/disk/by-uuid/c6d5573f-87c2-4ce4-b497-5bf314800688 aborted because a dependency failed.

It turns out, that c6d5573f-87c2-4ce4-b497-5bf314800688 number was for my swap partition entry in /etc/fstab. For some reason I had 2 different swap entries in my /etc/fstab file, like so:
# grep swap /etc/fstab
/dev/mapper/vg_w2-lv_swap swap swap defaults 0 0
UUID=c6d5573f-87c2-4ce4-b497-5bf314800688 swap swap defaults 0 0

I commented the extra line with the UUID entry in /etc/fstab like so:
# grep swap /etc/fstab
/dev/mapper/vg_w2-lv_swap swap swap defaults 0 0
#UUID=c6d5573f-87c2-4ce4-b497-5bf314800688 swap swap defaults 0 0

This change made my system boot much faster. Something to consider if your system is booting slow with Fedora 16 and was booting fast with Fedora 15.

David Batson
5th December 2011, 12:09 PM
Any invalid UUID number in fstab can result in a slow boot. I had recreated my SWAP partition on an third Linux OS install which changed the UUID number for it in Fedora. Like you, I noticed Fedora booting noticeably slower than before.

You can run blkid to find the current UUID numbers for your partitions, and edit fstab accordingly.

diamond_ramsey
6th December 2011, 05:14 AM
Any invalid UUID number in fstab can result in a slow boot. I had recreated my SWAP partition on an third Linux OS install which changed the UUID number for it in Fedora. Like you, I noticed Fedora booting noticeably slower than before.

You can run blkid to find the current UUID numbers for your partitions, and edit fstab accordingly.

+1 for blkid and verifying the UUID entry(ies) within fstab. :cool:

usador
16th December 2011, 11:04 AM
This same happened to me. I have 2 swap partitions.
As root:

swapoff /dev/"ofending partition"
mkswap /dev/"ofending partition"
swapon /dev/"ofending partition"

Crude, but worked.

Hope this helps.