Bug 787

Summary: fdisk fails when disk has no partition table
Product: Busybox Reporter: Jacob Gorm Hansen <jacobg>
Component: Standard ComplianceAssignee: unassigned
Status: RESOLVED WORKSFORME    
Severity: minor CC: busybox-cvs
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Host: Target:
Build:

Description Jacob Gorm Hansen 2009-12-09 09:43:22 UTC
When trying to create a partition table on a disk that was previously all zero, fdisk fails with an error. This makes it impossible to ever get a partition table installed.

The correct and compatible behavior would be to possibly print a warning, then proceed to the normal disk UI with an initial empty partition table.
Comment 1 Denys Vlasenko 2010-04-06 00:34:23 UTC
I just tested fdisk on a totally zeroed out 100M image file. It works.