アップデートが完了し、PC が再起動され、Ubuntu オプションが消えました。 This frightens almost every dual boot user once — and it is almost never data loss. Windows アップデートによりブート順序が再配置されます。まれに、Ubuntu エントリ自体が破損することがあります。このページでは、2 分間の修正から深刻な修正まで、両方を修正します。
まず冷静な事実から始めましょう。Windows アップデートでは、Ubuntu、そのパーティション、ファイルは削除されません。定期的に行われるのは、Windows ブート マネージャーをファームウェアの起動順序の最上位に戻すことです。また、場合によっては、より大きな機能アップデートによって EFI ブート エントリ自体が書き換えられることもあります。 Repair in this order: reach Ubuntu once, restore the order, and only if the ubuntu entry itself is gone, rebuild it. Nothing here requires reinstalling either system.
再起動し、PC のワンタイム ブート メニュー キー (通常は F12、F8、または Esc) をタップします。 ubuntu エントリがリストされている場合は、それを選択します。 GRUB と Ubuntu は通常どおり起動します。これは、更新によって順序が変更されただけであることがわかります。
Do this check before downloading any repair tool. In the large majority of post-update cases, the entry is sitting right there and step 2 is the whole job.
Ubuntu 内では、1 つのコマンドでファームウェアのリストが表示され、1 つのコマンドでファームウェアが修正されます。 This is the same repair as the missing menu guide, repeated here because after an update it is the one you will actually use.
sudo efibootmgr を実行します。sudo efibootmgr -o 0001,0000 を実行します。正直な期待: 将来の機能アップデートで再びこれが行われる可能性があります。 It is a two-minute repeat, not a recurring fault, and it is the known tax of dual booting on a Windows-first machine. Some users pin the order inside the BIOS setup instead, which survives a little better on some models.
ubuntu エントリがどこにも存在しない場合は、EFI エントリ自体が失われています。 The friendly route back is Boot Repair, a free tool that runs from a live Ubuntu USB and rebuilds the entry and GRUB in one pass.
sudo add-apt-repository ppa:yannubuntu/boot-repair、sudo apt update、sudo apt install boot-repair を使用してツールをインストールします。boot-repair を実行し、推奨される修復 をクリックします。推奨される修復では、GRUB インストールを再構築し、ubuntu エントリを再登録します (更新によって妨げられる可能性のある 2 つのことはまさにこの 2 つです)。両方のシステムのファイルはそのまま残ります。
Recommended repair (repairs most frequent errors) — this option reinstalls GRUB and restores the boot entries. Your documents and both operating systems are kept.
The deep repair, for when Boot Repair cannot run or does not finish: reinstall GRUB by hand from the live USB.インストールされた Ubuntu をマウントし、その中にその EFI パーティションをマウントし、chroot でそれにステップインし、Ubuntu 自体であるかのようにブートローダーをインストールします。
lsblk で Ubuntu パーティションを見つけます。たとえば、それが /dev/nvme0n1p5 で、EFI パーティションが /dev/nvme0n1p1 であるとします。sudo mount /dev/nvme0n1p5 /mnt および sudo mount /dev/nvme0n1p1 /mnt/boot/efi を使用してマウントします。for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done を使用してライブ システム フォルダーをバインドします。sudo chroot /mnt を入力して、grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=ubuntu を実行します。update-grub で終了し、次に exit を実行し、アンマウントして再起動します。Partition names here are examples — using the wrong one mounts the wrong system, so confirm yours with lsblk first.コマンドがエラーなく完了すると、ubuntu エントリが再度登録され、GRUB が再構築されます。
You cannot stop Windows from preferring itself — it is designed to.回復を怖いものではなく、退屈なものにすることもできます。
これら 3 つの習慣を使えば、アップデート後にメニューがなくなっても 2 分ほど遠回りするだけで済むようになります。
いいえ、Windows アップデートは Ubuntu パーティションやファイルには影響しません。このアップデートで変更されたのはブートの配置です。ファームウェアの順序で Windows ブート マネージャーが最初に配置され、GRUB が隠蔽されるか、まれに機能アップデートによって ubuntu EFI エントリが妨害されるかのどちらかです。このページでは、両方とも何も再インストールせずに修復されます。
ubuntu エントリがまだ存在する場合は、約 2 分かかります。ワンタイム メニューから Ubuntu を起動し、efibootmgr で再注文します。エントリ自体がなくなった場合、ブート修復ルートにはライブ USB のブートを含めて約 15 分かかります。手動による chroot 修復は最後の手段であり、少し時間がかかります。
毎月の小規模なアップデートによって起動順序が乱されることはほとんどありません。大きな機能アップデートは通常疑わしいものであり、彼らでさえ通常はそれを並べ替えるだけです。ライブ USB と efibootmgr コマンドを手元に置いておけば、発生するたびに 2 分で修正できます。一部のラップトップ モデルでは、BIOS レベルのブート順序の方がよく存続する場合があります。