• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Unmounting a volume
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unmounting a volume


  • Subject: Re: Unmounting a volume
  • From: Oakman <email@hidden>
  • Date: Mon, 23 Feb 2015 14:06:04 -0500

I want to unmount a volume, one of 2 on a hard drive. I have successfully 
unmounted the drive but, of course, this unmounts both volumes:

     do shell script "diskutil unmountDisk " & diskDev

How can I unmount just one volume?

I use this to unmount a volume:
do shell script "diskutil umount  \"volume name\""

And this to mount a volume:
do shell script "diskutil mount  \"volume name\""

As Luther suggested, see the diskutil man page, for more info:


unmount | umount [force] device
Unmount a single volume.  Force will force-unmount the volume
(less kind to any open files; see also umount (8)).


mount [readOnly] [-mountPoint path] device
Mount a single volume. If readOnly is specified, then the
file system is mounted read-only, even if the volume's under-
lying file system and/or device and/or media supports writing;
even the super-user may not write to it; this is the same as
the rdonly option to mount (8).  If a -mountPoint is speci-
fied, then that path, rather than the standard path of /Vol-
umes/VolumeName, will be used as the view into the volume file
content; a directory at that path must already exist.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Unmounting a volume (From: Dave C <email@hidden>)

  • Prev by Date: Re: More volume questions (was: Unmounting a volume)
  • Next by Date: Re: UTC time with milliseconds
  • Previous by thread: Re: More volume questions (was: Unmounting a volume)
  • Next by thread: Re: UTC time with milliseconds
  • Index(es):
    • Date
    • Thread