From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1H4YfU-0004qn-RR for mharc-grub-devel@gnu.org; Wed, 10 Jan 2007 03:18:44 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H4YfS-0004qR-MG for grub-devel@gnu.org; Wed, 10 Jan 2007 03:18:42 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H4YfP-0004py-P5 for grub-devel@gnu.org; Wed, 10 Jan 2007 03:18:42 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H4YfP-0004pv-Ls for grub-devel@gnu.org; Wed, 10 Jan 2007 03:18:39 -0500 Received: from [80.39.87.189] (helo=iquis.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H4YfO-0006Sw-3E for grub-devel@gnu.org; Wed, 10 Jan 2007 03:18:39 -0500 Received: from [192.168.251.233] ([::ffff:192.168.249.6]) (AUTH: LOGIN juampe@iquis.com) by iquis.com with esmtp; Wed, 10 Jan 2007 09:18:31 +0100 id 000E7295.45A4A158.000073C2 Message-ID: <45A4A14C.8000406@iquis.com> Date: Wed, 10 Jan 2007 09:18:20 +0100 From: Juan Pedro Paredes User-Agent: Thunderbird 1.5.0.9 (X11/20070102) MIME-Version: 1.0 To: grub-devel@gnu.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: [grub2-cvs] grub-probe lvm2 in hda1 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: Wed, 10 Jan 2007 08:18:42 -0000 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