From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HEEdA-0004u8-ND for mharc-grub-devel@gnu.org; Mon, 05 Feb 2007 19:56:20 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HEEd8-0004qr-FY for grub-devel@gnu.org; Mon, 05 Feb 2007 19:56:18 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HEEd7-0004qO-I5 for grub-devel@gnu.org; Mon, 05 Feb 2007 19:56:17 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HEEd7-0004qL-FZ for grub-devel@gnu.org; Mon, 05 Feb 2007 19:56:17 -0500 Received: from pop-canoe.atl.sa.earthlink.net ([207.69.195.66]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HEEd7-0003Fo-4Y for grub-devel@gnu.org; Mon, 05 Feb 2007 19:56:17 -0500 Received: from user-0vvdf2d.cable.mindspring.com ([63.246.188.77] helo=[192.168.0.2]) by pop-canoe.atl.sa.earthlink.net with esmtp (Exim 3.36 #1) id 1HEEd2-0002rO-00 for grub-devel@gnu.org; Mon, 05 Feb 2007 19:56:12 -0500 From: Hollis Blanchard To: The development of GRUB 2 In-Reply-To: <45C47CEE.2000706@nperfection.com> References: <45C47CEE.2000706@nperfection.com> Content-Type: text/plain Date: Mon, 05 Feb 2007 18:56:11 -0600 Message-Id: <1170723371.15472.4.camel@diesel> Mime-Version: 1.0 X-Mailer: Evolution 2.8.2.1 (2.8.2.1-3.fc6) Content-Transfer-Encoding: 7bit X-detected-kernel: Solaris 8 (1) 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: Tue, 06 Feb 2007 00:56:18 -0000 On Sat, 2007-02-03 at 04:15 -0800, Mark Hannessen wrote: > Hi list, > > I have read on some websites that grub1.95 can boot from lvm > So I thought I'd give it a try. > I am quite new to grub2, so please forgive me my noobischness. > This is what i did: > > 1) I added /dev/hda to the physical extents ( pvcreate /dev/hda ) > 2) created a volume group on it ( vgcreate lvm2_core /dev/hda ) > 3) and created a boot partition on it ( lvcreate -L100M boot lvm2_core ) > 4) and wrote a partition on it: ( mkfs.reiserfs /dev/lvm2_core/boot ) > 5) mounted it on /boot and copied a bunch of grub .mod files to /boot/grub > 6) created a config file called grub.cfg in /boot/grub/grub.cfg that > looks like this: > > # 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. > so far so good (i hope..) > 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. > could anyone give me a syntax that should work here? > or perhaps some documentation so I could figure it out myself.. All GRUB2 documentation is in the wiki: http://grub.enbug.org/ -Hollis