Results 1 to 7 of 7

Thread: creating SWAP space 12.10

  1. #1
    Join Date
    Aug 2011
    Beans
    10

    creating SWAP space 12.10

    hello, so I cant hibernate my laptop because I dont have a swap space, I created 10GB partition(8GB RAM), swap-linux type and followed this steps http://askubuntu.com/questions/33697...m-installation

    then i tried to hibernate my laptop and it worked normally, but after hibernating, when I turned PC back on, there is no SWAP space anymore - chcecked by command "free -m"

    any ideas how to fix it to stay forever?

    thanks

  2. #2
    Join Date
    Apr 2005
    Location
    Finland/UK
    Beans
    Hidden!
    Distro
    Ubuntu 15.04 Vivid Vervet

    Re: creating SWAP space 12.10

    did you remember to add the swap into /etc/fstab and /etc/initramfs-tools/conf.d/resume ?

    And did you try restarting the PC after adding the swap and making those configurations?

  3. #3
    Join Date
    Aug 2011
    Beans
    10

    Re: creating SWAP space 12.10

    yop, i remember doing it but i didnt restart pc yet, im gonna try

  4. #4
    Join Date
    Oct 2005
    Location
    INDY
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: creating SWAP space 12.10

    Did you add the entry into /etc/fstab
    as was suggested in that link.

    More info here: https://help.ubuntu.com/community/Fstab
    Castles Made of Sand,
    Fall in the Sea,
    Eventually!

  5. #5
    Join Date
    Aug 2011
    Beans
    10

    Re: creating SWAP space 12.10

    yop, I did...and tried restart but didnt help...

    just to make sure understanding steps from the link I posted,

    the "/dev/sdx" is the partition of my swap area, right? so my swap area is "dev/sda4" ..and I used this instead of every "/dev/sdx" .. right?

  6. #6
    Join Date
    Apr 2005
    Location
    Finland/UK
    Beans
    Hidden!
    Distro
    Ubuntu 15.04 Vivid Vervet

    Re: creating SWAP space 12.10

    Quote Originally Posted by feri_crosby View Post
    yop, I did...and tried restart but didnt help...

    just to make sure understanding steps from the link I posted,

    the "/dev/sdx" is the partition of my swap area, right? so my swap area is "dev/sda4" ..and I used this instead of every "/dev/sdx" .. right?
    yes, for the mkswap command. But keep in mind that you only need to run that command once, to create the swap partition, and also every time you run that command the UUID of the partition changes. (And both fstab and the resume file need to have the correct UUID to work). So if you have executed the mkswap command after you edited those files, you should run blkid again and re-edit the files again.

  7. #7
    Join Date
    Aug 2011
    Beans
    10

    Re: creating SWAP space 12.10

    and in this command

    "sudo swapon -U UUID"

    the UUID is something like that? "530bccfa-3517-4921-83f2-ab7702c727e5" or do I have to put the "/dev/sda4" ??

    EDIT: ok, its working now, the main problem was that I copied the UUID but added a few numbers so it was wrong UUID...fixed

    thanks
    Last edited by feri_crosby; November 11th, 2012 at 07:33 PM. Reason: found a solution

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •