2.4.7 name

Command: name number name

Sets the name for the partition number (GPT, Mac, MIPS and PC98 only). The name can be placed in quotes. And depending on the shell may need to also be wrapped in single quotes so that the shell doesn’t strip off the double quotes.


(parted) name 2 'Secret Documents'

Set the name of partition 2 to ‘Secret Documents’.