Chapter 6 Working With Disks and Volumes 51
Enabling Journaling When You Erase a Disk
You can use the newfs_hfs command to set up and enable journaling when you erase
a disk.
To enable journaling when erasing a disk:
$ newfs_hfs -J -v volname device
Disabling Journaling
To disable journaling:
$ diskutil disableJournal volume
Erasing, Partitioning, and Formatting Disks
You can use the diskutil command to partition, erase, or format a disk. For more
information, see the man page.
Setting Up a Case-Sensitive HFS+ File System
You can use the diskutil tool to format a drive for case-sensitive HFS.
Note: Volumes you format as case-sensitive HFS are also journaled.
To format a Mac OS Extended volume as case-sensitive HFS+:
$ sudo diskutil eraseVolume "Case-sensitive HFS+" newvolname volume
For more information, see the man page for diskutil.
Parameter Description
volname
The name you want the new disk volume to have.
device
The device name of the disk.
Parameter Description
volume
The volume name or device name of the volume.
Parameter Description
newvolname
The name given to the reformatted, case-sensitive volume.
volume
The path to the existing volume to be reformatted.
For example, /Volumes/HFSPlus
LL2354.book Page 51 Monday, October 20, 2003 9:47 AM