View Single Post
  #8  
Old 02-22-2005, 04:22 AM
sjk's Avatar
sjk sjk is offline
Registered User
 
Join Date: May 2004
Location: Eugene
Posts: 252
Thanks for the AppleScript code, Keith.

Here's a shell command example of the method I use to obtain the device node for a volume (e.g. Backup) with diskutil:

% diskutil list | awk '/ Backup / {print $6}'
disk1s5

There's a space before and after the Backup string so it's recognized as a single word to differentiate it from my BackupBoot volume. And to mount it:

% diskutil mount `diskutil list | awk '/ Backup / {print $6}'`
Volume disk1s5 mounted
Reply With Quote