26 May 2007

format partition as fat16 on mac osx

just in case i forget, in order to partition a disk with a FAT16 partition:

diskutil partitionDisk /Volumes/NDS 1 MBRFormat "MS-DOS FAT16" "NDS" 1000M

that is:

* /Volumes/NDS: the mount point to partition, could also be /dev/disk1
* 1: the number of partitions
* MBRFormat: the partition format, MBR is the usual default for removable storage
* "MS-DOS FAT16": partition type
* "NDS": partition name
* 1000M: 1000 megabytes (size of the partition, if it is the last, it will span to the end of the drive)

You can reply to me about this on Twitter: