Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Lp0tn-0007nB-I7 for mharc-grub-devel@gnu.org; Wed, 01 Apr 2009 09:54:35 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lp0tl-0007mt-Jw for grub-devel@gnu.org; Wed, 01 Apr 2009 09:54:33 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lp0tl-0007mf-7x for grub-devel@gnu.org; Wed, 01 Apr 2009 09:54:33 -0400 Received: from [199.232.76.173] (port=43432 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lp0tl-0007mc-2h for grub-devel@gnu.org; Wed, 01 Apr 2009 09:54:33 -0400 Received: from mail.nexedi.com ([91.121.25.85]:57489 helo=nexedi.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lp0tk-0002UG-MQ for grub-devel@gnu.org; Wed, 01 Apr 2009 09:54:32 -0400 Received: from [10.8.0.46] (unknown [10.8.0.46]) by nexedi.com (Postfix) with ESMTP id B06C53D9F4 for ; Wed, 1 Apr 2009 15:54:30 +0200 (CEST) From: "Yoshinori K. Okuji" Organization: enbug.org To: The development of GRUB 2 Date: Wed, 1 Apr 2009 22:54:26 +0900 User-Agent: KMail/1.9.10 References: <1238443459.6969.106.camel@localhost.localdomain> In-Reply-To: <1238443459.6969.106.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200904012254.26395.okuji@enbug.org> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: Re: Raid 5 on raw disk install is broken. X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Apr 2009 13:54:34 -0000 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