On Feb 23, 2015, at 10:30 AM, Dave C wrote:
Two more questions re. this task:
1. How do I eject the volume if it’s in use—rather, how do I detect (detect the error when it fails to eject?) that it’s in use and wait a bit and try again?
2. How do I mount a volume whose drive shows up in Disk Utility and whose “twin” volume (the other volume on that drive ) is already mounted? (The volume in question is grayed-out when I want to mount it.)
I think you need to look at this command ...
DISKUTIL(8) BSD System Manager's Manual DISKUTIL(8)
NAME
diskutil -- modify, verify and repair local disks
SYNOPSIS
diskutil [quiet] verb [options]
DESCRIPTION
diskutil manipulates the structure of local disks. It provides informa-
tion about, and allows the administration of, the partitioning schemes,
layouts, and formats of disks. This includes hard disks, solid state
disks, optical discs, CoreStorage volumes, and AppleRAID sets. It gener-
ally manipulates whole volumes instead of individual files and directo-
ries.