I hate to bitch but bitch I must
freebsd at edvax.de
Sat Oct 17 22:10:31 UTC 2009
On Sat, 17 Oct 2009 16:28:18 -0400, PJ <af.gourmet at videotron.ca> wrote:
> From the way things are written, it would appear that one must do tunefs
> before doing glabel and that they are interdependent.
As it has been mentioned ealier and as far as I understood:
"tunefs -L" is for UFS file systems only, while "glabel label"
is for any media.
> But tunefs says to
> do tunefs /home /disk-slice yet glabel is dealing with partitions...
No. Slices aren't involved here. Only partitions can hold
file systems, and that is what labelling is about.
> what does /home supposed to be a specific directory or a partition and
> how does it relate to the disk?
First ofg all, /home is just an arbitrary mount point; in fact,
it is just a directory. The /etc/fstab file is the means that
"connects" this directory to a device (in this case, a disk
partition holding a file system).
For example, if you
# fsck /home
and /home is mounted from /dev/ad0s1g, then the device ad0s1g
will be checked. You CAN ONLY check devices. When you now remove
the entry for /home from /etc/fstab, the command
# fsck /home
will fail. Still, you can check this partition, but you need to
know its exact name, which would make
# fsck /dev/ad0s1g
the correct command.
> And then, how does it relate to glabel?
The glabel can be used on any media, such as FreeBSD's UFS
partitions. Those labels can take the place of the device in
the /etc/fstab file, but so can UFSIDs as well as tunefs -L
labels (for UFS file systems only).
> Manolis seems to have cleared things slightly on how to use glabel, but
> strangely it did not work for me. I am about to try again and will sen
> the fstab and ls disk prinouts as soon as I have another little problem
> sorted out... shortly or tomorrow. Sorry.
Would be interesting.
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
More information about the freebsd-questions