diff options
author | ae <ae@FreeBSD.org> | 2016-01-10 13:53:57 +0000 |
---|---|---|
committer | ae <ae@FreeBSD.org> | 2016-01-10 13:53:57 +0000 |
commit | 09204e767089d0d9f6f376551f8c1b9a2eade3ee (patch) | |
tree | 51330d250c62d20d1fbc444485aa78943e7ce23d /sbin/geom/class/part | |
parent | fdecbaeff59263df5ae9b87a90264a9eebdec0a3 (diff) | |
download | FreeBSD-src-09204e767089d0d9f6f376551f8c1b9a2eade3ee.zip FreeBSD-src-09204e767089d0d9f6f376551f8c1b9a2eade3ee.tar.gz |
MFC r292057:
Make detection of GPT a bit more reliable.
When we are detecting a partition table and didn't find PMBR, try to
read backup GPT header from the last sector and if it is correct,
assume that we have GPT.
Differential Revision: https://reviews.freebsd.org/D4282
MFC r292058:
Remove a note about damaged PMBR. Now GPT will be detected automatically
with such corruption.
Relnotes: yes
Diffstat (limited to 'sbin/geom/class/part')
-rw-r--r-- | sbin/geom/class/part/gpart.8 | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/sbin/geom/class/part/gpart.8 b/sbin/geom/class/part/gpart.8 index 3421ba0..ba579bf 100644 --- a/sbin/geom/class/part/gpart.8 +++ b/sbin/geom/class/part/gpart.8 @@ -24,7 +24,7 @@ .\" .\" $FreeBSD$ .\" -.Dd July 14, 2015 +.Dd December 10, 2015 .Dt GPART 8 .Os .Sh NAME @@ -1107,15 +1107,6 @@ and .Cm recover are the only operations allowed on corrupt tables. .Pp -If the first sector of a provider is corrupt, the kernel can not detect GPT -even if the partition table itself is not corrupt. -The protective MBR can be rewritten using the -.Xr dd 1 -command, to restore the ability to detect the GPT. -The copy of the protective MBR is usually located in the -.Pa /boot/pmbr -file. -.Pp If one GPT header appears to be corrupt but the other copy remains intact, the kernel will log the following: .Bd -literal -offset indent @@ -1330,7 +1321,6 @@ and /sbin/gpart backup ada0 | /sbin/gpart restore -F ada1 ada2 .Ed .Sh SEE ALSO -.Xr dd 1 , .Xr geom 4 , .Xr boot0cfg 8 , .Xr geom 8 , |