After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 564744 - Swaps off linux swap divice
Swaps off linux swap divice
Status: RESOLVED DUPLICATE of bug 575585
Product: gparted
Classification: Other
Component: application
0.3.8
Other All
: Normal normal
: ---
Assigned To: gparted maintainers alias
gparted maintainers alias
Depends on:
Blocks:
 
 
Reported: 2008-12-16 15:18 UTC by Anthony
Modified: 2009-08-11 20:56 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Anthony 2008-12-16 15:18:05 UTC
Please describe the problem:
The partition editor keeps swapping off my Linux swap partition.  Every time I hibernate the computer it says "could not find swap device"and takes me back to the login screen.

Steps to reproduce:
1. I have to go into the partition editor to turn the swap back on
2. 
3. 


Actual results:
Once it is back on I can hibernate the computer.

Expected results:
I would expect the partition editor to keep the device swapped on at all times.

Does this happen every time?
Yes, when I turn the computer on again, it is swapped off.

Other information:
This never happened until I installed the partition editor.
Comment 1 Curtis Gedak 2008-12-16 17:26:01 UTC
Hi Anthony,

The problem you report seems strange because GParted does not contain code to  automatically disable swap partitions.

Did you perhaps delete and recreate your swap partition?
If so then the new partition would have a different UUID.  Many GNU/Linux distributions use the UUID value in the /etc/fstab file for automatically mounting partitions at boot up.

Would you check your /etc/fstab entry for the swap file and compare it to the UUID to see if these match?
If these values do not match, you will need to edit your /etc/fstab file to the proper value.

You can list the values of your partitions in several ways.
     E.g.,
          sudo blkid
     or,
          ls -l /dev/disk/by-uuid
Comment 2 Curtis Gedak 2009-01-02 22:33:45 UTC
Ping Anthony...
Comment 3 Curtis Gedak 2009-08-11 20:56:56 UTC
My suspicion is that GParted was used to move/resize the swap partition.  When this occured with GParted 0.3.8, the UUID of the original swap partition was not maintained.  If /etc/fstab file indicated that the swap partition was to be mounted using UUID, then future mounts would fail until the UUID was updated with the new value.

This bug was fixed in GParted 0.4.4.  See bug #575585 - Keep a swap partition's UUID and LABEL when resizing.

Hence I will mark this bug as a duplicate.  If you discover that this is not the case, please feel free to either reopen this bug or create a new bug, and provide additional details.



*** This bug has been marked as a duplicate of 575585 ***