All of lore.kernel.org
 help / color / mirror / Atom feed
From: Juan Pedro Paredes <juampe@iquis.com>
To: grub-devel@gnu.org
Subject: [grub2-cvs] grub-probe lvm2 in hda1
Date: Wed, 10 Jan 2007 09:18:20 +0100	[thread overview]
Message-ID: <45A4A14C.8000406@iquis.com> (raw)

WHAT
I get the following message.
cannot find a GRUB drive for devel-xen.
When try to probe devices before grub install.

VERSION
20070110 grub2 cvs

ENVIRONMENT
Linux booted from hda4 with grub legacy
Work with chroot in /dev/mapper/devel-xen

TEST
devel:~# grub-probe -v -t device -m /boot/grub/device.map  /boot/grub
grub-probe: info: the size of fd0 is 2880
grub-probe: info: opening the device `/dev/fd0'
grub-probe: info: the size of fd0 is 2880
grub-probe: info: the size of hd0 is 156301488
grub-probe: info: opening the device `/dev/hda'
grub-probe: info: the size of hd0 is 156301488
grub-probe: info: opening the device `/dev/hda'
grub-probe: info: the size of hd0 is 156301488
grub-probe: info: opening the device `/dev/hda1'
grub-probe: info: opening the device `/dev/hda1'
grub-probe: info: the size of hd0 is 156301488
grub-probe: info: opening the device `/dev/hda'
grub-probe: info: the size of fd0 is 2880
grub-probe: info: opening the device `/dev/fd0'
grub-probe: info: the size of fd0 is 2880
grub-probe: info: the size of hd0 is 156301488
grub-probe: info: opening the device `/dev/hda1'
grub-probe: info: opening the device `/dev/hda1'
grub-probe: info: opening the device `/dev/hda1'
...
grub-probe: info: opening the device `/dev/hda1'
grub-probe: info: opening the device `/dev/hda1'
grub-probe: info: opening the device `/dev/hda1'
grub-probe: info: the size of hd0 is 156301488
grub-probe: info: the size of hd0 is 156301488
grub-probe: info: opening the device `/dev/hda'
grub-probe: info: changing current directory to /dev
grub-probe: info: changing current directory to devel
grub-probe: info: changing current directory to mapper
devel-xen

This is OK

devel:~# grub-probe -v -t drive -m /boot/grub/device.map  /boot/grub
grub-probe: info: the size of fd0 is 2880
grub-probe: info: opening the device `/dev/fd0'
grub-probe: info: the size of fd0 is 2880
grub-probe: info: the size of hd0 is 156301488
grub-probe: info: opening the device `/dev/hda'
grub-probe: info: the size of hd0 is 156301488
grub-probe: info: opening the device `/dev/hda'
grub-probe: info: the size of hd0 is 156301488
grub-probe: info: opening the device `/dev/hda1'
grub-probe: info: opening the device `/dev/hda1'
grub-probe: info: the size of hd0 is 156301488
grub-probe: info: opening the device `/dev/hda'
grub-probe: info: the size of fd0 is 2880
grub-probe: info: opening the device `/dev/fd0'
grub-probe: info: the size of fd0 is 2880
grub-probe: info: the size of hd0 is 156301488
grub-probe: info: the size of hd0 is 156301488
grub-probe: info: the size of hd0 is 156301488
grub-probe: info: opening the device `/dev/hda'
grub-probe: info: changing current directory to /dev
grub-probe: info: changing current directory to devel
grub-probe: info: changing current directory to mapper
cannot find a GRUB drive for devel-xen.

devel:~# grub-probe -v -t fs -m /boot/grub/device.map  /boot/grub
grub-probe: info: the size of fd0 is 2880
grub-probe: info: opening the device `/dev/fd0'
grub-probe: info: the size of fd0 is 2880
grub-probe: info: the size of hd0 is 156301488
grub-probe: info: opening the device `/dev/hda'
grub-probe: info: the size of hd0 is 156301488
grub-probe: info: opening the device `/dev/hda'
grub-probe: info: the size of hd0 is 156301488
grub-probe: info: opening the device `/dev/hda1'
grub-probe: info: opening the device `/dev/hda1'
grub-probe: info: the size of hd0 is 156301488
grub-probe: info: opening the device `/dev/hda'
grub-probe: info: the size of fd0 is 2880
grub-probe: info: opening the device `/dev/fd0'
grub-probe: info: the size of fd0 is 2880
grub-probe: info: the size of hd0 is 156301488
grub-probe: info: opening the device `/dev/hda1'
grub-probe: info: opening the device `/dev/hda1'
grub-probe: info: opening the device `/dev/hda1'
grub-probe: info: opening the device `/dev/hda1'
grub-probe: info: opening the device `/dev/hda1'
grub-probe: info: opening the device `/dev/hda1'
grub-probe: info: opening the device `/dev/hda1'
grub-probe: info: opening the device `/dev/hda1'
grub-probe: info: the size of hd0 is 156301488
grub-probe: info: the size of hd0 is 156301488
grub-probe: info: opening the device `/dev/hda'
grub-probe: info: changing current directory to /dev
grub-probe: info: changing current directory to devel
grub-probe: info: changing current directory to mapper
cannot find a GRUB drive for devel-xen.


LVM2 ENVIRONMENT
environment in a pc partition
Disk /dev/hda: 80.0 GB, 80026361856 bytes
16 heads, 63 sectors/track, 155061 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1               1      151185    76197208+  8e  Linux LVM
/dev/hda4   *      151186      155061     1953504   83  Linux

devel:~# pvs
  PV         VG    Fmt  Attr PSize  PFree
  /dev/hda1  devel lvm2 a-   72.66G 26.16G
devel:~# vgs
  VG    #PV #LV #SN Attr   VSize  VFree
  devel   1  11   0 wz--n- 72.66G 26.16G
devel:~# lvs
  LV          VG    Attr   LSize   Origin Snap%  Move Log Copy%
  devel-root  devel -wi-a-  10.00G
  devel-swap  devel -wi-a-   1.00G
  manite       devel -wi-a-   2.00G
  piraway     devel -wi-a-   2.00G
  marules    devel -wi-a-   9.00G
  juampe      devel -wi-a-  10.00G
  prueba-disk devel -wi-a-   4.00G
  prueba-swap devel -wi-a- 512.00M
  swap        devel -wi-a-   1.00G
  muntuns      devel -wi-a-   5.00G
  xen         devel -wi-ao   2.00G

devel:~# ls -la /dev/mapper/
total 0
drwxr-xr-x  2 root root     280 Jan  9 09:26 .
drwxr-xr-x 15 root root   13460 Jan  9 09:27 ..
crw-rw----  1 root root  10, 63 Jan  9 09:26 control
brw-rw----  1 root disk 254,  9 Jan  9 09:26 devel-devel--root
brw-rw----  1 root disk 254, 10 Jan  9 09:26 devel-devel--swap
brw-rw----  1 root disk 254,  2 Jan  9 09:26 devel-manite
brw-rw----  1 root disk 254,  5 Jan  9 09:26 devel-piraway
brw-rw----  1 root disk 254,  3 Jan  9 09:26 devel-marules
brw-rw----  1 root disk 254,  6 Jan  9 09:26 devel-juampe
brw-rw----  1 root disk 254,  7 Jan  9 09:26 devel-prueba--disk
brw-rw----  1 root disk 254,  8 Jan  9 09:26 devel-prueba--swap
brw-rw----  1 root disk 254,  0 Jan  9 09:26 devel-swap
brw-rw----  1 root disk 254,  1 Jan  9 09:26 devel-muntuns
brw-rw----  1 root disk 254,  4 Jan  9 09:26 devel-xen




                 reply	other threads:[~2007-01-10  8:18 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=45A4A14C.8000406@iquis.com \
    --to=juampe@iquis.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.