Enabling journaling using diskutil or newfs_hfs, Disabling journaling using diskutil – Apple Mac OS X Server (version 10.2.3 or later) User Manual
Page 613

Tools for Advanced Administrators
613
5
To disable journaling, select the Information tab, then click Remove Journaling.
Enabling Journaling Using diskutil or newfs_hfs
You can use diskutil or newfs_hfs from the command line to enable journaling.
To enable journaling using command-line tools:
1
Log in to the server whose disk you want to set up for journaling as an administrator.
2
Make sure the server is in a quiescent state.
3
Open the Terminal application.
4
Run fsck_hfs with the -f and -n options to make sure the disk is free from errors.
For example, to verify /dev/disk0s11, type “fsck_hfs -f -n /dev/disk0s11”.
5
To convert a disk to a journaled volume without erasing it, conduct step 6. To erase a volume,
then format it with journaling, conduct step 7.
6
To convert a disk to a journaled volume, run diskutil using the enableJournal option and
identify the volume you want to convert.
For example, to enable journaling for the root volume, type “sudo /usr/sbin/diskutil
enableJournal / ”.
To enable journaling for a volume called MyDisk, type “sudo /usr/sbin/diskutil enableJournal
/Volumes/MyDisk”.
7
To format a new volume with journaling enabled, first make sure that you have saved any
data on the volume you do not want to be erased. Then use the -J option of newfs_hfs.
For example, to make a journaled volume named Foo on device /dev/disk0s11, type
“newfs_hfs -J -v Foo /dev/disk0s11”.
Disabling Journaling Using diskutil
You can disable journaling from the Terminal application by using diskutil.
To disable journaling using diskutil:
1
Log in to the server with the journaling disk as an administrator.
2
Make sure the server is in a quiescent state.
3
Open the Terminal application.
4
Type the diskutil command, using the disableJournal option, and identify the volume for
which you want journaling disabled.
For example, to disable journaling for the root volume, type “sudo /usr/sbin/diskutil
disableJournal / ”.
LL0395.Book Page 613 Wednesday, November 20, 2002 11:44 AM