Disk became invisible to gpart due to integrity check failed

Hi,

I recently installed NetBSD to my spare second SSD to test it out for the first time and I noticed that I can't view that disk anymore from FreeBSD and I found a solution for that.

This is from dmesg(8)
Code:
# dmesg -a | grep ada3
ada3 at ahcich5 bus 0 scbus3 target 0 lun 0
ada3: <INTENSO SSD W0714A0> ACS-2 ATA SATA 3.x device
ada3: Serial Number xxxxxxxxxx
ada3: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 512bytes)
ada3: Command Queueing enabled
ada3: 228936MB (468862128 512 byte sectors)
GEOM: ada3: the secondary GPT table is corrupt or invalid.
GEOM: ada3: using the primary only -- recovery suggested.
GEOM_PART: integrity check failed (ada3, GPT)

gpart(8) is documented the kern.geom.part.check_integrity value which can help us see this disk on FreeBSD.

Code:
     kern.geom.part.check_integrity: 1
             This variable controls the behaviour of metadata integrity
             checks.  When integrity checks are enabled, the PART GEOM class
             verifies all generic partition parameters obtained from the disk
             metadata.  If some inconsistency is detected, the partition table
             will be rejected with a diagnostic message: GEOM_PART: Integrity
             check failed (provider, scheme).

I set it to 0 in /boot/loader.conf and then rebooted my system and voila! gpart(8) started to see my disk in a corrupted state then I destroyed it completely due to my WiFi card isn't being supported by NetBSD.

I hope that thread will help you, Thanks for reading!
 
Back
Top