Last login: Wed Jul 19 10:34:06 on ttys000
C8:2A:14:48:19:4B:~ Utente$ diskutil umount force disk1s4
Volume Sierra on disk1s4 force-unmounted
C8:2A:14:48:19:4B:~ Utente$ diskutil eraseVolume disk1s4
Usage: diskutil eraseVolume format name MountPoint|DiskIdentifier|DeviceNode
Completely erase a disk (partition or whole), laying down a new file system
volume. Ownership of the affected disk is required. Format is the specific
file system personality name (or alias) you want to erase it as (JHFS+, etc.).
Name is the (new) volume name (subject to file system naming restrictions), or
can be specified as %noformat% to skip initialization (to skip newfs). You
cannot erase the boot volume. A format of "Free Space" will cause removal
of the partition.
Example: diskutil eraseVolume JHFS+ UntitledHFS /Volumes/SomeDisk
C8:2A:14:48:19:4B:~ Utente$ diskutil eraseVolume disk1s5
Usage: diskutil eraseVolume format name MountPoint|DiskIdentifier|DeviceNode
Completely erase a disk (partition or whole), laying down a new file system
volume. Ownership of the affected disk is required. Format is the specific
file system personality name (or alias) you want to erase it as (JHFS+, etc.).
Name is the (new) volume name (subject to file system naming restrictions), or
can be specified as %noformat% to skip initialization (to skip newfs). You
cannot erase the boot volume. A format of "Free Space" will cause removal
of the partition.
Example: diskutil eraseVolume JHFS+ UntitledHFS /Volumes/SomeDisk
C8:2A:14:48:19:4B:~ Utente$ diskutil resizeVolume disk1s2 0b
Resizing to full size (fit to fill)
Started partitioning on disk1s2 clone
Error: -69743: The new size must be different than the existing size
C8:2A:14:48:19:4B:~ Utente$