On Wed, 13 Mar 2024, Michael van Elst wrote:

On Tue, Mar 12, 2024 at 11:00:02PM -0700, Paul Goyette wrote:

``scsictl sd0 start'' makes a little bit of progress, and claims
to be "fabricating a geometry".  ``gpt show -a sd0'' shows two
partitions (one for NetBSD backups, and one for Windoze backups)

        # gpt show sd0
               start        size  index  contents
                   0           1         PMBR
                   1           1         Pri GPT header
                   2          32         Pri GPT table
                  34        2014         Unused
                2048  4294967296      1  GPT part - NetBSD FFSv1/FFSv2
          4294969344  3518951424      2  GPT part - Windows basic data
          7813920768       49119         Unused
          7813969887          32         Sec GPT table
          7813969919           1         Sec GPT header

That looks fine.

But it does not seem to progress to the discover-wedges process,
and no wedges seem to exist:

        # dkctl sd0 listwedges
        /dev/rsd0: no wedges configured

The wedge autodetection happens when the device attaches (and failed
since the disk was offline). This is different from disklabels that
are fetched by the first opener (and are usually dropped with
the last close, except traditionally for vnd).

You can manually trigger autodetection with

dkctl sd0 makewedges

Yup, that's the magic word.  I used scsictl and dkctl both, and the
external drive appeears normal.  Thanks!


+---------------------+--------------------------+----------------------+
| Paul Goyette (.sig) | PGP Key fingerprint:     | E-mail addresses:    |
| (Retired)           | 1B11 1849 721C 56C8 F63A | p...@whooppee.com    |
| Software Developer  | 6E2E 05FD 15CE 9F2D 5102 | pgoye...@netbsd.org  |
| & Network Engineer  |                          | pgoyett...@gmail.com |
+---------------------+--------------------------+----------------------+

Reply via email to