Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Lon3E-0000ZT-Bk for mharc-grub-devel@gnu.org; Tue, 31 Mar 2009 19:07:24 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lon3C-0000ZE-VV for grub-devel@gnu.org; Tue, 31 Mar 2009 19:07:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lon3A-0000Z1-Cc for grub-devel@gnu.org; Tue, 31 Mar 2009 19:07:21 -0400 Received: from [199.232.76.173] (port=33906 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lon3A-0000Yx-7m for grub-devel@gnu.org; Tue, 31 Mar 2009 19:07:20 -0400 Received: from ironport-smtp02.maxnet.net.nz ([123.100.71.102]:41934) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lon39-0003hj-Hf for grub-devel@gnu.org; Tue, 31 Mar 2009 19:07:19 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApoEALY+0knAqAJa/2dsb2JhbADOUIN6Bg X-IronPort-AV: E=Sophos;i="4.39,304,1235905200"; d="scan'208";a="120419814" Received: from smtp01.maxnet.net.nz ([123.100.71.110]) by ironport-smtp02.maxnet.net.nz with ESMTP; 01 Apr 2009 12:07:13 +1300 Received: from [192.168.2.90] (121-73-135-210.cable.telstraclear.net [121.73.135.210]) by smtp01.maxnet.net.nz (Postfix) with ESMTPA id 6EE9DA3B87 for ; Wed, 1 Apr 2009 12:07:13 +1300 (NZDT) From: "Centurion Computer Technology (2005) Ltd" To: The development of GRUB 2 In-Reply-To: <1238443459.6969.106.camel@localhost.localdomain> References: <1238443459.6969.106.camel@localhost.localdomain> Content-Type: text/plain Organization: Centurion Computer Technology (2005) Ltd Date: Wed, 01 Apr 2009 12:07:12 +1300 Message-Id: <1238540832.5551.14.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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: Tue, 31 Mar 2009 23:07:23 -0000 On Tue, 2009-03-31 at 09:04 +1300, 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. Just to clarify this, The linux standard device name for a linux whole/partionable disk mdraid device is /dev/md/dN, and the old style naming scheme is /dev/md_dN I am still looking for a fix for this. The only way I can see to sort this is to use the device.map to get the linux device name from the grub device name. Can anybody point me to how to get this device name or an example of where this is already done? > Also, can someone point me to the resources I need so I can build the > debian package out of the svn tree? > Thanks, -- Daniel Reurich Centurion Computer Technology (2005) Limited. Ph: 021 797 722