DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD Installation and Upgrading

FreeBSD Installation and Upgrading Installing and upgrading FreeBSD.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   (View Single Post)  
Old 14th January 2010
Jago Jago is offline
New User
 
Join Date: Jan 2010
Posts: 7
Thanked 0 Times in 0 Posts
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
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:26 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick