Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Jan 2011 03:33:08 +0100
From:      Nicolai Mollerup <nicolai.mollerup@gmail.com>
To:        stable@freebsd.org
Subject:   Re: geom_label, fstab without device names & swap partition?
Message-ID:  <AANLkTikvS33PcKuip9wcqqtdN_JA4e7bzy3ePt%2B10Tr1@mail.gmail.com>
In-Reply-To: <4D309A81.7040808@rdtc.ru>
References:  <628423291.20110112210201@serebryakov.spb.ru> <AANLkTin=ug708a9c3WozMLhqxQ4=FiC-nvah3RRdj4F1@mail.gmail.com> <AANLkTinu6Y9_Vn3mtnsC3L7YSVes%2BgTd7YyZ=R139hN=@mail.gmail.com> <AANLkTi=cq2fXSD%2Bn4%2BXiVuetB0tY%2BGbaZXwV2x4Az=A3@mail.gmail.com> <AANLkTimupkfzmMZrPvOnLo8=Jw_62k3gu4==UuaY%2BKdp@mail.gmail.com> <4D309A81.7040808@rdtc.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
>>
>> Well the thing is I like use glabel in place of a fs label as it makes
>> my devices all names something similar
>> /dev/label/thingie rather then have /dev/ufs/rootfs and
>> /dev/label/swap =A0, I'll have /dev/label/rootfs /dev/label/swap.
>> Also I dont think you can easily change a live label either .
>
> "tunefs -L" changes UFS label (/dev/ufs/label) and does not use extra 512=
 bytes of space.
>

If you read the original post, swap is mentioned. UFS labels doesnt
really work with swap partitions.

Therefore glabel is the more obvious choice for simple names to
partitions, and honestly 512 bytes on harddrive...

I would recommend using gpart to create partitions and labels, and
then put them in a gmirror for future convenience.

#gmirror status
Name    Status  Components
mirror/root  COMPLETE gpt/root0
mirror/var  COMPLETE  gpt/var0
mirror/tmp  COMPLETE  gpt/tmp0
mirror/usr  COMPLETE gpt/usr0
mirror/swap  COMPLETE  gpt/swap0

This way its very easy to add an extra harddrive and add that to the
mirror if needed later on.

/Nicolai



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTikvS33PcKuip9wcqqtdN_JA4e7bzy3ePt%2B10Tr1>