Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Sep 2017 14:11:25 +0000
From:      carol.roberts@protechnologyaccounts.net
To:        freebsd-bugs@freebsd.org
Subject:   Linux users list
Message-ID:  <001a113d74eaecd2990559b3aad5@google.com>

next in thread | raw e-mail | index | archive | help
PGRpdiBkaXI9Imx0ciI+PHAgY2xhc3M9Ik1zb05vcm1hbCIgIA0Kc3R5bGU9Im1hcmdpbi1ib3R0
b206MC4wMDAxcHQ7bGluZS1oZWlnaHQ6bm9ybWFsIj48c3BhbiAgDQpzdHlsZT0iZm9udC1zaXpl
OjEwcHQ7Zm9udC1mYW1pbHk6JnF1b3Q7VGltZXMgTmV3ICANClJvbWFuJnF1b3Q7LHNlcmlmO2Nv
bG9yOnJnYigzMSw3OCwxMjEpIj5IZWxsbyB0aGVyZSw8YnI+DQo8YnI+DQpNaWdodCB3YW50IHRv
IGtub3cgd2hldGhlciB5b3UgYXJlIGtlZW4gb24gb2J0YWluaW5nwqA8L3NwYW4+PGZvbnQgIA0K
Y29sb3I9IiMxZjRlNzkiIGZhY2U9IlRpbWVzIE5ldyBSb21hbiwgc2VyaWYiPjxzcGFuICANCnN0
eWxlPSJmb250LXNpemU6MTMuMzMzM3B4Ij48Yj5MaW51eDwvYj48L3NwYW4+PHNwYW4gIA0Kc3R5
bGU9ImZvbnQtc2l6ZToxMHB0Ij7CoExlYWRzIGZvciB5b3VyDQptYXJrZXRpbmcgZWZmb3J0Ljwv
c3Bhbj48L2ZvbnQ+PC9wPg0KDQo8cCBjbGFzcz0iTXNvTm9ybWFsIiAgDQpzdHlsZT0ibWFyZ2lu
LWJvdHRvbTowLjAwMDFwdDtsaW5lLWhlaWdodDpub3JtYWwiPjxzcGFuICANCnN0eWxlPSJmb250
LXNpemU6MTJwdDtmb250LWZhbWlseTpBcmlhbCxzYW5zLXNlcmlmIj7CoDxzcGFuPjwvc3Bhbj48
L3NwYW4+PC9wPg0KDQo8cCBjbGFzcz0iTXNvTm9ybWFsIiBzdH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0czwvYj48L3NwYW4+PC9wPg0KDQo8cCBjbGFzcz0iTXNvTm9ybWFsIiAgDQpzdHlsZT0i
bWFyZ2luLWJvdHRvbTowLjAwMDFwdDtsaW5lLWhlaWdodDpub3JtYWwiPjxzcGFuICANCnN0eWxl
PSJmb250LXNpemU6MTBwdDtmb250LWZhbWlseTomcXVvdDtUaW1lcyBOZXcgIA0KUm9tYW4mcXVv
dDssc2VyaWY7Y29sb3I6cmdiKDMxLDc4LDEyMSkiPsKgPGJyPg0KVG8gb3B0LW91dCByZXNwb25z
ZSAmIzM5O1VuLVN1YnNjcmliZSYjMzk7IGluIHRoZSBzdWJqZWN0IGxpbmU8L3NwYW4+PHNwYW4g
IA0Kc3R5bGU9ImZvbnQtc2l6ZToxMnB0O2ZvbnQtZmFtaWx5OkFyaWFsLHNhbnMtc2VyaWYiPsKg
IMKgIMKgIMKgIMKgwqA8c3Bhbj48L3NwYW4+PC9zcGFuPjwvcD48L2Rpdj4NCjxwPiZuYnNwOzwv
cD48YSBzdHlsZT0nZGlzcGxheTogYmxvY2s7IG1hcmdpbjogMzJweCAwIDQwcHggMDsgcGFkZGlu
ZzogIA0KMTBweDsgZm9udC1zaXplOiAxZW07IHRleHQtYWxpZ246IGNlbnRlcjsgYm9yZGVyOiAw
OyBib3JkZXItdG9wOiAxcHggc29saWQgIA0KZ3JheTsgJyBocmVmPSdodHRwczovL2dvby5nbC8y
a3NkUnYnPnBvd2VyZWQgYnkgR1NNLiBGcmVlIG1haWwgbWVyZ2UgYW5kICANCmVtYWlsIG1hcmtl
dGluZyBzb2Z0d2FyZSBmb3IgR21haWwuPC9hPg0K
From owner-freebsd-bugs@freebsd.org  Thu Sep 21 14:23:09 2017
Return-Path: <owner-freebsd-bugs@freebsd.org>
Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 by mailman.ysv.freebsd.org (Postfix) with ESMTP id B86BAE076DF
 for <freebsd-bugs@mailman.ysv.freebsd.org>;
 Thu, 21 Sep 2017 14:23:09 +0000 (UTC)
 (envelope-from bugzilla-noreply@freebsd.org)
Received: from kenobi.freebsd.org (kenobi.freebsd.org
 [IPv6:2001:1900:2254:206a::16:76])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (Client did not present a certificate)
 by mx1.freebsd.org (Postfix) with ESMTPS id A6E2680302
 for <freebsd-bugs@FreeBSD.org>; Thu, 21 Sep 2017 14:23:09 +0000 (UTC)
 (envelope-from bugzilla-noreply@freebsd.org)
Received: from bugs.freebsd.org ([127.0.1.118])
 by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v8LEN9IF008093
 for <freebsd-bugs@FreeBSD.org>; Thu, 21 Sep 2017 14:23:09 GMT
 (envelope-from bugzilla-noreply@freebsd.org)
From: bugzilla-noreply@freebsd.org
To: freebsd-bugs@FreeBSD.org
Subject: [Bug 222425] GPT broken after "gpart backup ada0 | gpart restore -F
 ada1"
Date: Thu, 21 Sep 2017 14:23:09 +0000
X-Bugzilla-Reason: AssignedTo
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: Base System
X-Bugzilla-Component: bin
X-Bugzilla-Version: 11.1-RELEASE
X-Bugzilla-Keywords: 
X-Bugzilla-Severity: Affects Only Me
X-Bugzilla-Who: ae@FreeBSD.org
X-Bugzilla-Status: New
X-Bugzilla-Resolution: 
X-Bugzilla-Priority: ---
X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org
X-Bugzilla-Flags: 
X-Bugzilla-Changed-Fields: 
Message-ID: <bug-222425-8-zFZ2wkCJUb@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-222425-8@https.bugs.freebsd.org/bugzilla/>
References: <bug-222425-8@https.bugs.freebsd.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-BeenThere: freebsd-bugs@freebsd.org
X-Mailman-Version: 2.1.23
Precedence: list
List-Id: Bug reports <freebsd-bugs.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-bugs>,
 <mailto:freebsd-bugs-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-bugs/>;
List-Post: <mailto:freebsd-bugs@freebsd.org>
List-Help: <mailto:freebsd-bugs-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-bugs>,
 <mailto:freebsd-bugs-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Thu, 21 Sep 2017 14:23:09 -0000

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222425

--- Comment #1 from Andrey V. Elsukov <ae@FreeBSD.org> ---
(In reply to chris from comment #0)
> There is a problem with the MBR after running "gpart backup ada0 | gpart
> restore -F ada1" and because of this it's not possible to boot using this
> disk.
>=20
> This issue happens only with FreeBSD 11.1 and maybe 11.0. It doesn't happ=
en
> with 10.3.

In the forum you told that you changed the hardware, so I'm not sure that t=
his
statement is fully correct. You need to check that 10.3 works on the same
hardware, because this can be just  BIOS issue or something like.

> How to reproduce the issue:
>=20
> gpart backup ada0 | gpart restore -F ada1
> gpart bootcode -b /boot/pmbr -p /boot/gptboot -i 1 ada1
>=20
> Then boot using ada1 I see:
>=20
> gptboot: invalid primary GPT header
> gptboot: invalid backup GPT header
> gptboot: unable to load GPT

There were no changes in the gpart(8), but boot code was changed.
Did you try to swap disks? I.e. connect ada0 that works to the place of ada=
1?
Does it still work? Does ada1 connected to the port of ada0 works?

> The only workaround is copying the MBR from ada0 to ada1:
>=20
> gpart backup ada0 | gpart restore -F ada1

This should create on the ada1 similar to ada0 partition table, what if you=
 try
to do `true > ada1` after that? This command will invoke "GEOM retaste", an=
d if
GPT is invalid at this time, this means that something wrong happens and ta=
ble
was not written to the disk. If GPT is valid, this means that something wro=
ng
happens after reboot.=20

Also, if you reboot from ada0 and partition tables from both disks will be
detected correctly, this means that something wrong with bootcode/BIOS.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001a113d74eaecd2990559b3aad5>