[ad_1]
I’ve quite a lot of exterior exhausting drives with a number of partitions every.
Since getting a brand new Macbook Professional and updating to Monterey, operating diskutil unmountDisk on two of those HDs fails with an error message of kind Unmount of disk5 failed: no less than one quantity couldn't be unmounted.
I anticipate to see this error when some course of is utilizing the disk (therefore my earlier query). Nevertheless, operating lsof prints nothing, whatever the arguments I give it, e.g.,
> lsof /dev/disk5
> lsof /dev/disk5s*
> lsof /dev/disk5s2
> lsof /Volumes/Partition1
It’s only for sure disks that diskutil unmountDisk offers this error; different disks unmount simply high quality. And even the disks that give an error might be ejected in Finder as typical (no have to force-eject or something).
One factor that each of the disks in query have in frequent is that one in every of their partitions is a Time Machine backup. This backup is from a unique pc (not the one I’m operating these instructions on). I do not know why this may matter, however maybe it does.
Additionally, diskutil unmount works on the person partitions. I may even unmount each partition on a disk with diskutil unmount disk5s2, and so forth., however the try to run diskutil unmountDisk disk5 nonetheless fails with the identical error message. (I am unsure whether or not this even actually issues, because it appears I ought to be capable of safely unplug the HD after unmounting all of its partitions.)
[ad_2]
