Disk UnMount Issue

Hi All,

I have a USB stick with 3 Partitions on it.

I want to create a script that unmount s 2 of them and keeps 1.

However, when i run it, once partition 1 is unmounted which unmounts all of them.

Any help to resolve this is appreciated


-- DISMOUNT DRIVE 
do shell script "diskutil unmountDisk /Volumes/One/"
do shell script "diskutil unmountDisk /Volumes/Three/"

I want Partiton Two to Stay.

Hi,

unmountDisk unmounts always the entire disk. Use unmount instead


-- DISMOUNT DRIVE 
do shell script "diskutil unmount /Volumes/One/"
do shell script "diskutil unmount /Volumes/Three/"


Thanks Stefan