All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mark Hannessen <mark@nperfection.com>
To: grub-devel@gnu.org
Subject: Re: grub on lvm2
Date: Wed, 7 Feb 2007 13:00:35 +0000	[thread overview]
Message-ID: <200702071300.35694.mark@nperfection.com> (raw)
In-Reply-To: <20070206170519.CAFB44A5E15@mail.nperfection.com>

> > # 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



       reply	other threads:[~2007-02-07 10:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20070206170519.CAFB44A5E15@mail.nperfection.com>
2007-02-07 13:00 ` Mark Hannessen [this message]
2007-02-07 16:42   ` grub on lvm2 Michael Guntsche
2007-02-03 12:15 Mark Hannessen
2007-02-06  0:56 ` Hollis Blanchard

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=200702071300.35694.mark@nperfection.com \
    --to=mark@nperfection.com \
    --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.