cd /usr/ports; grep -R blkid *
...
sysutils/e2fsprogs/pkg-plist:man/man8/blkid.8.gz
sysutils/e2fsprogs/pkg-plist:sbin/blkid
blkid
is including the pkg-plist file of sysutils/e2fsprogs. Looking at that port, it uses the library you installed automatically. So you don't need to install that package you installed as it will be used automatically. Just pkg install e2fsprogs
should be enough.This is the information I am trying to get. I can't get the version I have installed on FreeBSD to work properly. Try blkid on a Linux system to see what info it returns.The blkid program is the command-line interface to working with the
libblkid(3) library. It can determine the type of content (e.g.
filesystem or swap) that a block device holds, and also the
attributes (tokens, NAME=value pairs) from the content metadata (e.g.
LABEL or UUID fields).
gpart list
is what you are looking for as it also shows the label, UUID, and file system type. If you need different forms of parsable output, try out each of the following and see what works: sysctl kern.geom.confxml
sysctl kern.geom.confdot
sysctl kern.geom.conftxt
Indeed. It seems to be missing. At least on my 10.0-STABLE (r267684).balanga said:I have just noticed that the list option for gpart is not described in the FreeBSD man pages.
Can someone confirm this?
gpart list
can be used to retrieve the same information given by the Linux "blkid" command. sysctl kern.geom.conftxt
sysctl kern.geom.conftxt
can you help me to understand how can I extract them from the output of this command, that is show them on the monitor or again store them in a text file ?grep(1), awk(1), sed(1), any combination of these, etc. There are plenty of examples in the EXAMPLE sections of these manual pages and online.Because I'm only interested in some of the fields shown by the "sysctl kern.geom.conftxt", can you help me to understand how can I extract them from the output of this command, that is show them on the monitor or again store them in a text file ?