diskutil rename error: "does not appear to be a valid volume name for its file system"

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.

4

1 Answer

I found the solution on this blog post:

If you are trying to use the terminal in OS X to reformat a volume and you are getting “error: does not appear to be a valid volume name for its file system” – You need to capitalize the name of every letter in the name you are trying to specify like this:

diskutil partitionDisk /dev/disk2 1 MBRFormat "MS-DOS FAT32" EDISON 805.30M` 
1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like