All of lore.kernel.org
 help / color / mirror / Atom feed
* Alternative booting method for grub2
@ 2007-06-08  4:02 Bean
  2007-06-09  5:37 ` Variable assignment not working as expected Bean
                   ` (3 more replies)
  0 siblings, 4 replies; 24+ messages in thread
From: Bean @ 2007-06-08  4:02 UTC (permalink / raw)
  To: The development of GRUB 2

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.




^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2011-07-22  1:36 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-08  4:02 Alternative booting method for grub2 Bean
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                 ` 김민준

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.