Received: from list by lists.gnu.org with archive (Exim 4.71) id 1QNqUO-0005zq-5o for mharc-grub-devel@gnu.org; Sat, 21 May 2011 14:01:24 -0400 Received: from eggs.gnu.org ([140.186.70.92]:40164) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QNqUM-0005zh-0K for grub-devel@gnu.org; Sat, 21 May 2011 14:01:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QNqUL-0003jk-1R for grub-devel@gnu.org; Sat, 21 May 2011 14:01:21 -0400 Received: from smarthost03.mail.zen.net.uk ([212.23.3.142]:44867) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QNqUK-0003je-TM for grub-devel@gnu.org; Sat, 21 May 2011 14:01:20 -0400 Received: from [82.69.40.219] (helo=riva.pelham.vpn.ucam.org) by smarthost03.mail.zen.net.uk with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1QNqUI-0005E3-VP for grub-devel@gnu.org; Sat, 21 May 2011 18:01:19 +0000 Received: from cjwatson by riva.pelham.vpn.ucam.org with local (Exim 4.72) (envelope-from ) id 1QNqTk-0001ip-Tm for grub-devel@gnu.org; Sat, 21 May 2011 19:00:46 +0100 Date: Sat, 21 May 2011 19:00:40 +0100 From: Colin Watson To: grub-devel@gnu.org Subject: Re: Boot sector for ext2 Message-ID: <20110521180039.GT23533@riva.ucam.org> References: <4DD76A42.70600@rosenau-ka.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4DD76A42.70600@rosenau-ka.de> User-Agent: Mutt/1.5.20 (2009-06-14) X-Originating-Smarthost03-IP: [82.69.40.219] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 212.23.3.142 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 May 2011 18:01:22 -0000 On Sat, May 21, 2011 at 09:31:14AM +0200, Martin Rosenau wrote: > I wrote a tool I wish to publish under GPL that may be integrated > into GRUB instead of publishing as separate tool: > > Background: In a multi-OS-environment it is sometimes not possible > installing GRUB on the MBR (Windows Vista has problems then!) > Installing GRUB on an ext2 partition (instead of on the MBR) often > requires "block lists" which often do not work. > > I wrote a boot sector that is capable to search a file on the ext2 > partition by file name (not by inode or block number etc...) and > load it. Because the entire code is quite small it fits into the > boot sector and "block lists" are not required. > > This would also allow to use different "core.img" files (e.g. one > booting Linux and one booting Memtest) when booting GRUB from a > chain loader (e.g Windows' boot menu). Hi, Thanks for your work. However, doesn't this overlap with what the "ntldr-img" GRUB extras module (originally based on part of GRUB4DOS) already does? Its purpose is to be small enough that it can be booted from the Windows boot loader, which may only be able to load 16 sectors; it supports reading a named file from a handful of file systems, including ext2 and NTFS. It's commonly shipped along with GRUB; for example, Debian and Ubuntu ship it. Admittedly, ntldr-img will not fit into 512 bytes, so if that's what your code does then it does occupy a slightly different space. Regards, -- Colin Watson [cjwatson@ubuntu.com]