From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HEkVJ-0000nB-To for mharc-grub-devel@gnu.org; Wed, 07 Feb 2007 05:58:21 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HEkVH-0000k8-5q for grub-devel@gnu.org; Wed, 07 Feb 2007 05:58:19 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HEkVF-0000iq-M7 for grub-devel@gnu.org; Wed, 07 Feb 2007 05:58:18 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HEkVF-0000in-I6 for grub-devel@gnu.org; Wed, 07 Feb 2007 05:58:17 -0500 Received: from dndfreaks.xs4all.nl ([80.126.245.108] helo=mail.nperfection.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HEkVE-0007N6-V7 for grub-devel@gnu.org; Wed, 07 Feb 2007 05:58:17 -0500 Received: from server.linuxuserbase.com (unknown [10.4.8.179]) by mail.nperfection.com (Postfix) with ESMTP id AD96B4A622C for ; Wed, 7 Feb 2007 10:58:14 +0000 (UTC) From: Mark Hannessen To: grub-devel@gnu.org Date: Wed, 7 Feb 2007 13:00:35 +0000 User-Agent: KMail/1.9.5 References: <20070206170519.CAFB44A5E15@mail.nperfection.com> In-Reply-To: <20070206170519.CAFB44A5E15@mail.nperfection.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200702071300.35694.mark@nperfection.com> X-detected-kernel: Linux 2.6 (newer, 2) Subject: Re: grub on lvm2 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: Wed, 07 Feb 2007 10:58:19 -0000 > > # begin grub.cfg > > set timeout=10 > > set default=0 > > > > menuentry "My Linux Kernel on (lvm2_core-boot)" { > > set root=(lvm2_core_boot) > > linux /boot/vmlinuz root=/dev/ram > > initrd /initrd > > > > # end grub.cfg > > I don't believe "set root" behaves properly. If that's the problem, you > will need to duplicate that value into both following lines. ok I now made it look like this: menuentry "My Linux Kernel on (lvm2_core-boot)" { set root=(lvm2_core_boot) linux (lvm2_core_boot)/boot/vmlinuz root=/dev/ram initrd (lvm2_core_boot)/boot/initrd } > > I now tried various combinations of grub-setup and grub-install but I > > can't seem to get it right... > > Perhaps you could be a little more specific. this I used for my core.img grub-mkimage -d /boot/grub -v -o /boot/grub/core.img ls ext2 gpt pc linux _linux boot chain configfile fshelp help lvm and this is the most far I got: grub-setup -d /boot/grub -v -r '(lvm2_core-boot)' -m /boot/grub/device.map '(lvm2_core-boot)' grub-setup: info: prefix = /grub grub-setup: info: getting the size of /boot/grub/boot.img grub-setup: info: reading /boot/grub/boot.img grub-setup: info: getting the size of /boot/grub/boot.img grub-setup: info: getting the size of /boot/grub/core.img grub-setup: info: reading /boot/grub/core.img grub-setup: info: getting the size of /boot/grub/core.img grub-setup: error: unknown device why I grub probe I get the same: grub-probe -v /boot/grub grub-probe: info: changing current directory to /dev grub-probe: info: changing current directory to i2c grub-probe: info: changing current directory to lvm2_server1 grub-probe: info: changing current directory to lvm2_core grub-probe: info: changing current directory to shm grub-probe: info: changing current directory to pts grub-probe: info: changing current directory to bus grub-probe: info: changing current directory to usb grub-probe: info: changing current directory to 004 grub-probe: info: changing current directory to 003 grub-probe: info: changing current directory to 002 grub-probe: info: changing current directory to 001 grub-probe: info: changing current directory to snd grub-probe: info: changing current directory to sound grub-probe: info: changing current directory to net grub-probe: info: changing current directory to misc grub-probe: info: changing current directory to pktcdvd grub-probe: info: changing current directory to xen grub-probe: info: changing current directory to mapper cannot find a GRUB drive for lvm2_core-boot. Mark