09.11.2012 Views

Mac OS X Server Command-Line Administration - Apple

Mac OS X Server Command-Line Administration - Apple

Mac OS X Server Command-Line Administration - Apple

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Enabling Journaling When You Erase a Disk<br />

You can use the newfs_hfs command to set up and enable journaling when you erase<br />

a disk.<br />

To enable journaling when erasing a disk:<br />

$ newfs_hfs -J -v volname device<br />

Parameter Description<br />

volname The name you want the new disk volume to have.<br />

device The device name of the disk.<br />

Disabling Journaling<br />

To disable journaling:<br />

$ diskutil disableJournal volume<br />

Parameter Description<br />

volume The volume name or device name of the volume.<br />

Erasing, Partitioning, and Formatting Disks<br />

You can use the diskutil command to partition, erase, or format a disk. For more<br />

information, see the man page.<br />

Setting Up a Case-Sensitive HFS+ File System<br />

You can use the diskutil tool to format a drive for case-sensitive HFS.<br />

Note: Volumes you format as case-sensitive HFS are also journaled.<br />

To format a <strong>Mac</strong> <strong>OS</strong> Extended volume as case-sensitive HFS+:<br />

$ sudo diskutil eraseVolume "Case-sensitive HFS+" newvolname volume<br />

Parameter Description<br />

newvolname The name given to the reformatted, case-sensitive volume.<br />

volume The path to the existing volume to be reformatted.<br />

For example, /Volumes/HFSPlus<br />

For more information, see the man page for diskutil.<br />

Chapter 6 Working With Disks and Volumes 51

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!