5

I found answer near to this question but not exact answer in Ubuntu-forums.I found answer to

  1. How to create swap partition after installing Ubuntu.
  2. How to create or add swap file to existing swap partition.

But now for this question. Since at the time of installation i don't know the use of swap partition, i installed Ubuntu 12.10 without swap partition and i used second method as mentioned in "http://www.thegeekstuff.com/2010/08/how-to-add-swap-space/" to create swapfile and got this error while using mkswap

# mkswap /root/myswapfile
Setting up swapspace version 1, size = 1048572 KiB
**no label, UUID=cc477ba5-e2d9-495c-a63b-300c4e5e0048**

and each time UUID differs. But i ignored and continued with next steps and when i tried to hibernate my system i got these errors

PM: swap header not found,
cannot get swap device try swapon -a,
cannot get swap writer

I just want to hibernate my system only using swapfile without creating swap partition. Is it possible? I'm new to ubuntu.

4

2 Answers 2

2

Try installing USWSUSP package.... I hope this will work....

2
  • hi @Alex i installed uswsusp package but how to use it i didn't find its usage in its home page. I think it should be used by command.
    – learner
    Mar 11, 2013 at 2:35
  • @learner . can u answer me a set of questions... do you have a separate swap partition ??? Or have you created a swap file using "dd" command ?? In the default installation of Ubuntu 12., suspend to disk is disabled by default due to kernel bugs.. I have created a swap file of 8gb using this link:cyberciti.biz/faq/linux-add-a-swap-file-howto sucessfully.
    – Alex
    Mar 11, 2013 at 11:43
1

Due to the various concerns voiced here and also here I would caution against using a swap file. Maybe change your question and we can walk you through the retroactive installation of a swap partition.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .