Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Thread: Hibernate command results in reboot

  1. #1

    Default Hibernate command results in reboot

    I set my computer ( a Dell Dimension 9150, Nvidia graphics card, running non-proprietary drivers) to hibernate after 2 hrs inattention,
    Every time it initiates a hibernation it simply reboots.

  2. #2
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    23,699
    Blog Entries
    1

    Default Re: Hibernate command results in reboot

    Check the basics first...

    Swap space configured?
    Code:
    cat /proc/cmdline
    How much swap space is there?
    Code:
    cat /proc/swaps
    There should be an appropriate 'resume=' entry.

  3. #3

    Default Re: Hibernate command results in reboot

    sam@linux:~> cat /proc/cmdline
    BOOT_IMAGE=/boot/vmlinuz-4.4.114-42-default root=UUID=a0fdab26-1fe7-488a-82cf-0f4ddd1e29e8 resume=/dev/sda5 splash=silent quiet showopts


    sam@linux:~> cat /proc/swaps
    Filename Type Size Used Priority
    /dev/sda5 partition 2102268 0 -1

  4. #4
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    23,699
    Blog Entries
    1

    Default Re: Hibernate command results in reboot

    Ok, and is swap big enough? How much RAM in the system?
    Code:
    free -m

  5. #5

    Default Re: Hibernate command results in reboot

    sam@linux:~> free -m
    total used free shared buffers cached
    Mem: 3510 3163 347 26 0 2174
    -/+ buffers/cache: 988 2521
    Swap: 2052 0 2052

  6. #6
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    23,699
    Blog Entries
    1

    Default Re: Hibernate command results in reboot

    Quote Originally Posted by red_fir_smoke View Post
    sam@linux:~> free -m
    total used free shared buffers cached
    Mem: 3510 3163 347 26 0 2174
    -/+ buffers/cache: 988 2521
    Swap: 2052 0 2052
    Not enough swap for the RAM you have. Hibernation will never succeed. It needs to be doubled in size.

    This can also be used for a quick check...
    Code:
    # cat /proc/meminfo|grep -i total

  7. #7
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    23,699
    Blog Entries
    1

    Default Re: Hibernate command results in reboot

    Some more advice on this here:
    https://itsfoss.com/swap-size/
    *See the Ubuntu reasoning (with hibernation) as well.

  8. #8

    Default Re: Hibernate command results in reboot

    So I created a flat swapfile of 5 gig in /home.
    on execution of

    "swapon /home/swap/swapfile"

    I get a result of

    "linux:/home/sam # swapon /home/swap/swapfile
    swapon: /home/swap/swapfile: insecure permissions 0644, 0600 suggested.
    swapon: /home/swap/swapfile: read swap header failed"

  9. #9
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    23,699
    Blog Entries
    1

    Default Re: Hibernate command results in reboot

    I don't know why you're trying to use a swap file instead. Is it not possible for you to use gparted to repartition for a larger swap partition? Apart from the permissions that need adjusting, some additional steps are required to use such a swap file for hibernation purposes. I don't have direct experience with this, so you'll need to do some reading...

    http://vadim-kirilchuk-linux.blogspo...bernation.html

  10. #10

    Default Re: Hibernate command results in reboot

    According to the web, XFS cannot be resized no matter what tool you use!
    So.. I deleted the /home partition and resized the swap to 10 gigs, then recreated the /home partition as ext4.


    Still no joy the system reboots when attempting to hibernate.

Page 1 of 2 12 LastLast

Posting Permissions

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