#Failed to activate swap- opensuse 13.1

Hi everyone,

I wanted to extend my root partition so removed the swap partition (using gparted). Now the OS does not boot and I get the error: Failed to activate swap.

Then I tried to boot the system from the opensuse rescue CD but it failed. How can I fix my problem?

I assume that you simply removed the partition, but did not tell the system you did. In other words, the entry is still in /etc/fstab.

Thus either (when you have no swap partition at all) remove that entry from /etc/fstab, or (when you have created another swap partion) change the entry to point to the new partition.

Of course the cure should be done from some live/rescue system. But you say booting one failed. Now failed is another word for “it does not work” and gives almost no information. When you want advice, please be more talkative. What rescue CD and where got you stuck.

On 2015-09-16 15:16, hcvv wrote:
>
> I assume that you simply removed the partition, but did not tell the
> system you did. In other words, the entry is still in /etc/fstab.

Yes. And also the OP must tell grub not to tell the kernel where is the
swap intended for hibernation. Edit “/etc/default/grub”, then apply
changes as explained at the start of the file.


Cheers / Saludos,

Carlos E. R.

(from 13.1 x86_64 “Bottle” (Minas Tirith))