ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "C.Н. Рева" <revasn@yandex.ru>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: Re: [Comm] grub2, добавить загрузку Windows 7
Date: Sat, 16 Oct 2010 19:23:11 +0400
Message-ID: <201010161923.11457.revasn@yandex.ru> (raw)
In-Reply-To: <20101016152025.GY3983@belkar.wrar.name>

В сообщении от Суббота 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 ###


  reply	other threads:[~2010-10-16 15:23 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-16 14:49 C.Н. Рева
2010-10-16 14:52 ` Andrey Rahmatullin
2010-10-16 14:59   ` C.Н. Рева
2010-10-16 15:01   ` C.Н. Рева
2010-10-16 15:10     ` Чернышов Антон
2010-10-16 15:18       ` C.Н. Рева
2010-10-16 15:20         ` Andrey Rahmatullin
2010-10-16 15:23           ` C.Н. Рева [this message]
2010-10-16 15:25             ` Andrey Rahmatullin
2010-10-16 15:27               ` C.Н. Рева
2010-10-16 15:28                 ` Andrey Rahmatullin
2010-10-16 15:41                   ` Чернышов Антон
2010-10-16 16:46                     ` C.Н. Рева
2010-10-16 15:40       ` C.Н. Рева
2010-10-16 15:46         ` Чернышов Антон
2010-10-16 15:55           ` C.Н. Рева
2010-10-16 16:12             ` melcomtec
2010-10-16 15:03   ` Константин Михайленко
2010-10-16 15:05     ` C.Н. Рева
2010-10-16 17:51     ` Vitaly Kuznetsov
2010-10-16 19:49     ` Sergey Vlasov
2010-10-17  6:49       ` Чернышов Антон
2010-10-16 19:14 ` ALT Linux User

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201010161923.11457.revasn@yandex.ru \
    --to=revasn@yandex.ru \
    --cc=community@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git