[haiku-bugs] Re: [Haiku] #10298: Creating GPT partition maps results in a "General system error"

  • From: "kallisti5" <trac@xxxxxxxxxxxx>
  • Date: Thu, 18 Jun 2015 20:22:16 -0000

#10298: Creating GPT partition maps results in a "General system error"
----------------------------------------+----------------------------
Reporter: kallisti5 | Owner: axeld
Type: bug | Status: new
Priority: normal | Milestone: Unscheduled
Component: Partitioning Systems/GPT | Version: R1/Development
Resolution: | Keywords:
Blocked By: | Blocking:
Has a Patch: 0 | Platform: All
----------------------------------------+----------------------------

Comment (by kallisti5):

Details of a test 100MB disk per linux gdisk:

{{{
$ gdisk test.raw
GPT fdisk (gdisk) version 0.8.10

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

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

Found invalid MBR and corrupt GPT. What do you want to do? (Using the
GPT MAY permit recovery of GPT data.)
1 - Use current GPT
2 - Create blank GPT

Your answer: 1

Command (? for help): r

Recovery/transformation command (? for help): p
Disk test.raw: 204800 sectors, 100.0 MiB
Logical sector size: 512 bytes
Disk identifier (GUID): 82009838-FFFF-FFFF-3898-0082FFFFFFFF
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 204766
Partitions will be aligned on 8-sector boundaries
Total free space is 1981 sectors (990.5 KiB)

Number Start (sector) End (sector) Size Code Name
1 40 202791 99.0 MiB EB00

Recovery/transformation command (? for help): ?
b use backup GPT header (rebuilding main)
c load backup partition table from disk (rebuilding main)
d use main GPT header (rebuilding backup)
e load main partition table from disk (rebuilding backup)
f load MBR and build fresh GPT from it
g convert GPT into MBR and exit
h make hybrid MBR
i show detailed information on a partition
l load partition data from a backup file
m return to main menu
o print protective MBR data
p print the partition table
q quit without saving changes
t transform BSD disklabel partition
v verify disk
w write table to disk and exit
x extra functionality (experts only)
? print this menu

Recovery/transformation command (? for help): v

Caution: The CRC for the backup partition table is invalid. This table may
be corrupt. This program will automatically create a new backup partition
table when you save your partitions.

Problem: The secondary header's self-pointer indicates that it doesn't
reside
at the end of the disk. If you've added a disk to a RAID array, use the
'e'
option on the experts' menu to adjust the secondary header's and partition
table's locations.

Problem: GPT claims the disk is larger than it is! (Claimed last usable
sector is 204766, but backup header is at
0 and disk size is 204800 sectors.
The 'e' option on the experts' menu will probably fix this problem

Identified 3 problems!

Recovery/transformation command (? for help): i
Using 1
Partition GUID code: 42465331-3BA3-10F1-802A-4861696B7521 (Haiku BFS)
Partition unique GUID: 00000000-0000-0000-0000-000000000000
First sector: 40 (at 20.0 KiB)
Last sector: 202791 (at 99.0 MiB)
Partition size: 202752 sectors (99.0 MiB)
Attribute flags: 0000000000000000
Partition name: ''

}}}

--
Ticket URL: <https://dev.haiku-os.org/ticket/10298#comment:4>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: