我正在尝试使用以下命令重命名已安装 ISO 映像的卷名:
diskutil rename /dev/disk15 TEST_DISK_2014_RENAMED
Run Code Online (Sandbox Code Playgroud)
我收到错误:
TEST_DISK_2014_RENAMED does not appear to be a valid volume name for its file system
Run Code Online (Sandbox Code Playgroud)
我尝试sudo以相同的结果运行它。
$ diskutil info /dev/disk15:
Device Identifier: disk15
Device Node: /dev/disk15
Part of Whole: disk15
Device / Media Name: Apple read/write Media
Volume Name: TEST_DISK_2014
Escaped with Unicode: TEST_DISK_2014
Mounted: Yes
Mount Point: /Volumes/TEST_DISK_2014
Escaped with Unicode: /Volumes/TEST_DISK_2014
File System Personality: UDF
Type (Bundle): udf
Name (User Visible): Universal Disk Format (UDF)
Content (IOContent): None …Run Code Online (Sandbox Code Playgroud)