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

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 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

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

 

 

For more information, see the man page for diskutil.

Chapter 6 Working With Disks and Volumes

51

Page 51
Image 51
Apple oxs Erasing, Partitioning, and Formatting Disks, Enabling Journaling When You Erase a Disk, Disabling Journaling