#8
|
||||
|
||||
Forcing the unmount - an attempt.
Yes -- "erase then copy" erases, then copies.
The transcript you'd change is "BuildTranscript.plist". The specific part is under "shouldEraseTarget", around line 40. Note to lurkers -- skip this part. It's scary. You don't need to know this stuff to use SD! Nothing to see here. Move along! What I'd basically do is: Force the unmount Remount Perform the same erase logic with diskutil Finally, I'd remove the slow erase logic, and replace with a relatively friendly error. So, the appropriate section would look something like (NOTE: UNTESTED, but should be right): Code:
JNLD=$(diskutil info SDTargetVolumeMount.'Path | grep -q -F Journaled; echo $?);diskutil force unmount "SDTargetVolume.Device";diskutil mount "SDTargetVolume.Device";diskutil eraseVolume HFS+ SDTargetVolume.'Name SDBootableFlag SDTargetVolumeMount.'Path >&1 2>&1 | grep -q -F "Could not unmount"; if [ "$?" == "0" ]; then echo "Could not erase " SDTargetVolume.'Name "."; exit 2; fi; if [ $JNLD -eq 0 ]; then diskutil enableJournal "SDTargetVolume.Device"; fi Hope that's reasonably easy to follow! Let me know if it works.
__________________
--Dave Nanian |
Currently Active Users Viewing This Thread: 2 (0 members and 2 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
My copy script says SuperDuper! should ignore a folder, but it's copied. Why? | dnanian | Frequently Asked Questions | 0 | 12-24-2004 02:42 PM |
Another review: MaMUGs looks at SuperDuper! | dnanian | General | 0 | 01-26-2004 09:26 AM |
Problem running Backup - all files script? Here's a solution! | dnanian | General | 0 | 01-12-2004 04:32 PM |