2017-07-05 17 views
1

Windowsは、Ubuntuからefibootmgrで変更しても、UEFIの起動順序を上書きし続けます。しかし、BootNextオプションは上書きされません。つまり、私はBootNextをUbuntuに設定でき、再起動するとUbuntuに起動します。efibootmgrに相当するWindows?

efibootmgr > file.txt 
CURR="$(grep "BootCurrent" file.txt | grep -Eo "[0-9]{4}")" 
efibootmgr -n $CURR 
rm file.txt 
exit 0 

これは私がUbuntuでから再起動したとき、私は、GRUBをブートできるようになります:私は、それゆえ私はUbuntuのでブートするたびに実行するには、次のスクリプトを書きました。 Windowsから再起動するときにgrubで起動できるように、Windowsから同じ方法を実行する方法はありますか?

EDITます。bcdedit/Vを実行

は(なしUbuntuのエントリ)を付与するものではありません:

Windows Boot Manager 
-------------------- 
identifier    {9dea862c-5cdd-4e70-acc1-f32b344d4795} 
device     partition=\Device\HarddiskVolume1 
path     \EFI\ubuntu\shimx64.efi 
description    Windows Boot Manager 
locale     en-US 
inherit     {7ea2e1ac-2e61-4728-aaa3-896d9d0a9f0e} 
default     {9b4692db-d6e1-11e6-8040-f733056555ec} 
resumeobject   {9b4692da-d6e1-11e6-8040-f733056555ec} 
displayorder   {9b4692db-d6e1-11e6-8040-f733056555ec} 
toolsdisplayorder  {b2721d73-1db4-4c62-bf78-c548a880142d} 
timeout     0 

Windows Boot Loader 
------------------- 
identifier    {9b4692db-d6e1-11e6-8040-f733056555ec} 
device     partition=C: 
path     \WINDOWS\system32\winload.efi 
description    Windows 10 
locale     en-US 
inherit     {6efb52bf-1766-41db-a6b3-0ee5eff72bd7} 
recoverysequence  {9b4692dc-d6e1-11e6-8040-f733056555ec} 
displaymessageoverride Recovery 
recoveryenabled   Yes 
isolatedcontext   Yes 
allowedinmemorysettings 0x15000075 
osdevice    partition=C: 
systemroot    \WINDOWS 
resumeobject   {9b4692da-d6e1-11e6-8040-f733056555ec} 
nx      OptIn 
bootmenupolicy   Standard 
+0

私はBCDeditでUbuntuエントリを見つけることができないようです。 @wOxxOm EDITを見てください。 –

+0

私は間違っていた:Windowsブートマネージャーは、UEFIの後に実行されます。 – wOxxOm

+0

[EasyUEFI](http://www.easyuefi.com/index-us.html)は、ワンタイムブートシーケンスとCLIをサポートしています。おそらく純粋なCLIユーティリティを見つけることができます。 – wOxxOm

答えて

0

あなたは{9b4692db-d6e1-11e6-8040-f733056555ec}に似Ubuntuのローダを作成する必要はありません。 ?

基本的に、ubuntuノードはブートマネージャからブートローダアプリケーションに変更する必要があります。 その後、EFI \ Boot \ bootx64.efiにブートマネージャがあります。
ブートマネージャ用の{bootmgr}ノードを作成します。上記の両方のguidを含むようにdisplayorderを設定してください。次に、{bootmgr}のデフォルト値をubuntu guidに設定します。それはリブートの間にubuntu項目をスティッキーにするはずです。

関連する問題