Labeling Partitions with LABEL and PARTLABEL

So working on a system that had incorrect partitioning configured.  In /etc/fstab the partitions were configured with:

but the partitions did not have PARTLABELS set. The LABEL and PARTLABEL can be viewed with:

To set the label property use:

To set the partlabel on a GPT partition first install gdisk:

Then run it on the disk you wish to amend – I’m using sdb but you should change that for your own circumstances:

To change the partlabel enter ‘c’ and provide the label you want to use. Then ‘w’ to write the changes, followed by ‘y’ if you are positive you are amending the correct device.

 

Leave a Reply

  • (will not be published)

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">