From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwVgJ-0003GO-7T for mharc-grub-devel@gnu.org; Fri, 08 Jun 2007 00:02:35 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwVgI-0003GJ-7m for grub-devel@gnu.org; Fri, 08 Jun 2007 00:02:34 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwVgH-0003G7-Mq for grub-devel@gnu.org; Fri, 08 Jun 2007 00:02:33 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwVgH-0003G4-Kt for grub-devel@gnu.org; Fri, 08 Jun 2007 00:02:33 -0400 Received: from m15-111.126.com ([220.181.15.111]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1HwVgG-0008A6-66 for grub-devel@gnu.org; Fri, 08 Jun 2007 00:02:33 -0400 Received: from localhost (unknown [121.201.44.103]) by smtp1 (Coremail) with SMTP id wKjJC1iAZgvW1GhG4PcaAQ==.2120S2; Fri, 08 Jun 2007 12:02:30 +0800 (CST) Date: Fri, 8 Jun 2007 12:02:12 +0800 From: Bean To: The development of GRUB 2 Message-ID: <20070608040212.GA2257@ws3.vdp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.13 (2006-08-11) X-Coremail-Antispam: 1U3Yxn0WfASr-VFAUDIcSsGvfJTRUUUjr8FxVCF77xC6IxKo4 kEV4ylIxAIcVC2z280aVAFwI0_Jr0_Gr1lnxkEFVAIw20F6cxK64vIFxWlx4CE17CEb7AF 67AKxVWUJVWUXwCjxxvEw4Wle4C267I2x7xF54xIwI1lYx0E2Ix0cI8IcVAFwI0_Jr0_Jr 4l4x8a6c8ajcxJMcIj6I8E87Iv67AKxVWUJVW8JwAFxVCaYxvI4VCIwcAKzIAtMxkI7II2 jI8vz4vEwIxGrwCI42IY6I8E87Iv6xkF7I0E14v26r1j6r4UMxkIecxEwVAFwVW8XwAFF2 0E14v26r1j6r4UM7kC6x804xWl1IIY67AEw4v_Jr0_Jr4l5I8CrVACY4xI64kE6c02F40E x7xfMxkFs20EY4vEwck0b40E8IxJM7k0a2IF6F4Un29KB7ZKAUJUUUUUnxnvy29KBjDU0x ZFpf9x07br4SrUUUUU129KBjvJXoW7ZFWUWF43XFWDGF4kKF13XFb_yoW8Jw4UpayUGr1F 9395JF4DAryxWw4xua40grZ7Xa1Ygr1UWa17Ca1UK3ZFkFyav3W5WFWrW393J3WYv3yUGr 4xAayDX3D== X-detected-kernel: Linux 2.4-2.6 Subject: Alternative booting method for grub2 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: Fri, 08 Jun 2007 04:02:34 -0000 It's possible to boot grub2 using the grub4dos boot loader. 1. create a kernel: grub-mkimage -d . -o core.img pc fat ntfs make sure you include the necessary file system driver. 2. add a header to core.img. cat g2hdr.bin core.img > g2ldr g2hdr.bin can be found in the grubutil package. 3. copy g2ldr to the root directory of any FAT/NTFS/EXT2 partition, and extra modules to /boot/grub/ in the same partition. 4. install the grub4dos boot loader. You need grubinst, which can be downloaded at: http://download.gna.org/grubutil/ The latest build is grubutil-1.1-bin-w32-15.zip. 1) Boot using the Windows NT boot manager Generate boot file with grubinst: grubinst -2 -o C:\g2ldr.mbr Then add a line to boot.ini: C:\g2ldr.mbr="GRUB2" This is the safest method, no modification to MBR or boot sector is required. 2) Install to MBR grubinst -2 --save=mbr.sav (hd0) Be careful, backup important data before install to MBR. 3) Install to boot sector grubinst -2 --save=bs.sav (hd0,0) or grubinst -2 --save=bs.sav -p=0 (hd0) Be careful, backup important data before install to boot sector. Currently, grub4dos boot loader support FAT, NTFS and EXT2. The advantage of using grub4dos boot loader is that the location of g2ldr is calculated at boot time, this means you can move it without causing problem.