ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Alexander Bokovoy <a.bokovoy@sam-solutions.net>
To: ALT Devel discussion list <devel@altlinux.ru>
Subject: Re: [devel] GRUB partition-map patch (md raid1 support)
Date: Mon, 25 Aug 2003 11:42:07 +0300
Message-ID: <20030825084207.GD24084@sam-solutions.net> (raw)
In-Reply-To: <20030822212200.215ac7c2.vsu@altlinux.ru>

On Fri, Aug 22, 2003 at 09:22:00PM +0400, Sergey Vlasov wrote:
> Hello!
> 
> Я тут слегка похакал GRUB на предмет установки на RAID1 - вроде бы
> работает. Патч на базе grub-0.93-alt1 (после всех прочих - там
> получилась зависимость от предыдущих; на чистый не ляжет).
> 
> Сделано следующим образом: в /boot/grub/device.map можно писать записи
> не только для дисков, но и для отдельных разделов:
> 
> (fd0)	/dev/fd0
> (hd0)	/dev/hda
> (hd1)	/dev/hdc
> (hd0,0)	/dev/evms/md/md0
> (hd1,0)	/dev/evms/md/md0
> 
> После этого /usr/sbin/grub для записи в раздел полезет в указанное
> устройство (читать всё равно будет с /dev/hda и т.п. напрямую - там
> специальная обработка только для записи). Это будет работать при
> установке stage1 в первый сектор раздела (не в MBR - там на всех
> дисках должен быть обычный код для загрузки с активного раздела). Т.е.
> /boot/grub/install.sh будет такого вида:
> 
> grub --device-map=/boot/grub/device.map --batch <<EOF
> install (hd0,0)/grub/stage1 d (hd0,0) (hd0,0)/grub/stage2 p (hd0,0)/grub/menu.lst
> quit
> EOF
> 
> savedefault в menu.lst использовать нельзя, т.к. это запишется только
> на один диск.
> 
> bootloader-utils при установке ядра не срабатывает - "Can't convert
> grub_partition" (ядро не заносится в menu.lst). К счастью, в случае
> GRUB это не смертельно - при необходимости всё равно из его командной
> строки можно загрузить что угодно.
> 
> Сделано сегодня, так что вполне вероятно наличие кучи багов :-)
> 
> 
> PS: LILO за неделю надоел до невозможности :-)
>     (да к тому же у нас он ещё не пропатчен для EVMS 2, так что всё
>     равно пришлось менять загрузчик)
Леша Котович работает над этим. У нас есть LILO с EVMS2, но оно пока не
тестировалось на системах с отсутствующим EVMS2 :)

-- 
/ Alexander Bokovoy
---
failed trials, system needs redesigned


      reply	other threads:[~2003-08-25  8:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-22 17:22 Sergey Vlasov
2003-08-25  8:42 ` Alexander Bokovoy [this message]

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=20030825084207.GD24084@sam-solutions.net \
    --to=a.bokovoy@sam-solutions.net \
    --cc=devel@altlinux.ru \
    /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 Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/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 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

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


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