94 Chapter 7 Working with Disks and Volumes
To enable journaling:
$ diskutil enableJournal
volume
The following example shows journaling being enabled on volume /dev/disk0s10.
$ mount
/dev/disk0s9 on / (local, journaled)
/dev/disk0s10 on /Volumes/OS 9.2.2 (local)
$ sudo fsck_hfs /dev/disk0s10/
** /dev/rdisk0s10
** Checking HFS plus volume.
** Checking extents overflow file.
** Checking Catalog file.
** Checking Catalog hierarchy.
** Checking volume bitmap.
** Checking volume information.
** The volume OS 9.2.2 appears to be OK.
$ diskutil enableJournal /dev/disk0s10
Allocated 8192K for journal file.
Journaling has been enabled on /dev/disk0s10
$ mount
/dev/disk0s9 on / (local, journaled)
/dev/disk0s10 on /Volumes/OS 9.2.2 (local, journaled)
Enabling Journaling When You Erase a Disk
To set up and enable journaling when you erase a disk, use the newfs_hfs tool.
To enable journaling when erasing a disk:
$ newfs_hfs -J -v
volname
device
Disabling Journaling
To disable journaling:
$ diskutil disableJournal
volume
Parameter Description
volume
The volume name or device name of the volume
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
Comments to this Manuals