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

Go Back   Shirt Pocket Discussions > SuperDuper! > General

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 01-22-2007, 11:17 PM
zink zink is offline
Registered User
 
Join Date: Jan 2007
Location: Chicago
Posts: 3
Need help unmounting a single partition

Hello:

I'm a new user of SD!... purchased it last night, and already backed up my system (what more could you ask for out of an application like this!). As simple as it was to set up and perform scheduled backups, I have an issue that I know has been brought up in other threads, but I can't seem to find the answer to.

I have an external drive setup and broken down into 3 partitions. 2 of the partitions are used as backup destinations for my 2 internal drives (one drive is dedicated to one partition.) I've set up scheduled backups for these drives in SD!, and all is well... except one thing...scripting a single partition to unmount.

I've implemented the following script, which I snagged from a thread in this forum:

on beforeRunningCopy()
set targetDisk to "HD2Backup"
tell application "Finder"
if not (exists the disk targetDisk) then
try
do shell script "diskutil mount `disktool -l | grep '" & targetDisk & "' | sed 's/.*\\(disk[0-9s]*\\).*/\\1/'`"
end try

repeat while not (exists the disk targetDisk)
delay 1
end repeat
end if
end tell
end beforeRunningCopy

on afterRunningCopy()
set targetDisk to "HD2Backup"
tell application "Finder"
if (exists the disk targetDisk) then
eject targetDisk
delay 2
end if
end tell
end afterRunningCopy


The script works in mounting the targetDisk with no problems.
But, as you can see, the script tells the mounted backup drive (HD2Backup) to "eject". Unfortunately, this doesn't just unmount the single partition. Rather, all partitions within the external drive are unmounted.

I'd like to set up a script to unmount an individual partition. I am extremely inexperienced with AppleScript, so I'm looking to you for help in achieving this function. I appreciate your attention to this...

Kind Regards,
BJ
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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
How big should the backup partition be? jazzdog General 2 01-11-2007 09:18 PM
Resizing Boot Partition back2mac General 1 08-06-2006 10:18 AM
OS on one partition Users on another Icarus General 1 05-17-2006 07:50 AM
Can't Boot from External Partition Goldie General 12 05-06-2005 08:58 AM
Backing up a partition to disk image unmounts that partition kbradnam General 8 02-17-2005 07:42 PM


All times are GMT -4. The time now is 03:32 PM.


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