Parted/name
From Get docs
Next: print, Previous: mkpart, Up: Command explanations [Index]
2.4.6 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.Example:
(parted) name 2 'Secret Documents'
Set the name of partition 2 to ‘Secret Documents’.