From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1IUKxM-0008NZ-O5 for mharc-grub-devel@gnu.org; Sun, 09 Sep 2007 07:28:00 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IUKxH-0008Kt-KY for grub-devel@gnu.org; Sun, 09 Sep 2007 07:27:55 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IUKxG-0008KC-LU for grub-devel@gnu.org; Sun, 09 Sep 2007 07:27:55 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IUKxG-0008Jz-Fb for grub-devel@gnu.org; Sun, 09 Sep 2007 07:27:54 -0400 Received: from aybabtu.com ([69.60.117.155]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IUKxG-0005Qp-4r for grub-devel@gnu.org; Sun, 09 Sep 2007 07:27:54 -0400 Received: from [192.168.10.6] (helo=thorin) by aybabtu.com with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1IUKxC-0000Ne-Ls for grub-devel@gnu.org; Sun, 09 Sep 2007 13:27:52 +0200 Received: from rmh by thorin with local (Exim 4.63) (envelope-from ) id 1IUKx5-0007dU-9i for grub-devel@gnu.org; Sun, 09 Sep 2007 13:27:43 +0200 Date: Sun, 9 Sep 2007 13:27:43 +0200 From: Robert Millan To: The development of GRUB 2 Message-ID: <20070909112743.GA29114@thorin> References: <20070608040212.GA2257@ws3.vdp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070608040212.GA2257@ws3.vdp.com> Organization: free as in freedom X-Message-Flag: Microsoft discourages use of Outlook. X-Debbugs-No-Ack: true User-Agent: Mutt/1.5.13 (2006-08-11) X-Detected-Kernel: Genre and OS details not recognized. Subject: Re: 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: Sun, 09 Sep 2007 11:27:56 -0000 Works wonders. I'm using it with win32-loader [1] [2], and plans are that this will make it to official Debian CDs/DVDs for the next major release. I wonder if it can create a "grub.com" executable like the one grub4dos had, so that it's possible to load GRUB directly on a Win9x without rebooting or messing with MBR. [1] http://packages.debian.org/sid/win32-loader [2] http://goodbye-microsoft.com/ On Fri, Jun 08, 2007 at 12:02:12PM +0800, Bean wrote: > 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. > > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > -- Robert Millan I know my rights; I want my phone call! What use is a phone call, if you are unable to speak? (as seen on /.)