UFS Disk Labeling Options

bluemotion

New Member


Messages: 2

I'm a FreeBSD newbie, trying to understand how to use disks on FreeBSD.
I have read that Disk Labels can be created using 4 different commands:
[1]tunefs [2]newfs [3]glabel [4]gpart

It is my understanding so far that the "best usage" for each command
(as far as disk labeling is concerned) is as follows:

[1]tunefs -> Used on [EXISTING UFS] file system
[2]newfs -> Used when constructing a [NEW UFS1/2] file system
[3]glabel -> Used to label [SWAP] partition
[4]gpart -> Used for [everything? :|

I find it very difficult to understand what is the most suitable command
to label disks & partitions in various scenarios.

I would greatly appreciate if you could please explain which labeling command
( [1]tunefs [2]newfs [3]glabel [4]gpart ) is most suitable for each scenario?
(perhaps by filling-in the table below)


---------- (Scenario) ----------- MBR / GPT / UFS / swap / FAT / NTFS (file systems)
------------------------------------------------------------------------------------------------------
____NEW FILE SYSTEM
____NEW PARTITION
____NEW DISK
EXISTING FILE SYSTEM
EXISTING PARTITION
EXISTING LABELED DISK

-----------------------------------------------------------------------------------------------------

Thank you!
 
OP
OP
bluemotion

bluemotion

New Member


Messages: 2

I wrote a newbie friendly tutorial about labeling here.
I have read your tutorial before posting my question and I can understand how to use each
of the 4 labeling commands on it's own (and look at each one's 'man' pages if needed)

What is not clear to me is WHEN to use each labeling command.
Put it another way which labeling command [1]tunefs [2]newfs [3]glabel [4]gpart
is most suitable for each scenario?
(as illustrated in the table below)

---------- (Scenario) ----------- MBR / GPT / UFS / swap / FAT / NTFS (file systems)
------------------------------------------------------------------------------------------------------
____NEW FILE SYSTEM
____NEW PARTITION
____NEW DISK
EXISTING FILE SYSTEM
EXISTING PARTITION
EXISTING LABELED DISK

-----------------------------------------------------------------------------------------------------

Hope someone could clarify this.

Many Thanks!
 
Top