[Bug 222425] GPT broken after "gpart backup ada0 | gpart restore -F ada1"
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu Sep 21 16:31:41 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=222425
--- Comment #7 from chris at cretaforce.gr ---
Yes after booting from ada0, "gpart show" shows all partitions without CORRUPT
word:
=> 40 7814037088 ada0 GPT (3.6T)
40 1024 1 freebsd-boot (512K)
1064 8388608 2 freebsd-ufs (4.0G)
8389672 33554432 3 freebsd-swap (16G)
41944104 33554432 4 freebsd-ufs (16G)
75498536 134217728 5 freebsd-ufs (64G)
209716264 67108864 6 freebsd-ufs (32G)
276825128 1610612736 7 freebsd-ufs (768G)
1887437864 5926599256 8 freebsd-ufs (2.8T)
7814037120 8 - free - (4.0K)
=> 40 7814037088 ada1 GPT (3.6T)
40 1024 1 freebsd-boot (512K)
1064 8388608 2 freebsd-ufs (4.0G)
8389672 33554432 3 freebsd-swap (16G)
41944104 33554432 4 freebsd-ufs (16G)
75498536 134217728 5 freebsd-ufs (64G)
209716264 67108864 6 freebsd-ufs (32G)
276825128 1610612736 7 freebsd-ufs (768G)
1887437864 5926599256 8 freebsd-ufs (2.8T)
7814037120 8 - free - (4.0K)
I wrote bootcode from 10.3:
root at server2:/home/10.3 # pwd
/home/10.3
root at server2:/home/10.3 # restore -i -f /home2/dump/root.dump
restore > add *
restore > extract
You have not read any tapes yet.
If you are extracting just a few files, start with the last volume
and work towards the first; restore can quickly skip tapes that
have no further files to extract. Otherwise, begin with volume 1.
Specify next volume #: 1
set owner/mode for '.'? [yn] y
restore >
root at server2:/home/10.3 #
root at server2:/home/10.3 # gpart bootcode -b /home/10.3/boot/pmbr -p
/home/10.3/boot/gptboot -i 1 ada1
partcode written to ada1p1
bootcode written to ada1
root at server2:/home/10.3 #
The same problem.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list