Skip to contentSkip to conversation

loop device doesn't supported by grub-install

DISCUSSION Dmitriy Blinov 2 participants 2 messages Jan 15, 2009

lore
Share & tools
lore
#0 lore raw

Hi all!
I tried to install grub2 on the image mounted via loop device (http://lists.gnu.org/archive/html/help-grub/2008-12/msg00009.html).
And it turned out to be impossible with standard grub-install utility.

The reason is

grub-probe error: cannot find a GRUB drive for /dev/loop2

This error occurs then grub tries to define drive by device name parsing. See file: biosdisk.c function: get_os_disk. Only scsi and ide disks supported by this function.

My problem resolved by using low-level utilities grub-mkimage and grub-setup.

#1 lore raw
Quoted 6 lines · Dmitriy Blinov

Hi all!
I tried to install grub2 on the image mounted via loop device
(http://lists.gnu.org/archive/html/help-grub/2008-12/msg00009.html).
And it turned out to be impossible with standard grub-install utility.

Quoted 8 lines

The reason is

grub-probe error: cannot find a GRUB drive for /dev/loop2

This error occurs then grub tries to define drive by device name parsing. See file: biosdisk.c function: get_os_disk. Only scsi and ide disks supported by this function.

Please try the current code from the subversion repository. get_os_disk() doesn't exist in the code anymore.

Signature · 2 lines
Regards,
Pavel Roskin