How to change Logical Volume name

My kid did some magic with my Mac and somehow successfully rename the disk name to some weird name.

OS''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''';;;;;;;;;;;;;;;;;;;;     ]\[X

When I tried to rename it back, Finder refused it.

Finder refuse to change name

I tried with diskutil tool but there is no command to change the LV name of a Logical Volume Family.

Dump from the diskutil command:

192-168-1-153:~ werynguyen$ diskutil cs list
CoreStorage logical volume groups (1 found)
|
+-- Logical Volume Group 48AFE413-7A7C-47A2-9D1E-4F09A2788927
    =========================================================
    Name:         OSX
    Status:       Online
    Size:         499113885696 B (499.1 GB)
    Free Space:   18972672 B (19.0 MB)
    |
    +-< Physical Volume B0F241BF-1BB3-4273-BAB4-825D93D4F098
    |   ----------------------------------------------------
    |   Index:    0
    |   Disk:     disk0s2
    |   Status:   Online
    |   Size:     499113885696 B (499.1 GB)
    |
    +-> Logical Volume Family BC9B82C2-A485-4E2A-BBD3-4692684D4DAF
        ----------------------------------------------------------
        Encryption Type:         None
        |
        +-> Logical Volume DF2B66E8-0534-430A-B9F6-5697E4E294B2
            ---------------------------------------------------
            Disk:                  disk1
            Status:                Online
            Size (Total):          498742591488 B (498.7 GB)
            Revertible:            Yes (no decryption required)
            LV Name:               OS''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''';;;;;;;;;;;;;;;;;;;;     ]\[X
            Content Hint:          Apple_HFS

Does anyone know how to fix this? My macOS is 10.12.3 macOS Sierra


Two approaches:

Try using the Volume UUID instead of the name:

diskutil rename LVUUID newName

So, in your case, issue the command:

diskutil rename DF2B66E8-0534-430A-B9F6-5697E4E294B2 OSX


Change it in Get Info

Right click (Command Click) the volume and select Get Info (or press CommandII while selected). Then enter the new name in the "Name & Extension" field.

enter image description here


You should be able to rename the volume with diskutil if it is mounted:

diskutil rename "OS''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''';;;;;;;;;;;;;;;;;;;;     ]\[X" "OSX"

Booted to Recovery Mode, launch Terminal from the menubar > Utilities.

Enter df to check if the CoreStorage volume is mounted:

Filesystem                     512-blocks       Used Available Capacity   iused    ifree %iused  Mounted on
...
/dev/disk2                      132538512   30003784 102534728    23%   3750471 12816841   23%   /Volumes/OS''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''';;;;;;;;;;;;;;;;;;;;     ]\[X
...

If the volume is mounted

diskutil rename /Volumes/OS\' 

hit the tab key here to autocomplete the volume name and add "OSX":

diskutil rename /Volumes/OS\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\ \ \ \ \ \]\\\[X/ "OSX"