|
|
A contextual menu item to unmount parttions
As alluded to elsewhere, disktool with the -p option unmounts partitions, but requires the device name rather than the volume name for input. The following script lets you use the volume name:
If you use OnMyCommand, this can be made into a convenient contextual menu item in the Finder as below. You can then select all the partitions you want to unmount simultaneously.
diskutil vs. disktool
With
diskutil unmount device the device can be a volume name.
diskutil vs. disktool
Well that is certainly more straightforward. Thanks. On the off-chance that I was not the only one who did not know that this has been around since Jaguar, Apple Technical Note TN2053 states: 'Supplemented the "disktool" command line tool (which was always intended as a test tool) with a more user-oriented "diskutil" command line tool. (r. 2817377).'
A contextual menu item to unmount parttions
Here is an AppleScript snippet for extracting this name:
Most code has issues with spaces in volume names, or volume names containing other volume names as substrings. The above search pattern matches entire lines of the diskutil listing, then removes the name, to avoid these problems. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.14 seconds |
|