[Comm] grub2, добавить загрузку Windows 7
C.Н. Рева
revasn на yandex.ru
Сб Окт 16 15:23:11 UTC 2010
В сообщении от Суббота 16 октября 2010 19:20:25 автор Andrey Rahmatullin
написал:
> On Sat, Oct 16, 2010 at 07:18:28PM +0400, C.Н. Рева wrote:
> > > update-grub - это в Ubuntu.
> >
> > ну не знаю, в ubuntu или нет, а google находит только это
> >
> > > В Альте используется нативный инструмент grub-mkconfig. Форма запуска:
> > > grub-mkconfig -o <путь_до_конфига_grub>
> > >
> > > Если -o не указать, то сформированный конфиг будет выведен на
> > > стандартный вывод
> >
> > сделал grub-mkconfig, но в загрузке как было так и осталось шесть
> > вариантов загрузки альта
>
> Показывайте конфиг.
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
load_env
fi
set default="${saved_entry}"
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 load_video {
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
}
insmod part_msdos
insmod ext2
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set eff82f1b-c1a5-4da7-903f-8ccd1f5906d7
if loadfont /usr/share/grub/unifont.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set eff82f1b-c1a5-4da7-903f-8ccd1f5906d7
set locale_dir=($root)/boot/grub/locale
set lang=
insmod gettext
set timeout=5
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_altlinux_theme ###
insmod part_msdos
insmod ext2
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set eff82f1b-c1a5-4da7-903f-8ccd1f5906d7
insmod jpeg
if background_image /etc/bootsplash/themes/branding-altlinux-
kdesktop/images/silent-800x600.jpg ; then
set color_normal=white/black
set color_highlight=black/white
else
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
fi
### END /etc/grub.d/05_altlinux_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry "ALT Linux 6.0.0 Desktop KDE BETA" --class gnu-linux --class gnu --
class os {
savedefault
load_video
insmod part_msdos
insmod ext2
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set eff82f1b-c1a5-4da7-903f-8ccd1f5906d7
echo 'Loading Linux ...'
linux /boot/vmlinuz root=/dev/sda2 ro panic=30 splash=silent
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img
}
menuentry "ALT Linux 6.0.0 Desktop KDE BETA (failsafe mode)" --class gnu-linux
--class gnu --class os {
savedefault
load_video
insmod part_msdos
insmod ext2
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set eff82f1b-c1a5-4da7-903f-8ccd1f5906d7
echo 'Loading Linux ...'
linux /boot/vmlinuz root=/dev/sda2 ro failsafe vga=normal
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img
}
menuentry "ALT Linux 6.0.0 Desktop KDE BETA, with Linux def" --class gnu-linux
--class gnu --class os {
savedefault
load_video
insmod part_msdos
insmod ext2
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set eff82f1b-c1a5-4da7-903f-8ccd1f5906d7
echo 'Loading Linux def ...'
linux /boot/vmlinuz-std-def root=/dev/sda2 ro panic=30 splash=silent
}
menuentry "ALT Linux 6.0.0 Desktop KDE BETA, with Linux def (failsafe mode)"
--class gnu-linux --class gnu --class os {
savedefault
load_video
insmod part_msdos
insmod ext2
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set eff82f1b-c1a5-4da7-903f-8ccd1f5906d7
echo 'Loading Linux def ...'
linux /boot/vmlinuz-std-def root=/dev/sda2 ro failsafe vga=normal
}
menuentry "ALT Linux 6.0.0 Desktop KDE BETA, with Linux 2.6.32-std-def-
alt21.1" --class gnu-linux --class gnu --class os {
savedefault
load_video
set gfxpayload=keep
insmod part_msdos
insmod ext2
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set eff82f1b-c1a5-4da7-903f-8ccd1f5906d7
echo 'Loading Linux 2.6.32-std-def-alt21.1 ...'
linux /boot/vmlinuz-2.6.32-std-def-alt21.1 root=/dev/sda2 ro panic=30
splash=silent
echo 'Loading initial ramdisk ...'
initrd /boot/initrd-2.6.32-std-def-alt21.1.img
}
menuentry "ALT Linux 6.0.0 Desktop KDE BETA, with Linux 2.6.32-std-def-alt21.1
(failsafe mode)" --class gnu-linux --class gnu --class os {
savedefault
load_video
set gfxpayload=keep
insmod part_msdos
insmod ext2
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set eff82f1b-c1a5-4da7-903f-8ccd1f5906d7
echo 'Loading Linux 2.6.32-std-def-alt21.1 ...'
linux /boot/vmlinuz-2.6.32-std-def-alt21.1 root=/dev/sda2 ro failsafe
vga=normal
echo 'Loading initial ramdisk ...'
initrd /boot/initrd-2.6.32-std-def-alt21.1.img
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/35_xen ###
### END /etc/grub.d/35_xen ###
### BEGIN /etc/grub.d/39_memtest ###
menuentry "Memtest86+-4.10" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set eff82f1b-c1a5-4da7-903f-8ccd1f5906d7
linux16 /boot/memtest-4.10.bin
}
### END /etc/grub.d/39_memtest ###
### BEGIN /etc/grub.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/grub.d/40_custom ###
Подробная информация о списке рассылки community