From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HDJo4-0001w1-Sp for mharc-grub-devel@gnu.org; Sat, 03 Feb 2007 07:15:48 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HDJo3-0001uX-NL for grub-devel@gnu.org; Sat, 03 Feb 2007 07:15:47 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HDJo2-0001sd-8s for grub-devel@gnu.org; Sat, 03 Feb 2007 07:15:47 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HDJo2-0001sG-3E for grub-devel@gnu.org; Sat, 03 Feb 2007 07:15:46 -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 1HDJo1-0005gi-Ou for grub-devel@gnu.org; Sat, 03 Feb 2007 07:15:45 -0500 Received: from [127.0.0.1] (xp2600c.linuxnet.nl [10.4.8.27]) by mail.nperfection.com (Postfix) with ESMTP id D77F44A1103 for ; Sat, 3 Feb 2007 12:15:43 +0000 (UTC) Message-ID: <45C47CEE.2000706@nperfection.com> Date: Sat, 03 Feb 2007 04:15:42 -0800 From: Mark Hannessen User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: grub-devel@gnu.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-detected-kernel: Linux 2.6 (newer, 2) Subject: 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: Sat, 03 Feb 2007 12:15:47 -0000 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 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... could anyone give me a syntax that should work here? or perhaps some documentation so I could figure it out myself.. thanks a lot! Mark Hannessen