Hi Félix >Well: >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-...@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 (hd0) /dev/sda (hd1) /dev/sdb 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: (hd0) /dev/sdb (hd1) /dev/sdc And this time everything went fine. jean-...@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'. (hd0) /dev/sdb (hd1) /dev/sdc 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? Regards Jean-Luc
pgpws4Dj7SEOO.pgp
Description: PGP signature