Check for mounted volume via terminal?
if [/Volumes/Backup is mounted ]
umount /Volumes/Backup
fi
PowerMac G5 (10.5.8) / MBP 15" / MBP 17" / Mini, Mac OS X (10.6.2)
You can make a difference in the Apple Support Community!
When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.
When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.
PowerMac G5 (10.5.8) / MBP 15" / MBP 17" / Mini, Mac OS X (10.6.2)
Brian S. Campbell wrote:
I want to write a simple bash script that will unmount a volume if it's already mounted. How do i check to see if the volume is mounted?
if [[ $(mount | awk '$3 == "/Volumes/Backup" {print $3}') != "" ]]; then
echo /Volumes/Backup is mounted
fi
Check for mounted volume via terminal?