Bug 575297 - gdisk does not support 1Mib alignment
Summary: gdisk does not support 1Mib alignment
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: gdisk
Version: 12
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Terje Røsten
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-03-19 22:23 UTC by Till Maas
Modified: 2010-04-09 04:03 UTC (History)
2 users (show)

Fixed In Version: gdisk-0.6.6-1.fc13
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-03-23 02:07:06 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Till Maas 2010-03-19 22:23:17 UTC
Description of problem:
gdisk in Fedora does not support 1Mib alignment of partitions. The maximum allowed alignment value is 128 sectors of size 512 bytes, but 2048 would be needed for 1Mib alignment. The 1Mib alignment is used by default in fdisk if there is no better value known.

Version-Release number of selected component (if applicable):
gdisk-0.6.3-2.fc12.x86_64

A fix for this has just been commited to upstream git:
http://gptfdisk.git.sourceforge.net/git/gitweb.cgi?p=gptfdisk/gptfdisk;a=commitdiff;h=a8582cfe6c1aa5e5f80458ac72d881a04ae0ba44

The git version works for me, but maybe the user experience will be improved a little, but I do not know how long it will take until a new release is made, but upstream responded very quick when I reported the issue.

References:
bug 574918
http://people.redhat.com/msnitzer/docs/io-limits.txt
https://ata.wiki.kernel.org/index.php/ATA_4_KiB_sector_issues

Comment 1 Terje Røsten 2010-03-20 09:05:41 UTC
Thanks for the report.

Comment 2 Fedora Update System 2010-03-20 10:45:11 UTC
gdisk-0.6.5-1.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/gdisk-0.6.5-1.fc12

Comment 3 Fedora Update System 2010-03-23 02:07:01 UTC
gdisk-0.6.5-1.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 4 Rod Smith 2010-03-25 01:07:57 UTC
Version 0.6.6 is now available, and fixes some minor bugs in the 0.6.6-pre1 version packaged as 0.6.5-1.

Also, the 0.6.5-1/0.6.6-pre1 version was compiled incorrectly on x86 systems, resulting in spurious reports of damaged GPTs, as in:

 # gdisk /dev/sda
GPT fdisk (gdisk) version 0.6.6-pre1

Caution: invalid backup GPT header, but valid main header; regenerating
backup header from main header.

Warning! One or more CRCs don't match. You should repair the disk!

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: damaged

The disk on which this was run was actually perfectly OK.

The compile problem that creates this error is probably a result of failing to use the -D_FILE_OFFSET_BITS=64 compiler option, as specified in the Makefile. This can be corrected by adding it to the .spec file:

CXXFLAGS="$RPM_OPT_CXX_FLAGS -D_FILE_OFFSET_BITS=64"

The x86_64 version doesn't require this compiler option, but isn't hurt by it, either.

Comment 5 Terje Røsten 2010-03-25 17:53:06 UTC
Thanks for the report Rod, new update in the making.

Comment 6 Fedora Update System 2010-03-25 17:53:31 UTC
gdisk-0.6.6-1.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/gdisk-0.6.6-1.fc12

Comment 7 Fedora Update System 2010-03-25 17:53:36 UTC
gdisk-0.6.6-1.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/gdisk-0.6.6-1.fc13

Comment 8 Fedora Update System 2010-03-25 17:53:40 UTC
gdisk-0.6.6-1.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/gdisk-0.6.6-1.fc11

Comment 9 Rod Smith 2010-03-25 22:14:54 UTC
I've tested the FC12 i686 version, and it seems fine now. Thanks for the quick fix!

Comment 10 Fedora Update System 2010-03-27 00:56:00 UTC
gdisk-0.6.6-1.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 11 Fedora Update System 2010-03-27 00:58:02 UTC
gdisk-0.6.6-1.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 12 Fedora Update System 2010-04-09 04:03:55 UTC
gdisk-0.6.6-1.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.