ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Diletant <dil8016@mail.ru>
To: community@lists.altlinux.org
Subject: Re: [Comm] lilo.conf
Date: Sun, 4 Mar 2012 09:56:19 +0400
Message-ID: <20120304055619.GA22330@a1bd44.local> (raw)
In-Reply-To: <E1S3qt9-0007a4-5F.anarhoret-mail-ru@f201.mail.ru>

On 19:28 Sat 03 Mar , Геннадий Ищенко wrote:
> 
> 
> 
> 03 марта 2012, 19:15 от "Alexei V. Mezin" <alexei-mezin@rambler.ru>:
> > 03.03.2012 18:43, Геннадий Ищенко пишет:
> > 
> > > Извините, что немного не по теме, но как-то не тянет экспериментировать с загрузчиком: он у меня еще
> > > две ОС загружает и если накроется...
> > 
> > А что, резервную копию lilo.conf, livecd или liveflash и инструкцию по
> > восстановлению загрузчика уже отменили?
> > 
> > Какой смысл менять порядок следования записей о ядрах? Есть параметр
> > default, который указывает на то ядро, которое грузится по умолчанию.
> > Пропишите туда то, которое вам надо. Или вы каждый раз при загрузке
> > вручную выбираете ядро, и при этом каждый раз разное?
> > 
> Так что, убрать строку default="ALTLinux" и заменить в нужной загрузке image на default
> 
> map="/boot/map"
> lba32
> prompt
> compact
> install="menu"
> vga="0x314"
> append="resume=/dev/disk/by-uuid/42e5d2b8-bb31-4adc-a385-9294841f1a19 panic=30 splash=silent quiet=1"
> message="/boot/splash/message"
> boot="/dev/disk/by-id/ata-ST3500418AS_6VM0D3ED"
> timeout="100"
> 
> default="/boot/vmlinuz-2.6.32-std-def-alt20.M50P.1"
>         initrd="/boot/initrd-2.6.32-std-def-alt20.M50P.1.img"
>         label="2632-std-def-20M50P1"
>         root="UUID=92ee34dd-303e-468b-a333-0b537ccc5527"
>         read-only
>         optional
>  Резервную копию сделать не трудно, геморрой потом загружаться с диска , монтировать файловую
> систему и менять конфиги.

Вы можете устанавливать загрузчик и в MBR, и на раздел диска. lilo смотрит на раздел, меняет там что требуется, а загружаться будете в случае удачного изменения по цепочке (chain-loader), в случае неудачного -- напрямую из MBR.
То есть примерно такие записи в lilo.conf:
для MBR:  boot=/dev/sda    # в основных опциях
     other=/dev/sda1       # имя раздела ( UUID не пробовал, должен работать)
        label=""lilo experimental"       # название пункта меню

потом перенацеливаете lilo на раздел ( boot=/dev/sda1 ) и уже там экспериментируете, можно даже дописать возврат в MBR:
     other=/dev/sda
        label="return to main lilo.conf"

--------------------

С уважением, Василий Д. Севостьянов


      reply	other threads:[~2012-03-04  5:56 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-03 14:43 Геннадий Ищенко
2012-03-03 15:04 ` Sergey
2012-03-03 15:38   ` Геннадий Ищенко
2012-03-03 15:47     ` Andrey Liakhovets
2012-03-03 16:22       ` Геннадий Ищенко
2012-03-03 16:48         ` Michael Shigorin
2012-03-03 15:48     ` Alexei V. Mezin
2012-03-03 15:15 ` Alexei V. Mezin
2012-03-03 15:28   ` Геннадий Ищенко
2012-03-04  5:56     ` Diletant [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=20120304055619.GA22330@a1bd44.local \
    --to=dil8016@mail.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