You are here

Repairing swap partition for suspend

<A HREF="http://ubuntuforums.org/archive/index.php/t-287962.html">Original article at Ubuntu Forums</A>
With thanks to 56Phil...
First you need to restore swap:

sudo mkswap /dev/'swap partition'
sudo swapon -va

edit your /etc/fstab file

gksudo gedit /etc/fstab

when you edit your /etc/fstab file make sure that your swap partition has the new UUID.

UUID='your correct swap UUID' none swap sw 0 0

edit your /etc/initramfs-tools/conf.d/resume file

gksudo gedit /etc/initramfs-tools/conf.d/resume
put this line in your /etc/initramfs.d/resume file

RESUME=UUID='your correct swap UUID'

and make this entry:

sudo update-initramfs -u

Now, you should be able to hibernate, resume and keep your swap file intact.
First you need to restore swap:

Add new comment

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
By submitting this form, you accept the Mollom privacy policy.

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer