All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bean <bean123@126.com>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Alternative booting method for grub2
Date: Fri, 8 Jun 2007 12:02:12 +0800	[thread overview]
Message-ID: <20070608040212.GA2257@ws3.vdp.com> (raw)

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.




             reply	other threads:[~2007-06-08  4:02 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-08  4:02 Bean [this message]
2007-06-09  5:37 ` Variable assignment not working as expected Bean
2007-06-09  7:01   ` Alex Roman
2007-06-09  7:24     ` Alex Roman
2007-06-09  8:44       ` Alex Roman
2007-06-09 15:08         ` Alex Roman
2007-06-09 10:54     ` Bean
2007-06-09 15:31     ` Marco Gerards
2007-06-09 16:35       ` Alex Roman
2007-06-09 16:56         ` Marco Gerards
2007-06-09 15:29   ` Marco Gerards
2007-09-09 11:27 ` Alternative booting method for grub2 Robert Millan
2011-07-19 10:41   ` 김민준
2011-07-19 11:08 ` 김민준
2011-07-20  0:40   ` Vladimir 'φ-coder/phcoder' Serbinenko
     [not found] ` <22991850.525.1311095881463.JavaMail.mobile-sync@vbbfs23>
2011-07-19 17:32   ` Jérôme Poulin
2011-07-19 23:36     ` 김민준
2011-07-20  0:45       ` Cui Lei
2011-07-20  1:39         ` 김민준
2011-07-20  2:39           ` Cui Lei
2011-07-20  9:43             ` 김민준
2011-07-20 14:16               ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-07-21  1:01               ` Cui Lei
2011-07-22  1:36                 ` 김민준

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070608040212.GA2257@ws3.vdp.com \
    --to=bean123@126.com \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.