glabel

Add label to a drive in FreeBSD

sudo glabel label -v external_disk /dev/da0
Metadata value stored on /dev/da0.
Done.

glabel list
Geom name: ada0p1
Providers:
1. Name: gpt/gptboot0
Mediasize: 524288 (512K)
Sectorsize: 512
Stripesize: 0
Stripeoffset: 20480
Mode: r0w0e0
secoffset: 0
offset: 0
seclength: 1024
length: 524288
index: 0
Consumers:
1. Name: ada0p1
Mediasize: 524288 (512K)
Sectorsize: 512
Stripesize: 0
Stripeoffset: 20480
Mode: r0w0e0

Geom name: ada1p1
Providers:
1. Name: gpt/gptboot1
Mediasize: 524288 (512K)
Sectorsize: 512
Stripesize: 0
Stripeoffset: 20480
Mode: r0w0e0
secoffset: 0
offset: 0
seclength: 1024
length: 524288
index: 0
Consumers:
1. Name: ada1p1
Mediasize: 524288 (512K)
Sectorsize: 512
Stripesize: 0
Stripeoffset: 20480
Mode: r0w0e0

Geom name: da0
Providers:
1. Name: label/external_disk
Mediasize: 2000398933504 (1.8T)
Sectorsize: 512
Mode: r0w0e0
secoffset: 0
offset: 0
seclength: 3907029167
length: 2000398933504
index: 0
Consumers:
1. Name: da0
Mediasize: 2000398934016 (1.8T)
Sectorsize: 512
Mode: r0w0e0

Leave a Reply

Your email address will not be published. Required fields are marked *