Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I just created a swap partition out of my useless USB drive (4GB). I'm successfully using it, it shows in the top command and I also edited the etc/fstab to automatically mount it at startup.

My problem is, while switching on my computer, I see this message with all the text Hibernation: resume: no device specified

What should I do??

share|improve this question
up vote 1 down vote accepted

Open a terminal and type:

sudo blkid

This will list all your connected devices. Look for your USB drive containing your swap space. There will be a UUID="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" entry (universally unique identifier for a device). Note the number between the quotes "".

Now type

gksudo gedit /etc/default/grub

Search for a line that begins with


and enter after the =


with the quotes! The Xs represent the number you noted after typing blkid, insert them instead of the Xs. If there already is an entry of some kind, be sure to include it in between the quotes, too.

(For example, your line might look like this:

GRUB_CMDLINE_LINUX="acpi_sleep=nonvs resume=UUID=0258cebf-0906-4b1b-af15-abb35862f180"

But do not simply copy and paste this, yours should look different!)

Save and close the file and type

sudo update-grub

This will take a small time. After it's finished, reboot. You should be all set now.

share|improve this answer
That worked. Thank you. – Akshit Baunthiyal Aug 10 '12 at 3:28

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.