Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JCB4o-0007bf-HJ for mharc-grub-devel@gnu.org; Tue, 08 Jan 2008 04:48:54 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JCB4k-0007Y3-0P for grub-devel@gnu.org; Tue, 08 Jan 2008 04:48:50 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JCB4h-0007Uq-Fr for grub-devel@gnu.org; Tue, 08 Jan 2008 04:48:48 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JCB4g-0007UG-Jj for grub-devel@gnu.org; Tue, 08 Jan 2008 04:48:46 -0500 Received: from smtp-vbr13.xs4all.nl ([194.109.24.33]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JCB4g-0001Yt-3R for grub-devel@gnu.org; Tue, 08 Jan 2008 04:48:46 -0500 Received: from peder.flower (peder.xs4all.nl [82.93.198.126]) by smtp-vbr13.xs4all.nl (8.13.8/8.13.8) with ESMTP id m089mggF085195; Tue, 8 Jan 2008 10:48:42 +0100 (CET) (envelope-from janneke-list@xs4all.nl) Received: from [127.0.0.1] (localhost [127.0.0.1]) by peder.flower (Postfix) with ESMTP id DF003AC7D3; Tue, 8 Jan 2008 10:48:41 +0100 (CET) From: Jan Nieuwenhuizen To: The development of GRUB 2 Content-Type: text/plain Organization: lilypond-design.org Date: Tue, 08 Jan 2008 10:48:41 +0100 Message-Id: <1199785721.1236.38.camel@peder.flower> Mime-Version: 1.0 X-Mailer: Evolution 2.12.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by XS4ALL Virus Scanner X-detected-kernel: by monty-python.gnu.org: FreeBSD 4.6-4.9 Subject: lvm does not work when included in core.img [resend] X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jan 2008 09:48:50 -0000 [resend from 2007-12-08] Hi, I'm trying out Grub2 to for a setup with root on lvm, and it almost works :-) (grub2 looks great, btw!) If I install grub on a non-lvm partition without lvm preloaded in core.img, it works fine. It looks as if the lvm module is defunct when it is loaded from core.img: ls shows no lvm devices. Whenever I `insmod lvm' after grub starts (ie: from the grub rescue command line reading from a non-lvm partition, or from within grub.cfg with grub's root and grub.cfg on a non-lvm partition), ls will show my lvm devices. Here is what I do grub-mkimage --output=/boot/grub/core.img lvm ext2 pc gpt biosdisk grub-setup --root-device='(lvmraid-lvm0)' '(hd0)' (no errors) mount |grep '/ ' /dev/mapper/lvmraid-lvm0 on / type ext3 (rw,errors=remount-ro) (reboot) grub rescue> set prefix=(lvmraid-lvm0)/boot/grub root=lvmraid-lvm0 grub rescue> insmod normal error: unknown device grub rescue> lsmod Name Ref Count Dependencies biosdisk 1 gpt 1 pc 1 ext2 1 fshelp fshelp 2 lvm 1 grub rescue> ls (hd0) (hd0,1) (hd0,5) (hd0,6) (hd0) (hd1,1) (hd1,5) (hd1,6) grub rescue> rmmod lvm grub rescue> insmod (hd1,1)/boot/grub/lvm.mod grub rescue> ls (lvmraid-lvm0) ... grub rescue> insmod normal grub rescue> normal and the menu appears. Any ideas? I'm using grub-pc 20071101-CVS from Ubuntu (on x86_64), but I also tried a core.img built using today's CVS. Greetings, Jan. /boot/grub/grub.cfg # # DO NOT EDIT THIS FILE # # It is automaticaly generated by /usr/sbin/update-grub using templates # from /etc/grub.d and settings from /etc/default/grub # ### BEGIN /etc/grub.d/00_header ### set default=2 set timeout=5 set root=(lvmraid-lvm0) font (lvmraid-lvm0)/usr/share/grub/unifont.pff set gfxmode=640x480 insmod gfxterm insmod vbe terminal gfxterm ### END /etc/grub.d/00_header ### ### BEGIN /etc/grub.d/10_hurd ### ### END /etc/grub.d/10_hurd ### ### BEGIN /etc/grub.d/10_linux ### menuentry "Debian GNU/Linux, linux 2.6.22-14-generic" { linux (lvmraid-lvm0)/boot/vmlinuz-2.6.22-14-generic root=/dev/mapper/lvmraid-lvm0 ro initrd (lvmraid-lvm0)/boot/initrd.img-2.6.22-14-generic } menuentry "Debian GNU/Linux, linux 2.6.22-14-generic (single-user mode)" { linux (lvmraid-lvm0)/boot/vmlinuz-2.6.22-14-generic root=/dev/mapper/lvmraid-lvm0 ro single initrd (lvmraid-lvm0)/boot/initrd.img-2.6.22-14-generic } menuentry "Debian GNU/Linux, linux 2.6.20-16-generic" { linux (lvmraid-lvm0)/boot/vmlinuz-2.6.20-16-generic root=/dev/mapper/lvmraid-lvm0 ro initrd (lvmraid-lvm0)/boot/initrd.img-2.6.20-16-generic-lvm0 } menuentry "Debian GNU/Linux, linux 2.6.20-16-generic (single-user mode)" { linux (lvmraid-lvm0)/boot/vmlinuz-2.6.20-16-generic root=/dev/mapper/lvmraid-lvm0 ro single initrd (lvmraid-lvm0)/boot/initrd.img-2.6.20-16-generic } ### END /etc/grub.d/10_linux ### ### BEGIN /etc/grub.d/20_memtest86+ ### menuentry "Memory test (memtest86+)" { linux (lvmraid-lvm0)/boot/memtest86+.bin } ### END /etc/grub.d/20_memtest86+ ### -- Jan Nieuwenhuizen | GNU LilyPond - The music typesetter http://www.xs4all.nl/~jantien | http://www.lilypond.org