You are not logged in.

#1 2016-03-04 02:57:24

hamhock
Member
Registered: 2015-04-16
Posts: 94

[SOLVED] change a partition's name with gdisk

i have a Gpt partitioned disk.  I recently started getting these journal entries:

Device dev-disk-by\x2dpartlabel-Basic\x5cx20data\x5cx20partition.device \ appeared twice with different sysfs paths 

I would like to change the PARTLABEL via gdisk to eliminate these log entries by using gdisk 'c' command.
when I get to the point to save my changes in gdisk, i get the usual warning:

About to write GPT data. THIS WILL OVERWRITE EXISTING PARTITIONS!!

will the data on this existing partition be safe or will it be lost if I proceed?

Last edited by hamhock (2016-04-23 19:18:47)

Offline

#2 2016-03-04 08:22:18

severach
Member
Registered: 2015-05-23
Posts: 192

Re: [SOLVED] change a partition's name with gdisk

Changing the label won't trash the data. I've done it, and for the same reason you are.

Offline

#3 2016-03-05 21:39:02

hamhock
Member
Registered: 2015-04-16
Posts: 94

Re: [SOLVED] change a partition's name with gdisk

severach wrote:

Changing the label won't trash the data. I've done it, and for the same reason you are.

that's good to hear.  I'll give it a try as soon as I get over my paranoia of doing it.

Offline

#4 2016-03-05 21:59:36

Xabre
Member
From: Serbia
Registered: 2009-03-19
Posts: 749

Re: [SOLVED] change a partition's name with gdisk

You don't have to use gdisk or similar 'overkill' to change partition label.
e2label for ext2/3/4,  dosfslabel for FAT, ntfslabel, and so on for other file systems.

Offline

#5 2016-03-05 22:27:26

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,463

Re: [SOLVED] change a partition's name with gdisk

Xabre wrote:

You don't have to use gdisk or similar 'overkill' to change partition label.
e2label for ext2/3/4,  dosfslabel for FAT, ntfslabel, and so on for other file systems.

That will change the filesystem label. The partlabel is different.

Offline

#6 2016-03-05 23:18:31

Xabre
Member
From: Serbia
Registered: 2009-03-19
Posts: 749

Re: [SOLVED] change a partition's name with gdisk

Hmm, somehow I was convinced that they're the same. Thanks for the correction.

Offline

#7 2016-04-23 19:18:31

hamhock
Member
Registered: 2015-04-16
Posts: 94

Re: [SOLVED] change a partition's name with gdisk

i can confirm that changing a partition's name via gdisk is safe.

Offline

Board footer

Powered by FluxBB