Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
add comment

1 Answer

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

GRUB_CMDLINE_LINUX=

and enter after the =

"resume=UUID=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"

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
add comment

Your Answer

 
discard

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.