Bug 1027630

Summary: PARTED should check the GPT MBR validity
Product: [Fedora] Fedora Reporter: Ondrej <ovalousek>
Component: partedAssignee: Brian Lane <bcl>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 19CC: bcl
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-07 23:47:05 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ondrej 2013-11-07 08:49:44 UTC
Description of problem:
Parted should offer LBA-0 validity check of the GUID partition table check as per
http://en.wikipedia.org/wiki/GUID_Partition_Table
-i.e. MBR should begin with string "EFI PART"
Reason:
Some BIOSes refuse EFI boot if the MBR is not compliant

Version-Release number of selected component (if applicable):
all

How reproducible:
easily

Steps to Reproduce:
1. Take Win-8 EFI booting PC
2. Install Fedora 19 in legacy mode - LBA-0 gets destroyed as the installer overwrites MBR
3. Win-8 can not boot any longer

Expected results:
If we run parted from a recovery CD, we should be able to fix MBR

Comment 1 Brian Lane 2014-10-07 23:47:05 UTC
There are too many ways for things to be damaged. parted isn't a repair tool and really can't be expected to cover these kinds of cases. Whatever broke the MBR should stop doing that.