Bug#495949: grub-common: grub-probe segfaults
Jean-Luc Coulon (f5ibh)
jean-luc.coulon at wanadoo.fr
Tue Aug 11 07:10:51 UTC 2009
>grub install "(md0)' leads to the same error message
>grub-install /dev/sda then grun-install /dev/sdb leads to other
>problems: the device naming is not consistant from one boot to
> another. Sometimes I've md0 with /dev/sda1 and /dev/sdb1 and
> sometimes with sdb1 and adc1 while they are the same phisycal disks.
>So /boot/grub/device.map doesnt reflects always the real (logcal)
> configuration of the system. This can produce erroror.
As I've seen there is a new version, I've tried again:
sudo grub-install '(md0)'
... and it failed with the following message
[jean-luc at tangerine] % sudo grub-install '(md0)'
grub-setup: warn: Attempting to install GRUB to a partitionless disk.
This is a BAD idea.
grub-setup: error: Embedding is not possible, but this is required when
the root device is on a RAID array or LVM volume.
I had a look in my raid configuration:
The devices.map files has
But depending the way the system start, the device name is not
consistant from a session to an other one.
This time md0 was /dev/sdb1, /dev/sdc1
Today /dev/sda was grabbed by an external USB disk…
I edited devices.map:
And this time everything went fine.
jean-luc at tangerine] % sudo grub-install '(md0)'
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.
Is there a mean not to have to edit by hand devices.map each time the
system is rebooted? Maybe a warning as when the result is successful
about possibly wrong devices.map?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 190 bytes
Desc: not available
More information about the Pkg-grub-devel