Ask Your Question

swap space dissappeared for fedora 27?

asked 2018-04-04 01:25:28 -0500

rajiv gravatar image

updated 2018-04-04 02:47:54 -0500

I have installed debian alongside fedora 27. what i found after installing it is my fedora swap has gone and only debian uses that swap space. how do i recover that swap space again for fedora? this is the output of "free" ans "cat /etc/fstab" link text

edit retag flag offensive close merge delete


Please edit your question to include the output from the command free in Fedora, and the contents of /etc/fstab, also in Fedora.

sideburns gravatar imagesideburns ( 2018-04-04 02:10:41 -0500 )edit

Yes, and since you're putting the information into your question, you could have put it in directly if you'd wanted. (Not important, just a comment.) OK, you have swap, and it's not being used. Now, put the results of systemctl status in a comment (It's only a few lines.) so we can see if it's active or not.

sideburns gravatar imagesideburns ( 2018-04-04 13:24:01 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2018-04-04 20:09:19 -0500

cmurf gravatar image

Use blkid to get the UUID for swap, and make sure that UUID is used in both Debian and Fedora /etc/fstab.

Alternatively you can omit an /etc/fstab entry for both Debian and Fedora, and use gdisk to make sure the partition type GUID is set to 8200 which is the type for Linux swap, and then systemd will find it and activate swap automatically.

edit flag offensive delete link more

answered 2018-04-04 16:02:17 -0500

ssieb gravatar image

I expect what happened is that Debian reformatted the swap space. Run blkid and find the UUID for the swap space. Edit your /etc/fstab file and change the swap UUID to the new one.

edit flag offensive delete link more

Question Tools


Asked: 2018-04-04 01:25:28 -0500

Seen: 303 times

Last updated: Apr 04 '18