Hi Andrei, I tried with 2.02 beta also , I have seen similar error. I will try with current stream and let you know.
Thanks, Divya Sent from my iPhone > On Jun 26, 2015, at 10:15 PM, Andrei Borzenkov <[email protected]> wrote: > > В Fri, 26 Jun 2015 19:43:36 +0000 > Divya Thaluru <[email protected]> пишет: > >> Hi, >> >> I am using grub 2.00 . I am trying to install grub msdos partition on a raw >> image. But grub-install fails looking for lvm disks. > > > Your configuration works using current upstream git; it also should > work using 2.02~beta2. > > 2.00 is very old, there were a lot of changes since then. > . > >> Please let me know what I am doing wrong. I built grub from source tar ball. >> >> ./configure \ >> --prefix=%{_prefix} \ >> --sbindir=/sbin \ >> --sysconfdir=%{_sysconfdir} \ >> --disable-grub-emu-usb \ >> --disable-efiemu \ >> --disable-werror >> >> Make >> Make install >> >> Please let me know for any information. >> >> These are the repro steps : >> >> losetup --show --find XXX.raw -> return /dev/loop0 >> kpartx -av /dev/loop0 -> adds maps loop0p1 >> mkfs.ext4 /dev/mapper/loop0p1 >> mount /dev/mapper/loop0p1 /mnt/work/chroot/ >> touch /mnt/work/chroot/dev/loop0 >> mount --bind /dev/loop0 /mnt/work/chroot/dev/loop0 >> mkdir -p /mnt/work/chroot/dev/mapper/ >> touch /mnt/work/chroot/dev/mapper/loop0p1 >> mount --bind /dev/mapper/loop0p1 /mnt/work/chroot/dev/mapper/loop0p1 >> mount -t proc none /mnt/work/chroot/proc >> mount -t sysfs none /mnt/work/chroot/sys >> >> chroot /mnt/work/chroot >> >> echo "(hd0) /dev/loop0" > /boot/grub/device.map >> >> bash-4.3# /usr/sbin/grub-install --no-floppy >> --grub-mkdevicemap=/boot/grub/device.map --debug /dev/loop0 >> >> ..................... >> >> is_path_readable_by_grub /boot/grub >> + path=/boot/grub >> + test -e /boot/grub >> + : >> + /sbin/grub-probe -t fs /boot/grub >> + return 1 >> + gettext_printf 'Path `%s'\'' is not readable by GRUB on boot. Installation >> is impossible. Aborting.\n' /boot/grub >> + gettext_printf_format='Path `%s'\'' is not readable by GRUB on boot. >> Installation is impossible. Aborting.\n' >> + shift >> ++ gettext 'Path `%s'\'' is not readable by GRUB on boot. Installation is >> impossible. Aborting.\n' >> ++ printf %s 'Path `%s'\'' is not readable by GRUB on boot. Installation is >> impossible. Aborting.\n' >> + printf 'Path `%s'\'' is not readable by GRUB on boot. Installation is >> impossible. Aborting.\n' /boot/grub >> Path `/boot/grub' is not readable by GRUB on boot. Installation is >> impossible. Aborting. >> + exit 1 >> >> >> >> bash-4.3# /sbin/grub-probe /boot/grub/ -vvv >> >> /sbin/grub-probe: info: opening lvm/loop0p1. >> >> grub-core/kern/disk.c:230: Opening `lvm/loop0p1'... >> >> grub-core/kern/disk.c:230: Opening `hd0'... >> >> /sbin/grub-probe: info: the size of hd0 is 6291456. >> >> grub-core/disk/diskfilter.c:135: Scanning for DISKFILTER devices on disk hd0 >> >> /sbin/grub-probe: info: Scanning for DISKFILTER devices on disk hd0. >> >> /sbin/grub-probe: info: Scanning for mdraid1x devices on disk hd0. >> >> grub-core/kern/emu/hostdisk.c:909: opening the device `/dev/loop0' in >> open_device() >> >> grub-core/kern/emu/hostdisk.c:886: reusing open device `/dev/loop0' >> >> grub-core/kern/emu/hostdisk.c:886: reusing open device `/dev/loop0' >> >> /sbin/grub-probe: info: Scanning for mdraid09 devices on disk hd0. >> >> grub-core/kern/emu/hostdisk.c:886: reusing open device `/dev/loop0' >> >> /sbin/grub-probe: info: Scanning for mdraid09_be devices on disk hd0. >> >> /sbin/grub-probe: info: Scanning for dmraid_nv devices on disk hd0. >> >> grub-core/kern/emu/hostdisk.c:886: reusing open device `/dev/loop0' >> >> /sbin/grub-probe: info: Scanning for ldm devices on disk hd0. >> >> /sbin/grub-probe: info: scanning hd0 for LDM. >> >> grub-core/kern/emu/hostdisk.c:886: reusing open device `/dev/loop0' >> >> /sbin/grub-probe: info: no LDM signature found. >> >> /sbin/grub-probe: info: Scanning for lvm devices on disk hd0. >> >> /sbin/grub-probe: info: no LVM signature found. >> >> grub-core/partmap/msdos.c:181: partition 0: flag 0x0, type 0x83, start 0x3f, >> len 0x5b85a0 >> >> grub-core/disk/diskfilter.c:135: Scanning for DISKFILTER devices on disk hd0 >> >> /sbin/grub-probe: info: Scanning for DISKFILTER devices on disk hd0. >> >> /sbin/grub-probe: info: Scanning for mdraid1x devices on disk hd0. >> >> grub-core/kern/emu/hostdisk.c:886: reusing open device `/dev/loop0' >> >> grub-core/kern/emu/hostdisk.c:886: reusing open device `/dev/loop0' >> >> /sbin/grub-probe: info: Scanning for mdraid09 devices on disk hd0. >> >> grub-core/kern/emu/hostdisk.c:886: reusing open device `/dev/loop0' >> >> grub-core/kern/emu/hostdisk.c:886: reusing open device `/dev/loop0' >> >> /sbin/grub-probe: info: Scanning for mdraid09_be devices on disk hd0. >> >> /sbin/grub-probe: info: Scanning for dmraid_nv devices on disk hd0. >> >> /sbin/grub-probe: info: Scanning for ldm devices on disk hd0. >> >> /sbin/grub-probe: info: scanning hd0 for LDM. >> >> /sbin/grub-probe: info: no LDM signature found. >> >> /sbin/grub-probe: info: Scanning for lvm devices on disk hd0. >> >> /sbin/grub-probe: info: no LVM signature found. >> >> grub-core/partmap/apple.c:123: bad magic (found 0x0; wanted 0x4552 >> >> grub-core/partmap/msdos.c:181: partition 1: flag 0x0, type 0x0, start 0x0, >> len 0x0 >> >> grub-core/partmap/msdos.c:181: partition 2: flag 0x0, type 0x0, start 0x0, >> len 0x0 >> >> grub-core/partmap/msdos.c:181: partition 3: flag 0x0, type 0x0, start 0x0, >> len 0x0 >> >> grub-core/partmap/msdos.c:181: partition 0: flag 0x0, type 0x83, start 0x3f, >> len 0x5b85a0 >> >> grub-core/partmap/msdos.c:181: partition 1: flag 0x0, type 0x0, start 0x0, >> len 0x0 >> >> grub-core/partmap/msdos.c:181: partition 2: flag 0x0, type 0x0, start 0x0, >> len 0x0 >> >> grub-core/partmap/msdos.c:181: partition 3: flag 0x0, type 0x0, start 0x0, >> len 0x0 >> >> grub-core/partmap/msdos.c:181: partition 0: flag 0x0, type 0x83, start 0x3f, >> len 0x5b85a0 >> >> grub-core/partmap/msdos.c:181: partition 1: flag 0x0, type 0x0, start 0x0, >> len 0x0 >> >> grub-core/partmap/msdos.c:181: partition 2: flag 0x0, type 0x0, start 0x0, >> len 0x0 >> >> grub-core/partmap/msdos.c:181: partition 3: flag 0x0, type 0x0, start 0x0, >> len 0x0 >> >> grub-core/partmap/apple.c:123: bad magic (found 0xeb63; wanted 0x4552 >> >> grub-core/kern/disk.c:326: Closing `hd0'. >> >> grub-core/kern/disk.c:312: Opening `lvm/loop0p1' failed. >> >> grub-core/kern/disk.c:326: Closing `lvm/loop0p1'. >> >> /sbin/grub-probe: error: disk `lvm/loop0p1' not found. >> >> bash-4.3# >> >> >> Thanks, >> Divya > _______________________________________________ Help-grub mailing list [email protected] https://lists.gnu.org/mailman/listinfo/help-grub
