Solved GEOM: da0: the secondary GPT table is corrupt or invalid

My Samsung Portable SSD T7 has the following messages that need help to be addressed. I do not have knowledge nor syntax as to how to remedy the issue.

GEOM: da0: the secondary GPT table is corrupt or invalid
GEOM: da0: using the primary only -- recovery suggested.
GEOM: ufsid/674efea7dd15f506: the secondary GPT table is corrupt or invalid.
GEOM: ufsid/674efea7dd15f506: using the primary only -- recovery suggested

Any help will be greatly appreciated. I've been a very happy FreeBSD user since 4.9, but never had this particular issue and the SSD T7 backup device, but now, only available when logged into root. I've always been able to automount it in user. Not any more.

Here is the dmesg message after removing the SSD T7:

ugen0.8: <Samsung PSSD T7> at usbus0 (disconnected)
umass0: at uhub0, port 12, addr 10 (disconnected)
da0 at umass-sim0 bus 0 scbus7 target 0 lun 0
da0: <Samsung PSSD T7 0> s/n S6XBNS0TC15934V detached
(da0:umass-sim0:0:0:0): Periph destroyed
umass0: detached
 
You have just to run gpart recover da0.

This typically occurs when you expand the size of the geom inside your disk.
This is because gpart (8) is looking for a copy of the GPT table at the exact end of the geom da0.

Your dmesg message is totally normal.
 
You have just to run gpart recover da0.

This typically occurs when you expand the size of the geom inside your disk.
This is because gpart (8) is looking for a copy of the GPT table at the exact end of the geom da0.

Your dmesg message is totally normal.
I was so happy for you time and support in this saga. This is the message after I carried out you suggestion:
gpart: arg0 'da0': Invalid argument
I'm thinking that the ssd card has a different set of setting like da0, da0sp1 or something like those and all I ever see is this when is mounted 674efea7dd15f506.
 
Run gpart show and see your boot devices then substitute.

I'm thinking that the ssd card has a different set of setting like da0, da0sp1 or something like those
No those are partitions on da0, this runs at disk level.

Possible disk devices:
gpart recover ada0
gpart recover nda0

Your message above clearly shows da0
 
It should have been da0 according to what you wrote.
It may change depending on what is currently connected to your machine, it could be da1 for instance.

Run gpart show
That's the thing to do in order to select the target GEOM.

Don't be afraid, even if you target the wrong one, there will be no consequence other than:
# gpart recover da0
da0 recovering is not needed
 
Well, I simply chucked the drive and ordered, which will be hear tomorrow, a SanDisk 500GB portable SSD - Up to 1050MB/s, USB-C, USB 3.2 Gen2, IP65 Water and Dust Resistance, Update Firmware - External Solid State Drive - SDSSDE61-500G-G25.
Now what syntax will I need to use to have it be comatible with FreeBSD 14.1? I'm assuming that it will not simply plug and be available to down load my files. By the way I was able to finally get the Samsung T7 to open and copy the files to my FreeBSD 14.1 computer.
I appreciate all BSD'ers who are willing to help me out. Over the years you folks have been a fantastic group who are willing to take the time to help eachother out. Blessings to All!! As you can tell I use my FreeBSD computer as simply a desk top computer. I have loved BSD since 4.9 even though it has been quit a journey, but I love it.
 
Well, I simply chucked the drive and ordered, which will be hear tomorrow, a SanDisk 500GB portable SSD - Up to 1050MB/s, USB-C, USB 3.2 Gen2, IP65 Water and Dust Resistance, Update Firmware - External Solid State Drive - SDSSDE61-500G-G25.
Now what syntax will I need to use to have it be comatible with FreeBSD 14.1? I'm assuming that it will not simply plug and be available to down load my files. By the way I was able to finally get the Samsung T7 to open and copy the files to my FreeBSD 14.1 computer.
I appreciate all BSD'ers who are willing to help me out. Over the years you folks have been a fantastic group who are willing to take the time to help eachother out. Blessings to All!! As you can tell I use my FreeBSD computer as simply a desk top computer. I have loved BSD since 4.9 even though it has been quit a journey, but I love it.
Solved
 
Back
Top