Skip to contentSkip to conversation

counting partitions in gpt partition map

DISCUSSION Yoshinori K. Okuji 4 participants 4 messages Apr 25, 2006

lore
Share & tools
lore
#0 lore raw

Why does the gpt partition map count partitions from one instead of zero, unlike other partition maps in GRUB? I don't object to changing the base number to one in GRUB 2, but they should be at least consistent.

Okuji

#1 lore raw
Quoted 3 lines · Yoshinori K. Okuji

Why does the gpt partition map count partitions from one instead of zero, unlike other partition maps in GRUB? I don't object to changing the base number to one in GRUB 2, but they should be at least consistent.

I would *love* to have the numbering start at one. This would be consistent with Open Firmware, Linux, and probably every other OSs' numbering, which will reduce user confusion.

-Hollis

#2 lore raw
In reply to Yoshinori K. Okuji
Quoted 3 lines · Yoshinori K. Okuji

Why does the gpt partition map count partitions from one instead of zero, unlike other partition maps in GRUB? I don't object to changing the base number to one in GRUB 2, but they should be at least consistent.

This most likely would be a bug, if this is the case. I haven't really tested things on a partition map that is actually in use. Perhaps it's that or clumsiness that introduced this.

IIRC the first partition is one with a special meaning, perhaps it is that?

--
Marco

#3 lore raw
Quoted 6 lines · Marco Gerards
Quoted 3 lines · Yoshinori K. Okuji

Why does the gpt partition map count partitions from one instead of zero, unlike other partition maps in GRUB? I don't object to changing the base number to one in GRUB 2, but they should be at least consistent.

Quoted 6 lines

This most likely would be a bug, if this is the case. I haven't really tested things on a partition map that is actually in use. Perhaps it's that or clumsiness that introduced this.

IIRC the first partition is one with a special meaning, perhaps it is that?

Well, the encapsulating partition table has one sentinel value in it, and if you're using EFI you might have EFI boot partitions. The former you really wouldn't want to count, the latter you would.

Signature · 1 line
  Peter