6
1
I'm trying to rename the volume name of a mounted ISO image using the command:
diskutil rename /dev/disk15 TEST_DISK_2014_RENAMED
I get the error:
TEST_DISK_2014_RENAMED does not appear to be a valid volume name for its file system
I tried running this with sudo
with the same results.
$ 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
OS Can Be Installed: No
Media Type: Generic
Protocol: Disk Image
SMART Status: Not Supported
Total Size: 84.0 MB (83996672 Bytes) (exactly 164056 512-Byte-Blocks)
Volume Free Space: 0 B (0 Bytes) (exactly 0 512-Byte-Blocks)
Device Block Size: 512 Bytes
Read-Only Media: No
Read-Only Volume: Yes
Ejectable: Yes
Whole: Yes
Internal: No
OS 9 Drivers: No
Low Level Format: Not supported
$ bash --version
:
GNU bash, version 4.3.27(1)-release (x86_64-apple-darwin12.5.0)
Variations:
diskutil rename TEST_DISK_2014 TEST_DISK_2014_RENAMED
diskutil rename /Volumes/TEST_DISK_2014 TEST_DISK_2014_RENAMED
diskutil rename /Volumes/TEST_DISK_2014 /Volumes/TEST_DISK_2014_RENAMED
/Volumes/diskutil rename TEST_DISK_2014 "TEST_DISK_2014_RENAMED"
diskutil rename TEST_DISK_2014 'TEST_DISK_2014_RENAMED'
diskutil rename 'TEST_DISK_2014' 'TEST_DISK_2014_RENAMED'
diskutil rename "TEST_DISK_2014" "TEST_DISK_2014_RENAMED"
Nothing works.
So what's the story? What is the proper syntax? I could find no other examples.
Check out this forum post: http://serverfault.com/questions/361474/is-there-a-way-to-change-a-iso-files-volume-id-from-the-command-line
– vembutech – 2014-11-11T22:11:33.710That's really kludgy. I'd much rather learn do it with diskutil or some other OS X tool. – hmj6jmh – 2014-11-11T22:58:38.237
I tried that script but it didn't change the volume name. It wrote the new name in the specified location but I don't know what it did to the data. In a hex editor, the volume name occurs multiple times in different locations. – hmj6jmh – 2014-11-12T04:48:16.540
In any case, it's not a good idea to mess with the data like that. I think the problem is the ISO format is read-only. Is there a way to make it read-write without making a copy? – hmj6jmh – 2014-11-12T05:08:01.313