OSX 10.9 Maveric not exist mkfs.vfat.
dosfstools - now orphaned Linux version utilities for making and checking MS-DOS FAT filesystems.
OSX users using diskfstool? hdutil and hdiutil.
Problems
- Not worked ioctl(dev, HDIO_GETGEO, &geometry) unable to get drive geometry
- geometry.sectors and geometry.heads you may get from nondirect calculation (sample in the [diskdev-cmds] (http://www.opensource.apple.com/source/diskdev_cmds/diskdev_cmds-557.3.1/)), but geometry.start needed for set hidden_sectros not available
Porting
- Based on last version dosfstools 3.0.26
- Add some linux headers
- Remove atari support
- Remove fatlabel utility
- mkfs.fat not worked on real drives - only with images -C option and loop devices
Install with homebrew
$brew create https://github.com/sv99/dosfstools-osx.git
require "formula"
class Dosfstools < Formula
homepage "https://github.com/sv99/dosfstools-osx"
url "https://github.com/sv99/dosfstools-osx.git"
sha1 ""
def install
system "make", "install"
end
end