shellscript conditional to check for external disk
RW
fbsd06 at mlists.homeunix.com
Sun Jun 22 13:18:34 UTC 2008
On Sun, 22 Jun 2008 11:13:15 +0200
Roland Smith <rsmith at xs4all.nl> wrote:
> On Sun, Jun 22, 2008 at 12:22:07AM +0100, RW wrote:
> > On Sun, 22 Jun 2008 00:47:31 +0200
> > Roland Smith <rsmith at xs4all.nl> wrote:
> >
> >
> > > Use glabel(8) to give the device an unique label. There is no
> > > telling which device /dev/da0s1d is pointing to! After labeling
> > > you can check for /dev/<fstype>/<yourlabel>, which should be
> > > unique.
> >
> > I think that should be:
> >
> > /dev/label/<yourlabel>
>
> That is only for non-filesystem labels, according to glabel(8):
>
> "This class also provides volume label detection for file
> systems. Those labels cannot be set with glabel, but must be set
> with the appropriate file system utility,
> ...
> Non file-system labels are created in the directory /dev/label/."
but you did write: "Use glabel(8) to give the device an unique
label", so it would be a non-filesystem label.
More information about the freebsd-questions
mailing list