💨

WindowsとUbuntuのデュアルブート環境を作る(Windows Boot Manager+rEFInd)

2021/02/19に公開

はじめに

WindowsとUbuntuをデュアルブートするために行なった作業の個人的メモ

方針

  • WindowsとUbuntuはそれぞれ別のディスクにインストールされている
  • Windowsが入っているディスクのUEFIパーティションにあるWindows Boot Managerからブート
  • Windows Boot ManagerからrEFIndを起動してそこから起動するOSを選択する

手順

現状の確認

コマンドプロンプトを管理者で実行。

EFI System Partition(ESP)をMドライブにマウント。

> mountvol M: /S

現在の起動設定を確認する。

> bcdedit /enum
Windows ブート マネージャー
--------------------------------
identifier              {bootmgr}
device                  partition=M:
path                    \EFI\MICROSOFT\BOOT\BOOTMGFW.EFI
description             Windows Boot Manager
locale                  ja-jp
inherit                 {globalsettings}
flightsigning           Yes
default                 {current}
resumeobject            {4d2ab4ea-6445-11eb-9201-c4b301d47888}
displayorder            {current}
toolsdisplayorder       {memdiag}
timeout                 30

\EFI\MICROSOFT\BOOT\BOOTMGFW.EFIがWindowsのブートローダ。

rEFIndのインストール

ブートマネージャをrEFIndに変更

インストールしたrEFIndに変更する。

> bcdedit /set {bootmgr} path \EFI\Microsoft\Boot\refind_x64.efi
> bcdedit /set {bootmgr} description "rEFInd"

Windows ブート マネージャー
--------------------------------
identifier              {bootmgr}
device                  partition=M:
path                    \EFI\Microsoft\Boot\refind_x64.efi
description             rEFInd
locale                  ja-jp
inherit                 {globalsettings}
flightsigning           Yes
default                 {current}
resumeobject            {4d2ab4ea-6445-11eb-9201-c4b301d47888}
displayorder            {current}
toolsdisplayorder       {memdiag}
timeout                 30

これでrEFIndから起動するようになった。

Discussion