ubuntu 起動 優先順位
'/boot/grub/grub.cfg' が設定ファイル。でも、sudoでもrootでも読み込み専用でしかファイルが開けない。そしたらコメント部分にこう書いてあった。
# It is automatically generated by /usr/sbin/grub-mkconfig using templates # from /etc/grub.d and settings from /etc/default/grub
どうやら'/etc/default/grub'を編集する。
以下grubの一部抜粋
# If you change this file, run 'update-grub' afterwards to update # /boot/grub/grub.cfg. GRUB_DEFAULT=6 #この番号が起動優先順位を決定している。 #GRUB_HIDDEN_TIMEOUT=0 GRUB_HIDDEN_TIMEOUT_QUIET=true GRUB_TIMEOUT=10 GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" GRUB_CMDLINE_LINUX=""
上記の優先順位を変更して
$ update-grub
とやる。