After hibernation, I can't choose the OS

Good Morning.
I hope this is the right section for this (maybe something link application > hibernate would be more appropriated).

I have a pc with openSuse 13.1 and other operating system installed.
The bootloader is openSuse’s grub2.

When I hibernate openSuse, and then reboot, I see the grub’s line “grub2…welcome to grub!” or something similar, but after that the screen from which I can choose the OS is not shown, and instead the resume of openSuse start.

Is there a way of fixing that?

thank you very much
Alessandro

On 2014-09-08 11:56, alkasel wrote:

> I have a pc with openSuse 13.1 and other operating system installed.
> The bootloader is openSuse’s grub2.
>
> When I hibernate openSuse, and then reboot, I see the grub’s line
> “grub2…welcome to grub!” or something similar, but after that the
> screen from which I can choose the OS is not shown, and instead the
> resume of openSuse start.
>
> Is there a way of fixing that?

Nothing to fix, as it is intentional that you can not choose system to
boot after you hibernate.


Cheers / Saludos,

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

As Robin said, Hibernate means your system flushes the memory to disk and tries to resume from that image to restore the running state as it were when you hibernated.

It’s all good.

Ok, I understand this is the way it should be, but if possibile, I would like to have the possibility to “save” my work (don’t have to close the document)…but…now that I remember, there is an option for restore the last session…and I disabled it some time ago… :frowning:

ok, sorry for bothering you xD

Alessandro

On 2014-09-08 13:06, alkasel wrote:
>
> Ok, I understand this is the way it should be, but if possibile, I would
> like to have the possibility to “save” my work (don’t have to close the
> document)…but…now that I remember, there is an option for restore
> the last session…and I disabled it some time ago… :frowning:

I’m not sure I understand.

I’ll try to explain what happens with hibernation/suspend.

Hibernating a machine is a relatively dangerous situation. The status of
the machine, that is, the contents of its RAM and CPU registers, is
swapped to hard disk. All applications with opened and unsaved files,
remain open and the files unsaved - you must understand this, because
that is the dangerous part -. All mounted filesystems remain mounted,
ie, dirty - and that is the other dangerous part.

If restore from hibernation fails, the machine has to be recovered the
same as if a sudden power failure happened. You (ie, the system) has to
do an fsck of all partitions that were mounted, and unsaved data from
open applications is lost. Temporary files remain, and some
applications can later refuse to start again unless you clear out
manually some temporary files. Files can be corrupted, specially because
a file could be in the middle of a write operation when hibernated.

If after you hibernate a machine, on boot, you choose a different
operating system (any one, Windows, another Linux, bsd, Android,
whatever) that happens to try to open a partition that was already
opened by the previous system, in hibernated state, the corruption this
causes in it can be humongous.

Notice that I use hibernation several times a day.


Cheers / Saludos,

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

Thank you for the clear explanation, it looks like I didn’t know some aspect of hibernation.

However

I’m not sure I understand.

what I was looking for was the possibility to use openSuse, hibernate/shutdown openSuse, start Haiku, do my stuff, shutdown haiku, start openSuse and have opened the same thing that was opened before hibernating/shutting down openSuse.

However, it’s the default behavoir of openSuse to re-open the last session, but i forgot it because I disabled this function long time ago.

Furthermore, based on what you’ve told, hibernating openSuse would not be a good thing, because I usually mount openSuse’s home partition from Haiku, even thought in read-only mode.

Thank you again

Alessandro

Yes a bad idea to run any other OS when any one of them is in hibernation. If you really need this maybe run the second OS in a virtual machine. I don’t know if Haiku has the needed drivers to run virtual though.

Ok did a quick google here is one of several sets of instruction to run Haiku is a VirtualBox VM

https://www.haiku-os.org/guides/virtualizing/virtualbox

Note you will need to be sure you have enough memory to run both OS’s at the same time.

there’s no need actually, since I discovered I can use openSuse’s “restore last session” function instead of hibernation.

Thank you very much, however.

Alessandro

On 2014-09-08 19:46, gogalthorp wrote:
>
> Yes a bad idea to run any other OS when any one of them is in
> hibernation.

It is possible to do it with a good deal of restraint and care: you must
not even try to mount any partition that was used by the hibernated
system. Like work in Linux, hibernate, boot Windows, etc. As Windows can
not mount Linux partitions, that part is safe; but Linux can have opened
Windows partitions, and that is terrible. So if you are sure that Linux
doesn’t have any Windows partition mounted, it can work.

But to do the hibernate-boot-other thing, you need to do changes in grub
and/or hibernate scripts. I knew how to do it with grub 1, not grub 2.


Cheers / Saludos,

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