Gentoo Archives: gentoo-user

From: Neil Bothwick <neil@××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] GRUB2 EFI conditional boot
Date: Wed, 01 Apr 2020 08:59:51
Message-Id: 20200401095944.2aa5242e@digimed.co.uk
In Reply to: [gentoo-user] GRUB2 EFI conditional boot by "Серега Филатов"
1 On Tue, 31 Mar 2020 18:53:17 +0400, Серега Филатов wrote:
2
3 > I use dual boot windows/gentoo configuration on a UEFI laptop. I don't
4 > usually turn off laptop and just close the lid, leaving it in suspended
5 > state, which is actually hybrid on both systems - it goes to
6 > hibernation after a while.
7 >
8 > When it goes to hibernation, I'm able to select OS to boot through
9 > GRUB2. This is not good, because I have permanently mounted shared NTFS
10 > partition on both systems. If one of both OS is hibernated and NTFS
11 > data changed during that period - this leads to data corruption if the
12 > hibernated OS resumed.
13 >
14 > What I want to achieve is: when I start my laptop - it boots straight
15 > to the last operating system I used. This will enforce me to reboot and
16 > during the reboot OS unmounts filesystem correctly. And ONLY on reboot
17 > the GRUB OS selection pops up.
18 >
19 > Is there a configuration for that? I know that Windows BCD or ntldr
20 > doesn't allow to boot other Windows systems if one of them is
21 > hibernated.
22
23 What about having each menu entry set the default for the next boot to
24 that entry. It's not quite what you want but it means any unattended
25 reboot will always go back to the same OS.
26
27
28 --
29 Neil Bothwick
30
31 C&W music backward: get yer dog, wife, job, truck, kids, and sobriety
32 back.