How can an exterior disk be initialized, partitioned and formatted in macos Sonoma commandline?
I attempted trying out my exterior drive with the command diskutil listing
:
...
/dev/disk2 (exterior, bodily):
#: TYPE NAME SIZE IDENTIFIER
0: *2.0 TB disk2
I can see that there is no such thing as a partition or file system, I verified this with diskutil information disk2
:
...
Quantity Identify: Not relevant (no file system)
Mounted: Not relevant (no file system)
File System: None
...
I simply want one large partition formatted as APFS, I suppose APFS needs to be the detault today. I do know I might have carried out it with Disk Utility, however I’m wanting to do that on the commandline.