ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Sergey Vlasov <vsu@altlinux.ru>
To: ALT Linux Sisyphus discussion list <sisyphus@lists.altlinux.org>
Subject: Re: [sisyphus] LVM в initrd для ядра 2.6.14-std26-up-alt5
Date: Mon, 13 Mar 2006 18:22:03 +0300
Message-ID: <20060313152203.GI2873@master.mivlgu.local> (raw)
In-Reply-To: <441589C2.8030607@ats-manager.stc.donpac.ru>

[-- Attachment #1: Type: text/plain, Size: 1354 bytes --]

On Mon, Mar 13, 2006 at 06:03:30PM +0300, Eugene Prokopiev wrote:
> title linux-up
> kernel (hd0,2)/vmlinuz-up root=/dev/system/root ramdisk=8192 splash=off 
> vga=0x0317
> initrd (hd0,2)/initrd-up.img

А что в этом initrd определяет номер устройства, соответствующий
/dev/system/root ?

> При загрузке с помощью grub уже после отработки /linuxrc из initrd я вижу:
> 
> VFS: Cannot open root device "system/root" or 00:00, retying in 1 s,
> ...
> VFS: Cannot open root device "system/root" or 00:00
> Please append a correct "root=" boot option
> Kernel panic: VFS: Unable to mount root fs on 00:00
> 
> С lilo этих проблем нет. Может и grub можно научить не превращать 
> /dev/system/root в system/root?

grub ничего ни во что не превращает - /dev/ отрезается уже в самом ядре.
Но в данном случае до этого кода ядро доходить просто не должно - /linuxrc
в initrd должен определить major:minor и записать его в real-root-dev.
Видимо, имеющийся там сейчас код этого не делает, но в случае lilo это
срабатывало из-за того, что lilo передаёт уже готовые major:minor
(впрочем, это всё равно неправильно, поскольку minor для lvm в любом
случае назначаются динамически, и не факт, что /dev/system/root, поднятый
lvm в initrd, окажется на том же minor, что и /dev/system/root,
существовавший в системе на момент запуска /sbin/lilo).

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

      reply	other threads:[~2006-03-13 15:22 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-09  6:03 Eugene Prokopiev
2006-03-10  9:14 ` Eugene Prokopiev
2006-03-10  9:50   ` Eugene Prokopiev
2006-03-10  9:58   ` Sergey Vlasov
2006-03-10 11:38     ` Eugene Prokopiev
2006-03-10 12:38       ` Sergey Vlasov
2006-03-10 19:50         ` Eugene Prokopiev
2006-03-13 12:55       ` Eugene Prokopiev
2006-03-13 13:06         ` Eugene Prokopiev
2006-03-13 13:45         ` Sergey Vlasov
2006-03-13 15:03           ` Eugene Prokopiev
2006-03-13 15:22             ` Sergey Vlasov [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=20060313152203.GI2873@master.mivlgu.local \
    --to=vsu@altlinux.ru \
    --cc=sisyphus@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 Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

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

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


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