Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1F1XHX-0001H9-SM for mharc-grub-devel@gnu.org; Tue, 24 Jan 2006 18:09:00 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F1XCa-0003sh-PR for grub-devel@gnu.org; Tue, 24 Jan 2006 18:03:53 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F1XCD-0003HQ-BC for grub-devel@gnu.org; Tue, 24 Jan 2006 18:03:29 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F1XC1-00032x-1w for grub-devel@gnu.org; Tue, 24 Jan 2006 18:03:17 -0500 Received: from [66.249.92.196] (helo=uproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1F1X9I-0001Hy-KX for grub-devel@gnu.org; Tue, 24 Jan 2006 18:00:29 -0500 Received: by uproxy.gmail.com with SMTP id u2so87755uge for ; Tue, 24 Jan 2006 15:00:26 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=q7z3XGcbqcT26Wba4xRiV8gE3YPl3Y6EScVTuYWjRmSN/mEKLgC9HefPpc/tr4z3LVk2SBuu4B9RheDrWbHszGpk+84AnFv6SLmjbmlTJd9Y1twpS3LxssQ1P+ahtiz1+hdZKe8AcA/OFw+JNfo1rculePn16zsCSHljSwTSlwQ= Received: by 10.48.221.19 with SMTP id t19mr2531nfg; Tue, 24 Jan 2006 15:00:26 -0800 (PST) Received: by 10.48.161.6 with HTTP; Tue, 24 Jan 2006 15:00:26 -0800 (PST) Message-ID: Date: Tue, 24 Jan 2006 18:00:26 -0500 From: Poe Chen To: grub-devel@gnu.org In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_31740_27848677.1138143626188" References: Subject: Successfully boot from a floppy on a GPT partitioned 2.18TB system 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: Tue, 24 Jan 2006 23:08:54 -0000 ------=_Part_31740_27848677.1138143626188 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Just want to report that I've successfully boot from floppy with GRUB 1.92on a GPT partitioned 2.18TB system. The system is running CentOS 4.2 with latest updates and the RAID is runnin= g with 3WARE 9550SX with 8 hard drives/RAID50 configuration. Here is the partition information: # parted /dev/sda print Disk geometry for /dev/sda: 0.000-2288754.000 megabytes Disk label type: gpt Minor Start End Filesystem Name Flags 1 0.031 101.972 ext3 boot 2 101.975 4102.536 ext3 3 4102.537 6149.876 linux-swap 4 6149.876 2288753.983 ext3 GRUB v1.92 source code is downloaded and compile with yacc links to bison (otherwise the compilation will fail). grub-install script seems to have an typo. It looks like in line 213 of util/i386/pc/grub-install.in, `--modules' should be '--modules' (the back tick should be just a single quotation mark). Here is the contents of /boot/grub (it has legacy grub because I don't want to remove it until I'm sure that v1.92 works with GPT): ls /boot/grub/ acorn.mod fat.mod kernel.img splash.xpm.gz affs.mod fat_stage1_5 _linux.mod stage1 amiga.mod ffs_stage1_5 linux.mod stage2 apple.mod font.mod loopback.mod sun.mod boot.img fshelp.mod ls.mod terminal.mod boot.mod fs.lst minix.mod terminfo.mod cat.mod gpt.mod minix_stage1_5 test.mod _chain.mod grub.cfg moddep.lst timeout.mod chain.mod gzio.mod _multiboot.mod ufs2_stage1_5 cmp.mod halt.mod multiboot.mod ufs.mod command.lst hello.mod normal.mod vbeinfo.mod configfile.mod help.mod pc.mod vbe.mod core.img hfs.mod play.mod vbetest.mod default.mod hfsplus.mod pxeboot.img vesafb.mod device.map iso9660.mod reboot.mod vga.mod diskboot.img iso9660_stage1_5 reiserfs_stage1_5 vstafs_stage1_5 e2fs_stage1_5 jfs.mod search.mod xfs.mod ext2.mod jfs_stage1_5 sfs.mod xfs_stage1_5 Here is the script that I use to create bootable floppy that supports GPT: #!/bin/bash #This will create a GRUB2 boot floppy that supports GPT system: grub-mkimage -d /boot/grub -v -o /boot/grub/core.img ls ext2 gpt pc linux _linux boot chain configfile default fshelp help mke2fs /dev/fd0 mount -o loop -t ext2 /dev/fd0 /mnt/floppy/ mkdir -p /mnt/floppy/boot/grub cp /boot/grub/boot.img /boot/grub/core.img /boot/grub/*.mod /mnt/floppy/boot/grub cp -f /boot/grub/grub.cfg /mnt/floppy/boot/grub grub-mkdevicemap -m /boot/grub/device.map grub-setup -d /mnt/floppy/boot/grub -v -r '(fd0)' -m /boot/grub/device.map '(fd0)' umount /mnt/floppy And here is my configuration file: # grub2 configuration file # linux (hd0,1)/vmlinuz-2.6.9-22.0.2.ELsmp ro root=3D/dev/sda2 initrd (hd0,1)/initrd-2.6.9-22.0.2.ELsmp.img boot And the device map: # cat /boot/grub/device.map (fd0) /dev/fd0 (hd0) /dev/sda It turns out that in regular PC partition table (parted msdos label) (hd0,0= ) becomes (hd0,1) if you have GPT table partition. Thanks to all the GRUB developers for this great software!!! Finally we have a boot loader that supports GPT!!!! Let me know if anyone need any other information to get the GPT partitioned system booted from floppy. Poe ps: I'm adding an entry in the wiki. Please let me know if it's not appropriate. ------=_Part_31740_27848677.1138143626188 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Just want to report that I've successful= ly boot from floppy with GRUB 1.92 on a GPT partitioned 2.18TB system.
<= br>The system is running CentOS 4.2 with latest updates and the RAID is run= ning with 3WARE 9550SX with 8 hard drives/RAID50 configuration.

Here is the partition information:

# parted /dev/sda printDisk geometry for /dev/sda: 0.000-2288754.000 megabytes
Disk label typ= e: gpt
Minor    Start      = End     Filesystem  Name    &= nbsp;           &nbs= p; Flags
1          0.031 &nbs= p;  101.972  ext3        =             &nb= sp;         boot
2  &n= bsp;     101.975   4102.536  ext3
3&n= bsp;      4102.537   6149.876  linu= x-swap
4       6149.876 2288753.983  = ext3


GRUB v1.92 source code is downloaded and compile with yacc = links to bison (otherwise the compilation will fail).

grub-install script seems to have an typo.  It looks like in l= ine 213 of util/i386/pc/grub-install.in, = `--modules' should be '--modules' (the back tick should be just a single qu= otation mark).

Here is the contents of /boot/grub (it has legacy grub because I do= n't want to remove it until I'm sure that v1.92 works with GPT):
ls /boo= t/grub/
acorn.mod       fat.mod  = ;         kernel.img  &nb= sp;      splash.xpm.gz
affs.mod        fat_stage1_5 &n= bsp;    _linux.mod       =   stage1
amiga.mod       ffs_stage1_5=       linux.mod      = ;    stage2
apple.mod      = font.mod          loopback.mo= d       sun.mod
boot.img   =      fshelp.mod        =20 ls.mod           &nb= sp; terminal.mod
boot.mod        fs.l= st            minix.= mod          terminfo.mod
c= at.mod         gpt.mod  &= nbsp;        minix_stage1_5  &= nbsp;  test.mod
_chain.mod      grub.cfg&n= bsp;         moddep.lst  =       =20 timeout.mod
chain.mod       gzio.mod =          _multiboot.mod  =    ufs2_stage1_5
cmp.mod      &n= bsp;  halt.mod          m= ultiboot.mod      ufs.mod
command.lst &nbs= p;   hello.mod         no= rmal.mod         vbeinfo.mod
con= figfile.mod   help.mod          pc.mo= d             v= be.mod
core.img        hfs.mod &= nbsp;         play.mod  &= nbsp;        vbetest.mod
default.mod&= nbsp;    hfsplus.mod       pxe= boot.img        vesafb.mod
device.map=       iso9660.mod     &nb= sp; reboot.mod          vga.mod
diskboot.img&nb= sp;   iso9660_stage1_5  reiserfs_stage1_5  vstafs_stage= 1_5
e2fs_stage1_5   jfs.mod      = ;     search.mod      &nb= sp;  xfs.mod
ext2.mod        jfs= _stage1_5      sfs.mod    &nbs= p;       xfs_stage1_5


Here is the script that I use to create bootable floppy that su= pports GPT:

#!/bin/bash

#This will create a GRUB2 boot floppy= that supports GPT system:

grub-mkimage -d /boot/grub -v -o /boot/gr= ub/core.img ls ext2 gpt pc linux _linux boot chain configfile default fshel= p help
mke2fs /dev/fd0
mount -o loop -t ext2 /dev/fd0 /mnt/floppy/
mkdir= -p /mnt/floppy/boot/grub
cp /boot/grub/boot.img /boot/grub/core.img /bo= ot/grub/*.mod /mnt/floppy/boot/grub
cp -f /boot/grub/grub.cfg /mnt/flopp= y/boot/grub
grub-mkdevicemap -m /boot/grub/device.map
grub-setup -d /mnt/floppy/= boot/grub -v -r '(fd0)' -m /boot/grub/device.map '(fd0)'
umount /mnt/flo= ppy


And here is my configuration file:

# grub2 configurat= ion file
#

linux (hd0,1)/vmlinuz-2.6.9-22.0.2.ELsmp ro root=3D/dev/sda2initrd (hd0,1)/initrd-2.6.9-22.0.2.ELsmp.img
boot


And the d= evice map:

# cat /boot/grub/device.map
(fd0)   /dev/fd0=
(hd0)   /dev/sda


It turns out that in regular PC partition table (parted msdos l= abel) (hd0,0) becomes (hd0,1) if you have GPT table partition.

Thank= s to all the GRUB developers for this great software!!!  Finally we ha= ve a boot loader that supports GPT!!!!

Let me know if anyone need any other information to get the GPT par= titioned system booted from floppy.


Poe

ps:  I'm adding an entry in the wiki.  Please let me kno= w if it's not appropriate.
------=_Part_31740_27848677.1138143626188--