Page 1 of 3 123 LastLast
Results 1 to 10 of 27

Thread: How to enable Hibernation

  1. #1
    Join Date
    Dec 2009
    Beans
    362

    How to enable Hibernation

    Hi,

    I have installed Ubuntu 11.04 with a swap space about half of my system RAM (3 GB). So the hibernate command doesn't work. With LiveCD and gparted I have resized the swap space to cover all the RAM (about 4 GB). Now the command hibernate from panel menu is not present. How can I enable it?

    Thank you

    PS I have tried sudo gconf-editor apps/gnome_power_management but I could find can_hibernation value.

  2. #2
    Join Date
    Feb 2011
    Location
    not in Slovenia anymore
    Beans
    1,137
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: How to enable Hibernation

    To enable hibernation, you should have at lease 1.5 as much swap as ram (some say 2x as much).

    Hibernation dumps all the memory into swap and shuts down the machine, so if swap is used before, there has to be more than ram.

    I hope I'm making sense here
    Don't ask what your company can do for you.
    Ask what you can do for
    your company!

  3. #3
    psusi is offline Ubuntu addict and loving it
    Join Date
    Sep 2005
    Location
    Orlando, FL
    Beans
    3,980
    Distro
    Ubuntu Development Release

    Re: How to enable Hibernation

    Make sure your swap space is actually mounted:

    cat /proc/swaps

  4. #4
    Join Date
    Feb 2011
    Location
    not in Slovenia anymore
    Beans
    1,137
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: How to enable Hibernation

    +1 that has to be done, yes...

    Code:
    free
    should also provide swap info
    also look at
    Code:
    /etc/fstab
    there you should find something like:
    Code:
    ...
    UUID=59f2... your guid here ...5c39 none            swap    sw              0       0
    ...
    And note, that the swap partition has to be in one piece, to be good enough for hibernation. I don't recall where I found that info, but it seems logical ...
    Don't ask what your company can do for you.
    Ask what you can do for
    your company!

  5. #5
    Join Date
    Dec 2009
    Beans
    362

    Re: How to enable Hibernation

    Quote Originally Posted by psusi View Post
    Make sure your swap space is actually mounted:

    cat /proc/swaps
    The swap partition is not mounted

    Code:
    cat /proc/swaps
    Filename                Type        Size    Used    Priority
    Now I have reactive the swap partition from Gparted but the hibernate function is not available.
    Last edited by erotavlas; May 20th, 2011 at 03:39 PM.

  6. #6
    Join Date
    Dec 2009
    Beans
    362

    Re: How to enable Hibernation

    Code:
    free
    should also provide swap info
    also look at
    Code:
    /etc/fstab
    there you should find something like:
    Code:
    ...
    UUID=59f2... your guid here ...5c39 none            swap    sw              0       0
    ...
    And note, that the swap partition has to be in one piece, to be good enough for hibernation. I don't recall where I found that info, but it seems logical ...
    The command
    Code:
     sudo /etc/fstab
    does not work.
    sudo: /etc/fstab: command not found
    If I'm not wrong for a correct hibernation procedure is necessary to store the content of the RAM in the disk, the swap space is not necessary...so where is the mistake?

  7. #7
    psusi is offline Ubuntu addict and loving it
    Join Date
    Sep 2005
    Location
    Orlando, FL
    Beans
    3,980
    Distro
    Ubuntu Development Release

    Re: How to enable Hibernation

    Quote Originally Posted by erotavlas View Post
    The command
    Code:
     sudo /etc/fstab
    does not work.
    He said to look at the file /etc/fstab, not run the command sudo /etc/fstab.

    Quote Originally Posted by erotavlas View Post
    If I'm not wrong for a correct hibernation procedure is necessary to store the content of the RAM in the disk, the swap space is not necessary...so where is the mistake?
    The swap partition is the part of the disk where the ram is written to, so you need to get it mounted.

  8. #8
    Join Date
    Apr 2006
    Location
    Ubuntuland
    Beans
    2,124
    Distro
    Ubuntu 13.10 Saucy Salamander

    Lightbulb Re: How to enable Hibernation

    Quote Originally Posted by erotavlas View Post
    The command
    Code:
     sudo /etc/fstab
    does not work.

    If I'm not wrong for a correct hibernation procedure is necessary to store the content of the RAM in the disk, the swap space is not necessary...so where is the mistake?
    Code:
    sudo vi /etc/fstab
    /etc/fstab is a file not a command.

    Hibernation uses the swap space as the disk space. Therefore, you need swap space (maybe not for swapping but at least for hibernation).
    24 beers in a case, 24 hours in a day. Coincidence? I think not!

    Trusty Tahr 64 bit, AMD Phenom II 955 Quad Core 3.2GHz, GeForce 9600 GT
    16G PC2-6400 RAM, 128 GB SSD, Twin 1TB SATA 7200 RPM RAID0

  9. #9
    Join Date
    Feb 2011
    Location
    not in Slovenia anymore
    Beans
    1,137
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: How to enable Hibernation

    fstab is a file .... I apologize for not being clear about that before.

    so the command
    Code:
    sudo gedit /etc/fstab
    should open a file like this (my copy looks like this, don't mind the '#' comments, they are part generated, part mine ...)
    # /etc/fstab: static file system information.
    #
    # Use 'blkid -o value -s UUID' to print the universally unique identifier
    # for a device; this may be used with UUID= as a more robust way to name
    # devices that works even if disks are added and removed. See fstab(5).
    #
    # <file system> <mount point> <type> <options> <dump> <pass>
    proc /proc proc nodev,noexec,nosuid 0 0
    # / was on /dev/sda1 during installation
    UUID=f66f4cf1-1e93-4b57-9acc-66845f7810f2 / ext4 errors=remount-ro 0 1

    #swap after
    UUID=59f2578d-350e-482a-b998-c361fcfe5c39 none swap sw 0 0
    #warehouse
    UUID=dc1356bf-6675-4a6f-b07a-eb4979b378e2 /media/warehouse ext4 defaults,noatime 0 0
    I have "bolded" the part, that is responsible that swap gets mounted at startup, you can find you UUID/GUID in gparted if you right click on swap and select 'information'.
    Attached Images Attached Images
    Don't ask what your company can do for you.
    Ask what you can do for
    your company!

  10. #10
    Join Date
    Apr 2006
    Location
    Ottawa, Canada
    Beans
    316
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: How to enable Hibernation

    The "/etc/fstab" is a configuration file, not a command. Try:
    Code:
    cat /etc/fstab
    Edit: An Sanct beat me to it. Ignore me!

Page 1 of 3 123 LastLast

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
  •