Ask Your Question

Any ideas as to why my swap-drive is not enabled at boot Fedora 23?

asked 2015-12-08 04:53:20 -0500

oddestNeeds gravatar image

updated 2015-12-09 01:59:23 -0500

mether gravatar image

I have two machines. Both running fedora 23. Both require me to use gnome-disks to enable the swap drive when the system comes up. One machine returns a busy error when I do this but mounts it any. The other looks normal. If I check fstab afterwards I see no swap drive listed.

Also: I used to have two swap partitions on one drive, "left overs", but with Fedora 23 I can enable only one of them from gnome-disks.

I haven't fooled with fstab since the mount statement no longer identifies the swap drive as it did previously, and, I'm busy.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-12-08 10:30:24 -0500

florian gravatar image

updated 2015-12-08 10:42:58 -0500

Swap should be on by default if you declared that partition as swap when installing F23 - and you could have done so with a second partition too.

I have no clue how to do it using Gnome Disks but I may help you achieving it using the terminal: Open a terminal, and type swapon -s to see the current status of your swap space. (free -h is also good for that.)

  1. Make your existing partition a (permanent) swap space (as root user - use su - to become root): mkswap /dev/your-swap-partition. If you are using LVM, it will the command will look like this: mkswap /dev/VolumeGroup/LogVol01. Use lsblkor Gnome Disks to find out the labeling of your swap partitions.

    In the following I am going to proceed as if /dev/fedora/swap was your swap partition.

  2. Turn on your swap by: swapon /dev/fedora/swap (adjust the partition labeling here). Check with free -h if that worked.
  3. To make this permanent, you will have to change the file /etc/fstab. Do a gedit /etc/fstab, and add the following:

    /dev/fedora/swap swap swap defaults 0 0

You can repeat this process for a second/third/... swap partition.

Good luck!

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2015-12-08 04:53:20 -0500

Seen: 783 times

Last updated: Dec 08 '15