Hi, 

I have tried to create the disk image file to running ubuntu 12.04 (precise) 
machine using loop device. But  its failed during grub installation on the same.

I executed below commands

TMP=/mnt

...

LOOP=`losetup --find | cut -d "/" -f 3`
losetup -f --show  disk.raw
kpartx -av /dev/${LOOP}
mount /dev/mapper/${LOOP}p1 $TMP

...

grub-install --root-directory=/mnt /dev/loop0


Error message:

/usr/sbin/grub-probe: error: cannot find a GRUB drive for /dev/mapper/loop0p1.  
Check your device.map.
Auto-detection of a filesystem of /dev/mapper/loop0p1 failed.
Try with --recheck.
If the problem persists please report this together with the output of 
"/usr/sbin/grub-probe --device-map="/tmp/tmp.eLpG2Ho5Ns/boot/grub/device.map" 
--target=fs -v /tmp/tmp.eLpG2Ho5Ns/boot/grub" to [email protected]



Thanks
Thiru
_______________________________________________
Bug-grub mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-grub

Reply via email to