![]() ![]() Once you are done with your work, you may need to unmount the ISO image. I see that from the results each device has a parameter Mountpoint = '/Volumes/My Disk' if the "My Disk" is mounted - or - Mountpoint = '' if unmounted.īasically I am looking to write a script that looks to see if a partition on my external disk is mounted or not, if it is mounted - then the disk is unmounted - and if it is unmounted the disk is mounted. Double-click on the Disk option to list the contents of the image file. ![]() Forced detachment of a stuck volume can cause damage to the file system or the data it contains or an inability to attach a new volume using the same device name, unless you reboot the instance. and looking at the result of disktool -l To guard against the possibility of data loss, take a snapshot of your volume before attempting to unmount it. Hey there, sorry if this is a bit too much of a noob question, trying to get to grips with a simple bash script - but i have done ZERO bash scripting.īasically having worked out how to mount and unmount disks using:ĭisktool -m *device* & disktool -e *device*
0 Comments
Leave a Reply. |