LoginSignup
1
1

More than 1 year has passed since last update.

grub default windows ubuntu

Last updated at Posted at 2022-12-02

エントリ確認

grep windows /boot/grub/grub.cfg
menuentry 'Windows Boot Manager (on /dev/nvme0n1p2)' --class windows --class os $menuentry_id_option 'osprober-efi-9234-7609' {

GRUB_DEFAULTを変更

sudo nano /etc/default/grub
#GRUB_DEFAULT=0
GRUB_DEFAULT='Windows Boot Manager (on /dev/nvme0n1p2)'

GRUB_DEFAULT=2だと動かなかった

以前の選択を覚えてもよい
GRUB_DEFAULT=saved
GRUB_SAVEDEFAULT=true

反映

sudo update-grub
reboot

// TODO: ワンライナーの方法を考える

1
1
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
1
1