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
Parameter | Description |
volname | The name you want the new disk volume to have. |
device | The device name of the disk. |
Disabling Journaling
To disable journaling:
$ diskutil disableJournal volume
ParameterDescription
volume | The volume name or device name of the 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
Note: Volumes you format as
To format a Mac OS Extended volume as case-sensitive HFS+:
$ sudo diskutil eraseVolume
Parameter | Description |
newvolname | The name given to the reformatted, |
|
|
volume | The path to the existing volume to be reformatted. |
| For example, /Volumes/HFSPlus |
|
|
For more information, see the man page for diskutil.
Chapter 6 Working With Disks and Volumes
51