Thread: glabels and GPT
View Single Post
  #1   (View Single Post)  
Old 14th January 2010
Jago Jago is offline
New User
 
Join Date: Jan 2010
Posts: 7
Default glabels and GPT

What is considered the "proper" way to combine using glabel to label disks and GPT partitioning? If I do it like this:

Code:
glabel label -v disk00 /dev/ad1
gpart create -s GPT /dev/ad1
<create partitions>
Then I am guessing that writing out the partition table will overwrite the last sector, deleting the glabel metadata, correct?

So should I instead do this:

Code:
gpart create -s GPT /dev/ad1
<create partitions>
glabel label -v disk00 /dev/ad1
But won't the label overwrite a part of partition data? Or, should I instead do this:

Code:
glabel label -v disk00 /dev/ad1
gpart create -s GPT /dev/label/disk00
<create partitions>
And from that point on, always avoid ever dealing with the disk device directly, only ever accessing and modifying it through the label?
Reply With Quote