[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Problems installing grub/lilo with RAID1 on /



"tv.debian@googlemail.com" <tv.debian@googlemail.com> writes:

> Hi,
>
> 06/06/2011 20:16, Felix Natter wrote:
>> Tom H <tomh0665@gmail.com> writes:
>> 
>> hello Tom, 
>> 
>>> On Sun, Jun 5, 2011 at 3:30 PM, Felix Natter
>>> <felix.natter@smail.inf.fh-brs.de> wrote:
>>>
>>>
>>>> I am trying to install squeeze (from live DVD[1]) with a RAID1 root
>>>> filesystem (/dev/md0).
>>>>
>>>> There is an error when running grub-install:
>>>> Jun 5 18:38:18 grub-installer: error: Running 'grub-install --no-floppy --force "/dev/sda"' failed.
>>>>
>>>> I tried to run it manually:
>>>> chroot /target grub-install --no-floppy --force /dev/sda
>>>> /usr/sbin/grub-probe: error: no such disk.
>>>> Auto-detection of a filesystem of /dev/md0 failed.
>>>> Please report this together with the output of "/usr/sbin/grub-probe --device-map=/boot/grub/device.map --target=fs -v /boot/grub" to <bug-grub@gnu.org>
>>>
>>> Does "/target/etc/mtab" exist and is it correct?
>> 
>> Seems like it's correct:
>> ----------------------
>> /dev/md0 / ext3 rw,relatime,errors=remount-ro,data=ordered 0 0
>> tmpfs /dev tmpfs rw,relatime,mode=755 0 0
>> none /proc proc rw,relatime 0 0
>> ----------------------
>> 
>>>
>>>> chroot /target /usr/sbin/grub-probe --device-map=/boot/grub/device.map --target=fs -v /boot/grub
>>>> /usr/sbin/grub-probe: info: the size of hd0 is 488397168.
>>>> /usr/sbin/grub-probe: info: the size of hd1 is 488397168.
>>>> /usr/sbin/grub-probe: info: changing current directory to /dev.
>>>> /usr/sbin/grub-probe: info: changing current directory to mapper.
>>>> /usr/sbin/grub-probe: info: opening md0.
>>>> /usr/sbin/grub-probe: error: no such disk.
>>>
>>> On both Debian and Ubuntu, I used to be able to run "dpkg-reconfigure
>>> grub-pc", choose md0, sda, and sdb, and grub would be installed on all
>> 
>> This results in the same error.
>> 
>>> three. For a while now (I can't remember for how long), installing to
>>> md0's failed.
>> 
>> Is this a known bug or unsupported?
>
> There have been a longstanding non-reliability of grub-pc with /boot on
> raid1, have a look at the bug tracker and you'll find several reports
> revolving around /boot or / on raid1 (#624232 is mine). Problem is
> solved with the recent "mduuid" patch that went into grub-pc 1.99 (is in
> Wheezy/Testing). But I don't know if your problem is related to this or
> due to the metadata weirdness (see below).

Thanks for the suggestion, it all works fine with today's testing
(net) installer!

Best Regards!
-- 
Felix Natter


Reply to: