0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Linuxで再起動するデバイスを指定

0
Last updated at Posted at 2026-07-18

この方法を知るに至った経緯

世の中ほとんどのPCって何故かWindowsPCが多いですが、Linuxに乗り換えようとしたようとした時、どうしてもUSBまたはCD-ROMとかからブート(起動)する必要がる。
普通はファンクションキーを連打しで起動したBIOS設定画面で、ブート順序を変えたりセキュアブート設定を切り替えるのですが不幸にも今回のPCはファストブート設定でBIOS設定に入れなかった。
Windowsには次回起動にUEFIせって画面を呼び出せるのでWindowsからLinuxへの変更はできた。

それは良かったんだけど、不幸にもカーネルアップデート時にaptが落ちたため新しいカーネルが起動しない状態になってしまったので、旧カーネルからこの方法を使うことになった。

今回使った方法

Linuxにはefibootmgr というコマンドがある!
このコマンドを使うと・・・

efibootmgr

BootCurrent: 0001
BootOrder: 0001,0002,0000
Boot0001* Zorin OS
Boot0002* Windows Boot Manager
Boot0005* USB Drive

こんな感じでデバイスのブート順序を取得できます。

起動用のUSBメモリを指しておくとそのメモリが表示される bのでその番号でリブートする指定をしておくとUSBブートが可能になります。仮にBoot0005だったとすると

sudo efibootmgr -n 0005

もちろんルート権限がいるので注意!

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?