Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Apr 2017 18:26:40 -0700
From:      Lee Brown <leeb@ratnaling.org>
To:        freebsd-geom@freebsd.org
Subject:   glabel problem
Message-ID:  <CAFPNf59g=Yo9oB16nf9pAE8wHKB_29aD0AZWsi%2BecKiC_4kEJQ@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
I just got a no-name 1TB usb stick.  Under FreeBSD11.0, I can see the
device:

root@apron:~ # geom disk list da2
Geom name: da2
Providers:
1. Name: da2
   Mediasize: 1073741824000 (1.0T)
   Sectorsize: 512
   Mode: r0w0e0
   descr: (null)
   ident: (null)
   rotationrate: unknown
   fwsectors: 63
   fwheads: 255

root@apron:~ # glabel label -v TEST da2
Metadata value stored on da2.
Done.

but
root@apron:~ # glabel status da2
root@apron:~ #

I zero'd the first and last 1MB and re-tried the label operation, but all
the sectors were still zero.
I tried to use the usbdump utility and I can see *something* is written.

gpart appears to do the right thing.
newfs on the raw device appears to do the right thing.
geli init complains it can't find the metadata.

Can anybody clue me into how I can get this to work correctly?  I need to
glabel it so I can devd an event, it needs to be geli encrypted/checksummed
within the label.

Thanks for any help -- lee



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFPNf59g=Yo9oB16nf9pAE8wHKB_29aD0AZWsi%2BecKiC_4kEJQ>