Hibernate not working

Hi everyone.
I 'm dual boot on grub2 with OpenSuse 13.1 (more exactly tumbletweed) and windows 8.1.
I first installed the windows about 6 months ago. i booted and everythings worked fine. sleep,hibernate and shutdown.
After that I installed the OS 13.1. And then when I boot to windows hibernate won’t work. hibernate just black the scren and lock the user.
I searched the web about 3 months ago and found a solution that append something to the “grub.cfg” in the windows boot section and then hibernate worked again. I don’t remember what was it :frowning: . I had to reinstall the OpenSuse 13.1 again, just formated its ext4 partition and related partitions with the intial setup wizard and reinstalled it.
And now again the hibernate problem is come back. not just the hibernate, but I can’t sleep and even can’t shutdown in windows. they all just do the same, balck screen and locked user. I again searched the web but couldn’t find the last used solution.
Found some solutions like make the windows partition active and install grub on mbr. but it doesn’t work. just get the boot error from M$ that insert the disk and try to repair :smiley: .

What do you I do? I want to dual boot with windows hibernate working.

One thing I should say here is it is recommended to disable hibernation in windows 8, windows 8 defaults to a hibernate as a so called shutdown anyway, which is a problem.

found a solution that append something to the “grub.cfg” in the windows boot section and then hibernate worked again
Sounds like you need to find that again.
And probably each time there is a kernel update
There is probably a way to prevent it being changed… not sure

Put your custom Windows entry to /boot/grub2/custom.cfg and disable “Probe for a foreign OS” in YaST->System->Boot Loader->Boot Loader Options, I would say.

Or edit /etc/grub.d/30_os-prober accordingly so that it automatically adds the needed option to your Windows entry.

I dont know the solution :frowning: and I wanted it

On 2014-05-31 17:46, phenomx64 wrote:
>
> Hi everyone.
> I 'm dual boot on grub2 with OpenSuse 13.1 (more exactly tumbletweed)
> and windows 8.1.

Ah, then you are not using 13.1, you are now using Tumbleweed - which
has its own forum because it has its own problems.

> I first installed the windows about 6 months ago. i booted and
> everythings worked fine. sleep,hibernate and shutdown.

Ok.

> After that I installed the OS 13.1. And then when I boot to windows
> hibernate won’t work. hibernate just black the scren and lock the user.

Right.

As far as I know, Windows must be in control of the boot process so that
hibernate from Windows works. Windows 8 is different, I can only talk
for Windows 7 and traditional partitioning.

For hibernate to work, the MBR has to be the original Windows style MBR
(ie, not grub in there), and the Windows partition must be marked active

  • meaning that Grub is no longer in control. You have to use easyBCD
    instead, and grub fully installed in a different partition.

I have not tested this solution in my laptop, because it would interfere
with my normal Linux usage. I want Linux and grub in control. I
sacrifice Windows hibernation. I use suspend to ram when I must.

Notice that, although Linux is not so picky about being in control, part
of the hibernation sequence modifies the boot process so that the next
boot is different: the menu disappears. In my laptop, even the BIOS
refuses to offer me boot from other media. But Linux does understand
grub - and Windows does not. Windows can not do those tricks if what it
put there is no longer there… and it fails hibernating.

So… easyBCD for you? Bad luck, it does not work with W8.


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)

This will be moved to Tumbleweed and is CLOSED for the moment.

Moved from Install/Boot/Login and open again.

So… easyBCD for you? Bad luck, it does not work with W8.


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)

I made it work without any easybcd and with windows 8.1. I know the problems with windows hibernation , but when you hibernate the windows the ntfs partitions are locked and does not mount normally in suse. of course you could mount them with the -force option.
three months ago. I’ve just changed somethings to grub, and everything went ok, but unfortunately i can’t remember what i did exactly and couldn’t find it again.
It was easier than anything…

On 2014-05-31 20:36, phenomx64 wrote:

> three months ago. I’ve just changed somethings to grub, and everything
> went ok, but unfortunately i can’t remember what i did exactly and
> couldn’t find it again.
> It was easier than anything…

And you did not take notes of what you did that time. I would also like
to learn the trick…

It’s unfortunate you are using tumbleweed, because you need the grub
experts.


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)

Find The Working solution again :smiley:

I have these partitions :
1.sda1 system reserved partion for windows 8 and the first partion,about 300 megabytes
2.sda2 (C drive) where windows files are residing.
3.sda3 (D drive) , a partiton for personal files
4.sda5 , a swap partition for linux
5.sda6 , partition where opensuse is installed
6.sda7, partition where some extra files (like /home) are.

I have run easybcd in windows ,go to bcd backup repair and perform “recreate/repair boot files”. after restarting system grub won’t be shown and it directly boot up to windows. you can see now that system reserved partition have the active flag.
I inserted the opensuse installation dvd to the drive, and restarted the system. booted it up from dvd drive and selected the system rescue menu and installed the grub again after boot by :

#mount /dev/sda6 /mnt
#mount --bind /dev /mnt/dev
#chroot /mnt
#grub2-install /dev/sda

restarted the system. grub is shown again. selected to boot the windows, and windows can now hibernate. /dev/sda1 is still active.

Life is again beautifull :smiley: