Скрыть меню Grub и нажатие клавиш, чтобы открыть

Как у вас появляется grub для комбинации клавиш, но по умолчанию используется загрузка Windows.

Я использую Ubuntu 11.10 и Grub 2.0.

Вот мой текущий / etc / default / grub

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
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=" quiet vga=769"

Спасибо!

А вот мой /boot/grub/grub.cfg http: // pastebin .com / HbDBe8xz

7
задан 30 March 2012 в 02:09

1 ответ

Я думаю, что вы можете сделать это с помощью переменных конфигурации в /etc/default/grub. Не забудьте запустить update-grub после обновления файла.

GRUB_DEFAULT= 3 #Assuming Windows is the third menu entry
GRUB_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT=0

Согласно документации для каждого варианта:

`GRUB_DEFAULT'
     The default menu entry.  This may be a number, in which case it
     identifies the Nth entry in the generated menu counted from zero,
     or the title of a menu entry, or the special string `saved'.
     Using the title may be useful if you want to set a menu entry as
     the default even though there may be a variable number of entries
     before it.

     For example, if you have:

     menuentry 'Example GNU/Linux distribution' --class gnu-linux {
        ...
     }

     then you can make this the default using:

          GRUB_DEFAULT='Example GNU/Linux distribution'

     If you set this to `saved', then the default menu entry will be
     that saved by `GRUB_SAVEDEFAULT', `grub-set-default', or
     `grub-reboot'.

     The default is `0'.
`GRUB_TIMEOUT'
     Boot the default entry this many seconds after the menu is
     displayed, unless a key is pressed.  The default is `5'.  Set to
     `0' to boot immediately without displaying the menu, or to `-1' to
     wait indefinitely.

`GRUB_HIDDEN_TIMEOUT'
     Wait this many seconds for a key to be pressed before displaying
     the menu.  If no key is pressed during that time, boot
     immediately.  Unset by default.
0
ответ дан 30 March 2012 в 02:09

Другие вопросы по тегам:

Похожие вопросы: