From: Hollis Blanchard <hollis@penguinppc.org>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: grub on lvm2
Date: Mon, 05 Feb 2007 18:56:11 -0600 [thread overview]
Message-ID: <1170723371.15472.4.camel@diesel> (raw)
In-Reply-To: <45C47CEE.2000706@nperfection.com>
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
next prev parent reply other threads:[~2007-02-06 0:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-03 12:15 grub on lvm2 Mark Hannessen
2007-02-06 0:56 ` Hollis Blanchard [this message]
[not found] <20070206170519.CAFB44A5E15@mail.nperfection.com>
2007-02-07 13:00 ` Mark Hannessen
2007-02-07 16:42 ` Michael Guntsche
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=1170723371.15472.4.camel@diesel \
--to=hollis@penguinppc.org \
--cc=grub-devel@gnu.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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.