Shirt Pocket Discussions  
    Home netTunes launchTunes SuperDuper! Buy Now Support Discussions About Shirt Pocket    

Go Back   Shirt Pocket Discussions > SuperDuper! > General
FAQ Community Calendar Today's Posts Search

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #8  
Old 03-02-2005, 08:18 PM
dnanian's Avatar
dnanian dnanian is offline
Administrator
 
Join Date: Apr 2001
Location: Weston, MA
Posts: 14,923
Send a message via AIM to dnanian
Exclamation 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
Note that I didn't use hdiutil, because it's documented for use with images, not disks (even though it seemed to work for you).

Hope that's reasonably easy to follow! Let me know if it works.
__________________
--Dave Nanian
Reply With Quote
 


Currently Active Users Viewing This Thread: 2 (0 members and 2 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -4. The time now is 04:04 AM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.