gpart strangeness

Eugene Grosbein eugen at grosbein.net
Tue Aug 21 03:34:37 UTC 2018


21.08.2018 2:15, Mike Tancsa wrote:

> I was trying to create a single partition on a 16G mSata drive and
> whenever I add a partition, all of a sudden the secondary GPT partion is
> borked.  Any idea whats going on here ?
> 
> 
> 
> 0# gpart destroy -F ada0
> ada0 destroyed
> 0# gpart create -s GPT ada0
> ada0 created
> 0# gpart add -t freebsd-ufs ada0
> GEOM: diskid/DISK-DEF30753136101678326: the secondary GPT table is
> corrupt or invalid.
> GEOM: diskid/DISK-DEF30753136101678326: using the primary only --
> recovery suggested.
> ada0p1 added
> 0# gpart list ada0
> Geom name: ada0
> modified: false
> state: OK
> fwheads: 16
> fwsectors: 63
> last: 31277191
> first: 40
> entries: 128
> scheme: GPT
> Providers:
> 1. Name: ada0p1
>    Mediasize: 16013901824 (15G)
>    Sectorsize: 512
>    Stripesize: 0
>    Stripeoffset: 20480
>    Mode: r0w0e0
>    efimedia: HD(1,GPT,2256d7c5-a4ad-11e8-aa7c-000db94b5a84,0x28,0x1dd4060)
>    rawuuid: 2256d7c5-a4ad-11e8-aa7c-000db94b5a84
>    rawtype: 516e7cb6-6ecf-11d6-8ff8-00022d09712b
>    label: (null)
>    length: 16013901824
>    offset: 20480
>    type: freebsd-ufs
>    index: 1
>    end: 31277191
>    start: 40
> Consumers:
> 1. Name: ada0
>    Mediasize: 16013942784 (15G)
>    Sectorsize: 512
>    Mode: r0w0e0
> 
> 0#

Did you look to "dmesg -a" output for additional hints?
What is system version?


More information about the freebsd-stable mailing list