Bug 787 - fdisk fails when disk has no partition table
Summary: fdisk fails when disk has no partition table
Status: RESOLVED WORKSFORME
Alias: None
Product: Busybox
Classification: Unclassified
Component: Standard Compliance (show other bugs)
Version: unspecified
Hardware: PC Windows
: P5 minor
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-09 09:43 UTC by Jacob Gorm Hansen
Modified: 2010-04-06 00:34 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.