GNOME Bugzilla – Bug 564744
Swaps off linux swap divice
Last modified: 2009-08-11 20:56:56 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.
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
Ping Anthony...
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 ***