3

I guess it IS but I didn't find any explicit statement that changing the name does not affect the data in the partition in the parted documentation and since I could loose a lot of data I want to know this for sure.

I am talking of course about the option name NUMBER NAME.

2 Answers2

2

The documentation you linked to says:

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.

Example:

      (parted) name 2 'Secret Documents'

Set the name of partition 2 to `Secret Documents'.

So of course it works with GPT partitions; it explicitly said so.

Michael Hampton
  • 252,907
1

If you are renaming your GPT partitions you shouldn't lose any data, (aside from the usual risk of disk errors while writing) but if you defined your mounts in your fstab by PARTLABEL, you have to update your fstab.

A good explanation for the different methods of defining can be found here: https://wiki.archlinux.org/index.php/fstab

Stechi
  • 11