Return from standby mode opens grub

2

After installing Windows 8 and Arch Linux as dual boot everything worked pretty well. However if I happen to close my laptop lid while in Win8 (the comp goes to standby mode) and then reopen my computer later Grub is opened as if the computer was restarted instead of just stand by.

My problem is that I have an ntfs partition in my fstab and if there is some traces in the partition that Windows still uses it then Arch boot fails and goes to recovery mode.

As such is there a way to make it so that when returning from standby it would start directly to Windows (as normally happens) instead of opening Grub?

Tomkarho

Posted 2013-06-04T05:40:14.630

Reputation: 231

Does it resume ok if you choose win 8 from grub? – parkydr – 2013-06-04T06:48:21.590

It does. Usually I just don't eyeball the process so Grub will automatically load the default OS which in my case is Arch. – Tomkarho – 2013-06-04T07:29:33.343

Answers

1

I think what you need is this: https://wiki.archlinux.org/index.php/GRUB#Recall_previous_entry

You set

GRUB_DEFAULT=saved

and

GRUB_SAVEDEFAULT=true

in /etc/default/grub (and re-create the Grub config). This will make Grub remember your last used OS, and thus if Windows hibernates (or crashes) it will automatically boot back into Windows, same with Linux.

Stefan Seidel

Posted 2013-06-04T05:40:14.630

Reputation: 8 812