Disk Assistant




About

Disk Assistant is a simple utility for OS X written as a Ruby script that allows you to mount or unmount a disk using its volume name. It was developed and tested on OS X 10.5. Example usage:

disk_assistant unmount MyVolume

disk_assistant mount MyVolume

I can do that already with Apple’s diskutil. Why would I want this?

You can’t directly mount an unmounted volume by using it’s Volume Name in diskutil. If you want to mount a physical disk in any sort of script, this may help.

Caveats

I wrote this as a learning exercise, and at the time I had no real Ruby experience, and I’m sure there are conventions and design patterns that I’m breaking in this code. No warranty, implied or otherwise, is given with this code. Don’t use it in a nuclear reactor, or your grandma’s life support machine (which I’m sure runs OS X 10.5). Please let me know if there’s any obvious problems or typos.