The final commands should be modified appropriate to your disk and partition. Enter:
diskutil list
Check the number of disk and partition. Then X and Y in diskXsY parameters in commands from further steps must be replaced with appropriate values (for example disk2s1)
Format:
First it is required to unmount volume with
sudo diskutil unmount diskXsY
Then format the partition:
sudo diskutil eraseVolume "<filesystem>" "LABEL" /dev/diskXsY
or format the whole disk:
sudo diskutil eraseDisk "<filesystem>" "LABEL" /dev/diskX
Possible values for <filesystem>:
UFSD_NTFS - Windows NT File System*
UFSD_EXTFS - Linux Extended File System 2**
UFSD_EXTFS3 - Linux Extended File System 3**
UFSD_EXTFS4 - Linux Extended File System 4**
* requires NTFS for Mac
** requires extFS for Mac
"LABEL" - specify volume label.
To change partition table format, please add the following value after "LABEL":
GPTFormat - GUID Partition Table
MBRFormat - Master Boot Record
APMFormat - Apple Partition Map
OS9Drivers - Apple Partition Map (for Mac OS 9)
To verify the volume:
diskutil verifyVolume /dev/diskXsY
To repair the volume:
diskutil repairVolume /dev/diskXsY
Comments
0 comments
Please sign in to leave a comment.