Bug#467127: post-install fails with grub-probe: error: Cannot get the real path of `/dev/sda'

Stefan Weil weil at mail.berlios.de
Thu Apr 17 20:03:48 UTC 2008


Stefan Weil wrote:
>
> 2. An earlier installation was done while a removable media (in my 
> case: SD flash card)
>    was not in my card reader. So there is no entry for /dev/sda in 
> device.map.
>    When I upgraded grub-pc while there was a SD card in the card reader,
>    grub-probe probed /dev/sda (the flash disk) and failed because of 
> the missing entry.
>
>    Possible workaround which enables configure / post-install: remove 
> SD card.
>
> Maybe grub-probe should ignore errors from any removable medium.
>
> Stefan Weil
>
>
Correction: with SD card, this is the call which fails during post-install:
grub-probe --target=drive --device /dev/sdb1

(the SD card is /dev/sdb, and has a partition /dev/sdb1)

grub-mkdevicemap would change device.map from this one:

(hd0)   /dev/sda

into this new one:

(hd0)   /dev/sda
(hd1)   /dev/sdb

/dev/sda is my SATA harddisk. With the new device.map,
post-install will fail when there is no SD card inserted.






More information about the Pkg-grub-devel mailing list