Форум русскоязычного сообщества Ubuntu


Следите за новостями русскоязычного сообщества Ubuntu в Twitter-ленте @ubuntu_ru_loco

Автор Тема: Загрузчик Burg  (Прочитано 2923 раз)

0 Пользователей и 1 Гость просматривают эту тему.

Оффлайн Apmyp_FM

  • Автор темы
  • Новичок
  • *
  • Сообщений: 18
    • Просмотр профиля
Загрузчик Burg
« : 02 Мая 2012, 14:02:18 »
Как сделать чтобы первым загружался windows 7, а не Ubuntu?


Содержимое конфига
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/burg-mkconfig using templates
# from /etc/burg.d and settings from /etc/default/burg
#

### BEGIN /etc/burg.d/00_header ###
set theme_name=ubuntu
set gfxmode=640x480
if [ -s $prefix/burgenv ]; then
  load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
  set saved_entry=${prev_saved_entry}
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z ${boot_once} ]; then
    saved_entry=${chosen}
    save_env saved_entry
  fi
}
function select_menu {
  if menu_popup -t template_popup theme_menu ; then
    free_config template_popup template_subitem menu class screen
    load_config ${prefix}/themes/${theme_name}/theme ${prefix}/themes/custom/theme_${theme_name}
    save_env theme_name
    menu_refresh
  fi
}
function toggle_fold {
  if test -z $theme_fold ; then
    set theme_fold=1
  else
    set theme_fold=
  fi
  save_env theme_fold
  menu_refresh
}
function select_resolution {
  if menu_popup -t template_popup resolution_menu ; then
    menu_reload_mode
    save_env gfxmode
  fi
}
if test -f ${prefix}/themes/${theme_name}/theme ; then
  insmod coreui
  menu_region.text
  load_string '+theme_menu { -Lightness { command="set theme_name=Lightness" }}'
  load_string '+theme_menu { -Ubuntu_always { command="set theme_name=Ubuntu_always" }}'
  load_string '+theme_menu { -achromatic { command="set theme_name=achromatic" }}'
  load_string '+theme_menu { -arabic_and_freedom { command="set theme_name=arabic_and_freedom" }}'
  load_string '+theme_menu { -black_and_white { command="set theme_name=black_and_white" }}'
  load_string '+theme_menu { -burg { command="set theme_name=burg" }}'
  load_string '+theme_menu { -chiva { command="set theme_name=chiva" }}'
  load_string '+theme_menu { -coffee { command="set theme_name=coffee" }}'
  load_string '+theme_menu { -minimal { command="set theme_name=minimal" }}'
  load_string '+theme_menu { -minimum { command="set theme_name=minimum" }}'
  load_string '+theme_menu { -proto { command="set theme_name=proto" }}'
  load_string '+theme_menu { -radiance { command="set theme_name=radiance" }}'
  load_string '+theme_menu { -radiancetext { command="set theme_name=radiancetext" }}'
  load_string '+theme_menu { -refit { command="set theme_name=refit" }}'
  load_string '+theme_menu { -sora { command="set theme_name=sora" }}'
  load_string '+theme_menu { -sora_clean { command="set theme_name=sora_clean" }}'
  load_string '+theme_menu { -sora_extended { command="set theme_name=sora_extended" }}'
  load_string '+theme_menu { -ubuntu { command="set theme_name=ubuntu" }}'
  load_string '+theme_menu { -ubuntu2 { command="set theme_name=ubuntu2" }}'
  load_string '+theme_menu { -winter { command="set theme_name=winter" }}'
  load_config ${prefix}/themes/conf.d/10_hotkey
  load_config ${prefix}/themes/${theme_name}/theme ${prefix}/themes/custom/theme_${theme_name}
  insmod vbe
  insmod png
  insmod jpeg
  set gfxfont="Unifont Regular 16"
  menu_region.gfx
  vmenu resolution_menu
  controller.ext
fi
insmod ext2
set root='(hd0,7)'
search --no-floppy --fs-uuid --set d519bce2-a00a-46ab-89fd-ca28885eb62d
set locale_dir=($root)/boot/burg/locale
set lang=ru
insmod gettext
set timeout=5
### END /etc/burg.d/00_header ###

### BEGIN /etc/burg.d/10_linux ###
menuentry 'Ubuntu GNU/Linux, with Linux 3.2.0-23-generic' --class ubuntu --class gnu-linux --class gnu --class os --group group_main {
insmod ext2
set root='(hd0,7)'
search --no-floppy --fs-uuid --set d519bce2-a00a-46ab-89fd-ca28885eb62d
echo 'Loading Linux 3.2.0-23-generic ...'
linux /boot/vmlinuz-3.2.0-23-generic root=UUID=d519bce2-a00a-46ab-89fd-ca28885eb62d ro  quiet splash
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.2.0-23-generic
}
menuentry 'Ubuntu GNU/Linux, with Linux 3.2.0-23-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os --group group_main {
insmod ext2
set root='(hd0,7)'
search --no-floppy --fs-uuid --set d519bce2-a00a-46ab-89fd-ca28885eb62d
echo 'Loading Linux 3.2.0-23-generic ...'
linux /boot/vmlinuz-3.2.0-23-generic root=UUID=d519bce2-a00a-46ab-89fd-ca28885eb62d ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.2.0-23-generic
}
### END /etc/burg.d/10_linux ###

### BEGIN /etc/burg.d/30_os-prober ###
menuentry "Windows 7 (loader) (on /dev/sda1)" --class windows --class os {
insmod ntfs
set root='(hd0,1)'
search --no-floppy --fs-uuid --set e2887230887202f9
chainloader +1
}
### END /etc/burg.d/30_os-prober ###

### BEGIN /etc/burg.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/burg.d/40_custom ###
« Последнее редактирование: 02 Мая 2012, 14:09:59 от Apmyp_FM »

Оффлайн Tokuan

  • Старожил
  • *
  • Сообщений: 1250
    • Просмотр профиля
    • В поисках здравого смысла
Re: Загрузчик Burg
« Ответ #1 : 02 Мая 2012, 14:04:53 »
"— Милая, - сказал он, - у вас в голове пять тысяч маркетологов срали десять лет, а вы хотите, чтобы я там убрал за пять минут…"
Пелевин В.О "Empire V"

Оффлайн margarita-ori

  • Активист
  • *
  • Сообщений: 717
    • Просмотр профиля
Re: Загрузчик Burg
« Ответ #2 : 02 Мая 2012, 14:11:48 »

Оффлайн Apmyp_FM

  • Автор темы
  • Новичок
  • *
  • Сообщений: 18
    • Просмотр профиля
Re: Загрузчик Burg
« Ответ #3 : 02 Мая 2012, 14:14:01 »
т.е. мне так сделать вместо set default="0" это set default="Windows 7 (loader) (on /dev/sda1)"

Оффлайн Tokuan

  • Старожил
  • *
  • Сообщений: 1250
    • Просмотр профиля
    • В поисках здравого смысла
Re: Загрузчик Burg
« Ответ #4 : 02 Мая 2012, 14:14:47 »
Содержимое конфига
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/burg-mkconfig using templates
# from /etc/burg.d and settings from /etc/default/burg
#

### BEGIN /etc/burg.d/00_header ###
set theme_name=ubuntu
set gfxmode=640x480
if [ -s $prefix/burgenv ]; then
  load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
  set saved_entry=${prev_saved_entry}
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z ${boot_once} ]; then
    saved_entry=${chosen}
    save_env saved_entry
  fi
}
function select_menu {
  if menu_popup -t template_popup theme_menu ; then
    free_config template_popup template_subitem menu class screen
    load_config ${prefix}/themes/${theme_name}/theme ${prefix}/themes/custom/theme_${theme_name}
    save_env theme_name
    menu_refresh
  fi
}
function toggle_fold {
  if test -z $theme_fold ; then
    set theme_fold=1
  else
    set theme_fold=
  fi
  save_env theme_fold
  menu_refresh
}
function select_resolution {
  if menu_popup -t template_popup resolution_menu ; then
    menu_reload_mode
    save_env gfxmode
  fi
}
if test -f ${prefix}/themes/${theme_name}/theme ; then
  insmod coreui
  menu_region.text
  load_string '+theme_menu { -Lightness { command="set theme_name=Lightness" }}'
  load_string '+theme_menu { -Ubuntu_always { command="set theme_name=Ubuntu_always" }}'
  load_string '+theme_menu { -achromatic { command="set theme_name=achromatic" }}'
  load_string '+theme_menu { -arabic_and_freedom { command="set theme_name=arabic_and_freedom" }}'
  load_string '+theme_menu { -black_and_white { command="set theme_name=black_and_white" }}'
  load_string '+theme_menu { -burg { command="set theme_name=burg" }}'
  load_string '+theme_menu { -chiva { command="set theme_name=chiva" }}'
  load_string '+theme_menu { -coffee { command="set theme_name=coffee" }}'
  load_string '+theme_menu { -minimal { command="set theme_name=minimal" }}'
  load_string '+theme_menu { -minimum { command="set theme_name=minimum" }}'
  load_string '+theme_menu { -proto { command="set theme_name=proto" }}'
  load_string '+theme_menu { -radiance { command="set theme_name=radiance" }}'
  load_string '+theme_menu { -radiancetext { command="set theme_name=radiancetext" }}'
  load_string '+theme_menu { -refit { command="set theme_name=refit" }}'
  load_string '+theme_menu { -sora { command="set theme_name=sora" }}'
  load_string '+theme_menu { -sora_clean { command="set theme_name=sora_clean" }}'
  load_string '+theme_menu { -sora_extended { command="set theme_name=sora_extended" }}'
  load_string '+theme_menu { -ubuntu { command="set theme_name=ubuntu" }}'
  load_string '+theme_menu { -ubuntu2 { command="set theme_name=ubuntu2" }}'
  load_string '+theme_menu { -winter { command="set theme_name=winter" }}'
  load_config ${prefix}/themes/conf.d/10_hotkey
  load_config ${prefix}/themes/${theme_name}/theme ${prefix}/themes/custom/theme_${theme_name}
  insmod vbe
  insmod png
  insmod jpeg
  set gfxfont="Unifont Regular 16"
  menu_region.gfx
  vmenu resolution_menu
  controller.ext
fi
insmod ext2
set root='(hd0,7)'
search --no-floppy --fs-uuid --set d519bce2-a00a-46ab-89fd-ca28885eb62d
set locale_dir=($root)/boot/burg/locale
set lang=ru
insmod gettext
set timeout=5
### END /etc/burg.d/00_header ###

### BEGIN /etc/burg.d/10_linux ###
menuentry 'Ubuntu GNU/Linux, with Linux 3.2.0-23-generic' --class ubuntu --class gnu-linux --class gnu --class os --group group_main {
insmod ext2
set root='(hd0,7)'
search --no-floppy --fs-uuid --set d519bce2-a00a-46ab-89fd-ca28885eb62d
echo 'Loading Linux 3.2.0-23-generic ...'
linux /boot/vmlinuz-3.2.0-23-generic root=UUID=d519bce2-a00a-46ab-89fd-ca28885eb62d ro  quiet splash
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.2.0-23-generic
}
menuentry 'Ubuntu GNU/Linux, with Linux 3.2.0-23-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os --group group_main {
insmod ext2
set root='(hd0,7)'
search --no-floppy --fs-uuid --set d519bce2-a00a-46ab-89fd-ca28885eb62d
echo 'Loading Linux 3.2.0-23-generic ...'
linux /boot/vmlinuz-3.2.0-23-generic root=UUID=d519bce2-a00a-46ab-89fd-ca28885eb62d ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.2.0-23-generic
}
### END /etc/burg.d/10_linux ###

### BEGIN /etc/burg.d/30_os-prober ###
menuentry "Windows 7 (loader) (on /dev/sda1)" --class windows --class os {
insmod ntfs
set root='(hd0,1)'
search --no-floppy --fs-uuid --set e2887230887202f9
chainloader +1
}
### END /etc/burg.d/30_os-prober ###

### BEGIN /etc/burg.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/burg.d/40_custom ###

DO NOT EDIT THIS FILE
"— Милая, - сказал он, - у вас в голове пять тысяч маркетологов срали десять лет, а вы хотите, чтобы я там убрал за пять минут…"
Пелевин В.О "Empire V"

Оффлайн margarita-ori

  • Активист
  • *
  • Сообщений: 717
    • Просмотр профиля
Re: Загрузчик Burg
« Ответ #5 : 02 Мая 2012, 14:20:29 »
А вы по ссылке внимательно читали?Файл grub.cfg нельзя изменить.Под sudo откройте файл /etc/default/grub и в строке GRUB_DEFAULT="установите свой пункт "

Пользователь решил продолжить мысль 02 Мая 2012, 14:21:37:
И не забудьте обновить загрузчик.

Оффлайн Сперанский

  • Почётный модератор
  • Старожил
  • *
  • Сообщений: 4055
  • Dictum ac factum
    • Просмотр профиля
Re: Загрузчик Burg
« Ответ #6 : 02 Мая 2012, 14:23:51 »
default="Windows 7 (loader) (on /dev/sda1)"
нужно номер пункта по порядку (первый-0)

Оффлайн Apmyp_FM

  • Автор темы
  • Новичок
  • *
  • Сообщений: 18
    • Просмотр профиля
Re: Загрузчик Burg
« Ответ #7 : 02 Мая 2012, 14:24:17 »
О все кажись понял, нашел тот файл, так?

GRUB_DEFAULT="Windows 7 (loader) (on /dev/sda1)"
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=4
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

Пользователь решил продолжить мысль 02 Мая 2012, 14:26:53:
Но там нету цифр, но вроде 7ка 2я если считать сверху
« Последнее редактирование: 02 Мая 2012, 14:26:53 от Apmyp_FM »

Оффлайн margarita-ori

  • Активист
  • *
  • Сообщений: 717
    • Просмотр профиля
Re: Загрузчик Burg
« Ответ #8 : 02 Мая 2012, 14:28:36 »
Ну так и ставьте "1"

Оффлайн Apmyp_FM

  • Автор темы
  • Новичок
  • *
  • Сообщений: 18
    • Просмотр профиля
Re: Загрузчик Burg
« Ответ #9 : 02 Мая 2012, 14:30:41 »
Ну так и ставьте "1"
не, 0я ubuntu, потом еще один параметр и уже дальше 7ка. И по ссылке написано это
Цитировать
Пример
Если в «grub.cfg» пункт меню выглядит так:
menuentry "Ubuntu, Linux 2.6.32-020632rc6-generic" {
        recordfail=1
....
}
То значение параметра «GRUB_DEFAULT» должно указываться именно в виде:
GRUB_DEFAULT="Ubuntu, Linux 2.6.32-020632rc6-generic"

Оффлайн margarita-ori

  • Активист
  • *
  • Сообщений: 717
    • Просмотр профиля
Re: Загрузчик Burg
« Ответ #10 : 02 Мая 2012, 14:31:15 »
А лучше откройте файл grub.cfg и посчитайте после что-то типа menuentry 'Ubuntu(это будет пункт 0) до вашей винды.

Оффлайн Apmyp_FM

  • Автор темы
  • Новичок
  • *
  • Сообщений: 18
    • Просмотр профиля
Re: Загрузчик Burg
« Ответ #11 : 02 Мая 2012, 14:31:54 »
сохранил, перезагружаюсь

Оффлайн margarita-ori

  • Активист
  • *
  • Сообщений: 717
    • Просмотр профиля
Re: Загрузчик Burg
« Ответ #12 : 02 Мая 2012, 14:36:49 »
 Ваш пункт третий (в файл пишем 2) похоже,там ещё режим восстановления.

Оффлайн nikkirov

  • Новичок
  • *
  • Сообщений: 45
    • Просмотр профиля
Re: Загрузчик Burg
« Ответ #13 : 02 Мая 2012, 14:38:54 »
cat grub.cfg | grep menuentryСмотрим каким пунктом идет тот что нам нужен
внимание, счет идет от 0.
nano /etc/default/grubGRUB_DEFAULT=0
вместо 0 , ставим то что вам нужно
update-grubрестарт
desktop - KUbuntu 12.04 x64
server - Ubuntu server 12.04 x64

Оффлайн margarita-ori

  • Активист
  • *
  • Сообщений: 717
    • Просмотр профиля
Re: Загрузчик Burg
« Ответ #14 : 02 Мая 2012, 14:43:48 »
cat /boot/grub/grub.cfg | grep menuentry Тогда уже.

 

Страница сгенерирована за 0.02 секунд. Запросов: 21.