Skip to content
This repository has been archived by the owner on Feb 5, 2021. It is now read-only.
/ osx-fdisk Public archive

fixed version of the fdisk tool included in Mac OS X

Notifications You must be signed in to change notification settings

adriangligor/osx-fdisk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

osx-fdisk

Overview

The fdisk utility included in Mac OS X has the ability to dump the partition table of a block device or image file and reuse it with the -d / -r parameters. Unfortunately, parsing the dump is broken to the point of being unusable.

This patched version of fdisk is based on the sources for the package diskdev_cmds included with Mac OS X 10.8.3. An Xcode project definition is included. It fixes the following bugs:

  • correctly parses partition end information into the right variables
  • correctly calculates the partition offsets of (chained) extended partitions
  • correctly makes the parsed geometry settings take precedence over the parsed start/length fields and avoids LBA correction

Disclaimer

This work comes without any warranty, in fact it could easily wipe your data. Use it with caution!

License

As required, this work is released under the Apple Public Source License.

About

fixed version of the fdisk tool included in Mac OS X

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published