#!/bin/sh # Written by Alexander Strange # Property of iThink Software [ -z $PRINTED_NOTICE ] && echo This does not work on volumes with spaces in their names at the moment\. export PRINTED_NOTICE=yes [ `id -u` -ne 0 ] && echo You are not root\; please enter your password if asked\. && exec sudo $0 [ `id -u` -eq 0 ] && echo You are now root, enabling journals for vol in `mount -t hfs | grep -v journaled | awk '{print $1}'` ; do \ echo Trying \'diskutil enableJournal $vol\' ; \ diskutil enableJournal $vol || true ; \ done echo Done\.