grub-devel
[Top][All Lists]
Advanced

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

Re: Raid 5 on raw disk install is broken.


From: Yoshinori K. Okuji
Subject: Re: Raid 5 on raw disk install is broken.
Date: Wed, 1 Apr 2009 22:54:26 +0900
User-agent: KMail/1.9.10

On Tuesday 31 March 2009 05:04:19 Centurion Computer Technology (2005) Ltd 
wrote:
> Hi,
>
> I have a raid array named /dev/md/d0
>
> The comand
>
> grub-setup -r "(md0,1)" "(md0)" fails with:
> grub-setup: error: Can't open /dev/md0: No such file or directory.
>
> I have traced this down to lines 68 - 70  in util/raid.c  a copy of the
> offending lines is:
>
>   devname = xmalloc (strlen (name) + 6);
>   strcpy (devname, "/dev/");
>   strcpy (devname+5, name);
>
> The problem is that it appears to sake the grub device id "md0" and
> simply append it to the string "/dev/" to get /dev/md0.  This will break
> any installation of grub on mdraid whole disk sets.
>
> Can I suggest a fix might be  a similar method used by util/hostdisk
> function opendisk:
> (Line 311):    strcpy (dev, map[disk->id].device);

Would you like to send a patch?

> Also,  can someone point me to the resources I need so I can build the
> debian package out of the svn tree?

Sorry, I don't know, as I am not a Debian user.

Regards,
Okuji





reply via email to

[Prev in Thread] Current Thread [Next in Thread]