All of lore.kernel.org
 help / color / mirror / Atom feed
* Successfully boot from a floppy on a GPT partitioned 2.18TB system
       [not found] <ef39265d0601241456s78717c2xc858f5434eafba6f@mail.gmail.com>
@ 2006-01-24 23:00 ` Poe Chen
  2006-01-24 23:52   ` Marco Gerards
  2006-01-25  0:16   ` Yoshinori K. Okuji
  0 siblings, 2 replies; 7+ messages in thread
From: Poe Chen @ 2006-01-24 23:00 UTC (permalink / raw)
  To: grub-devel

[-- Attachment #1: Type: text/plain, Size: 3680 bytes --]

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 running
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=/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.

[-- Attachment #2: Type: text/html, Size: 6456 bytes --]

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

* Re: Successfully boot from a floppy on a GPT partitioned 2.18TB system
  2006-01-24 23:00 ` Successfully boot from a floppy on a GPT partitioned 2.18TB system Poe Chen
@ 2006-01-24 23:52   ` Marco Gerards
  2006-01-25  4:03     ` Poe Chen
  2006-01-25  0:16   ` Yoshinori K. Okuji
  1 sibling, 1 reply; 7+ messages in thread
From: Marco Gerards @ 2006-01-24 23:52 UTC (permalink / raw)
  To: The development of GRUB 2

Poe Chen <poe.poechen@gmail.com> writes:

> Just want to report that I've successfully boot from floppy with GRUB
> 1.92on a GPT partitioned
> 2.18TB system.

Cool!  Nice to hear! :-)

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

This is fixed in CVS.

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

Ehm, what do you mean?  I don't understand.

> Thanks to all the GRUB developers for this great software!!!  Finally we
> have a boot loader that supports GPT!!!!

:-)

Why did you need GPT?  I implemented it mainly because it will be
required when people switch to GPT and because someone required it.

--
Marco




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

* Re: Successfully boot from a floppy on a GPT partitioned 2.18TB system
  2006-01-24 23:00 ` Successfully boot from a floppy on a GPT partitioned 2.18TB system Poe Chen
  2006-01-24 23:52   ` Marco Gerards
@ 2006-01-25  0:16   ` Yoshinori K. Okuji
  1 sibling, 0 replies; 7+ messages in thread
From: Yoshinori K. Okuji @ 2006-01-25  0:16 UTC (permalink / raw)
  To: The development of GRUB 2

On Wednesday 25 January 2006 00:00, Poe Chen wrote:
> Just want to report that I've successfully boot from floppy with GRUB
> 1.92on a GPT partitioned
> 2.18TB system.

That's great. Kudos to Marco.

> 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).

You are right. I've fixed it right now.

Okuji



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

* Re: Successfully boot from a floppy on a GPT partitioned 2.18TB system
  2006-01-24 23:52   ` Marco Gerards
@ 2006-01-25  4:03     ` Poe Chen
  2006-01-25  9:41       ` Marco Gerards
  0 siblings, 1 reply; 7+ messages in thread
From: Poe Chen @ 2006-01-25  4:03 UTC (permalink / raw)
  To: The development of GRUB 2

[-- Attachment #1: Type: text/plain, Size: 1603 bytes --]

Hi, Marco,

The system needs to use GPT because any system that has more than 2TB will
need GPT.  Regular PC (msdos label in parted) partition table won't be able
to handle that.  And it looks like that Mac needs GPT too....

About the (hd0,0) to (hd0,1), it means that if you have (hd0,0) in regular
PC partition table, it becomes (hd0,1) in GPT format.  Not sure why, but
that's how I boot it since I can't find anything under (hd0,0) once I switch
to GPT.

Anyway, thanks a lot for the hard work!!!  =)


Poe


On 1/24/06, Marco Gerards <mgerards@xs4all.nl> wrote:
>
> Poe Chen <poe.poechen@gmail.com> writes:
>
> > Just want to report that I've successfully boot from floppy with GRUB
> > 1.92on a GPT partitioned
> > 2.18TB system.
>
> Cool!  Nice to hear! :-)
>
> > GRUB v1.92 source code is downloaded and compile with yacc links to
> bison
> > (otherwise the compilation will fail).
>
> This is fixed in CVS.
>
> > It turns out that in regular PC partition table (parted msdos label)
> (hd0,0)
> > becomes (hd0,1) if you have GPT table partition.
>
> Ehm, what do you mean?  I don't understand.
>
> > Thanks to all the GRUB developers for this great software!!!  Finally we
> > have a boot loader that supports GPT!!!!
>
> :-)
>
> Why did you need GPT?  I implemented it mainly because it will be
> required when people switch to GPT and because someone required it.
>
> --
> Marco
>
>
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/grub-devel
>

[-- Attachment #2: Type: text/html, Size: 2146 bytes --]

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

* Re: Successfully boot from a floppy on a GPT partitioned 2.18TB system
  2006-01-25  4:03     ` Poe Chen
@ 2006-01-25  9:41       ` Marco Gerards
  2006-01-25 20:21         ` Poe Chen
  0 siblings, 1 reply; 7+ messages in thread
From: Marco Gerards @ 2006-01-25  9:41 UTC (permalink / raw)
  To: The development of GRUB 2

Poe Chen <poe.poechen@gmail.com> writes:

> The system needs to use GPT because any system that has more than 2TB will
> need GPT.  Regular PC (msdos label in parted) partition table won't be able
> to handle that.  And it looks like that Mac needs GPT too....

Right.  have you tested how well GRUB can handle big filesystems, or
don't you have any?

> About the (hd0,0) to (hd0,1), it means that if you have (hd0,0) in regular
> PC partition table, it becomes (hd0,1) in GPT format.  Not sure why, but
> that's how I boot it since I can't find anything under (hd0,0) once I switch
> to GPT.

Oh, I see.  That's something that should be fixed I think.  I will
have a look at it, but it won't happen this month.

--
Marco




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

* Re: Successfully boot from a floppy on a GPT partitioned 2.18TB system
  2006-01-25  9:41       ` Marco Gerards
@ 2006-01-25 20:21         ` Poe Chen
  2006-01-25 20:40           ` Marco Gerards
  0 siblings, 1 reply; 7+ messages in thread
From: Poe Chen @ 2006-01-25 20:21 UTC (permalink / raw)
  To: The development of GRUB 2

[-- Attachment #1: Type: text/plain, Size: 803 bytes --]

>
> Right.  have you tested how well GRUB can handle big filesystems, or
> don't you have any?


Like I said, I'm using GRUB2 to floppy boot a 2.1TB machine (the main
barrier with large file system is 2TB) and t looks like it's working fine.
However, I do have problems installing GRUB2 on the RAID system.  I'll
describe it in another post.

> About the (hd0,0) to (hd0,1), it means that if you have (hd0,0) in regular
> > PC partition table, it becomes (hd0,1) in GPT format.  Not sure why, but
> > that's how I boot it since I can't find anything under (hd0,0) once I
> switch
> > to GPT.
>
> Oh, I see.  That's something that should be fixed I think.  I will
> have a look at it, but it won't happen this month.


That's a bug?  I thought that's how GPT partition works....  =)

[-- Attachment #2: Type: text/html, Size: 1233 bytes --]

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

* Re: Successfully boot from a floppy on a GPT partitioned 2.18TB system
  2006-01-25 20:21         ` Poe Chen
@ 2006-01-25 20:40           ` Marco Gerards
  0 siblings, 0 replies; 7+ messages in thread
From: Marco Gerards @ 2006-01-25 20:40 UTC (permalink / raw)
  To: The development of GRUB 2

Poe Chen <poe.poechen@gmail.com> writes:

>>
>> Right.  have you tested how well GRUB can handle big filesystems, or
>> don't you have any?
>
>
> Like I said, I'm using GRUB2 to floppy boot a 2.1TB machine (the main
> barrier with large file system is 2TB) and t looks like it's working fine.
> However, I do have problems installing GRUB2 on the RAID system.  I'll
> describe it in another post.

Software RAID is not supported yet, if that is the question.

>> About the (hd0,0) to (hd0,1), it means that if you have (hd0,0) in regular
>> > PC partition table, it becomes (hd0,1) in GPT format.  Not sure why, but
>> > that's how I boot it since I can't find anything under (hd0,0) once I
>> switch
>> > to GPT.
>>
>> Oh, I see.  That's something that should be fixed I think.  I will
>> have a look at it, but it won't happen this month.
>
> That's a bug?  I thought that's how GPT partition works....  =)

Well, I am not sure. :-)

--
Marco




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

end of thread, other threads:[~2006-01-25 20:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <ef39265d0601241456s78717c2xc858f5434eafba6f@mail.gmail.com>
2006-01-24 23:00 ` Successfully boot from a floppy on a GPT partitioned 2.18TB system Poe Chen
2006-01-24 23:52   ` Marco Gerards
2006-01-25  4:03     ` Poe Chen
2006-01-25  9:41       ` Marco Gerards
2006-01-25 20:21         ` Poe Chen
2006-01-25 20:40           ` Marco Gerards
2006-01-25  0:16   ` Yoshinori K. Okuji

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.