Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Jul 2019 18:43:49 +0900 (JST)
From:      Hiroki Sato <hrs@allbsd.org>
To:        nao_k@din.or.jp
Cc:        freebsd-users-jp@freebsd.org
Subject:   [FreeBSD-users-jp 96417] Re:  =?iso-2022-jp?b?Z3BhcnQbJEIkRxsoQk9wZXJhdGlvbiBub3QgcGVybWl0?= =?iso-2022-jp?b?dGVk?=
Message-ID:  <20190728.184349.1970441927620905383.hrs@allbsd.org>
In-Reply-To: <20190723145437.75F6.ECFBC552@din.or.jp>
References:  <20190723145437.75F6.ECFBC552@din.or.jp>

next in thread | previous in thread | raw e-mail | index | archive | help
----Security_Multipart(Sun_Jul_28_18_43_49_2019_124)--
Content-Type: Text/Plain; charset=iso-2022-jp
Content-Transfer-Encoding: 7bit

$B:4F#$G$9!#(B

KUNIYOSHI <nao_k@din.or.jp> wrote
  in <20190723145437.75F6.ECFBC552@din.or.jp>:

na> $B!!(Bgpart$B$G!"(BOperation not permitted$B%(%i!<$,=P$F$7$^$$$^$7$?!#(B
na> $B!!?tF|D4$Y$F$_$F$b860x$i$7$-$b$N$KC)$jCe$1$^$;$s$G$7$?!#(B
na> $B!!860x$K?4Ev$?$jEy$"$l$P65$($F$/$@$5$$!#$h$m$7$/$*4j$$$7$^$9!#(B
(snip)
na> $B!!(Bzfs$B$N%P!<%8%g%s$b>e$,$C$?$h$&$@$C$?$N$G!"(Bzpool upgrade$B$b$7$F$_$?$H$3$m!"(B
na>
na> # gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada8
na> # gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada9
na>
na> $B!!$NN>J}$G!"(B
na>
na> gpart: /dev/ada8p1: Operation not permitted
na> gpart: /dev/ada9p1: Operation not permitted
na>
na> $B!!$H$J$C$F$7$^$$$^$7$?!#(B
na>
na> $B!!(Bkern.geom.debugflags$B$O!"LdBj$J$/(B0x10$B$K$J$C$F$$$^$9!#(B

 $B$3$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(3) -> mirror/boot(4)

 $B%i%s%/(B 1 $B$H$O!";R$K2?$b;}$?$J$$(B GEOM $B$G$9!#(B
 $BJ*M}%I%i%$%V$KBP1~$9$k(B GEOM $B$NB?$/$O!"%i%s%/(B 1 $B$K$J$j$^$9!#(B

 $B$7$?$,$C$F!"(Bada8 $B$K%"%/%;%9$9$k(B gpart bootcode -b $B$O(B
 $B@.8y$7!"(Bada8p1 $B$K%"%/%;%9$9$k(B gpart bootcode -p $B$O<:GT$7$^$9!#(B

na> #  gpart bootcode -p /boot/gptzfsboot -i 1 ada8
na> #  gpart bootcode -p /boot/gptzfsboot -i 1 ada9
na>
na> $B!!$3$3$,(BNG$B$G$7$?!#(B

 $B$3$N9=@.$G$O!"<!$N$h$&$K$7$F(B mirror/boot $B$K(B
 $BD>@\=q$-9~$`0J30$KJ}K!$O$J$$$h$&$K;W$$$^$9!#(B

 # dd if=/boot/gptzfsboot of=/dev/mirror/boot

 gmirror $B$r;HMQ$7$F$$$k:]$K!"(Bdebugflags=16 $B$r;H$C$?(B
 $B2<0L(B GEOM $B%W%m%P%$%@$ND>@\A`:n$r@bL@$7$F$$$kJ8=q$,(B
 $B$$$/$D$+$"$k$N$G$9$,!"(B
 $B$3$l$,2DG=$J$N$O!"%i%s%/(B 1 $B$N%W%m%P%$%@$r;H$C$F(B
 $BD>@\(B gmirror $B$r9=@.$7$F$$$k;~$@$1$G$9!#(B

-- Hiroki

----Security_Multipart(Sun_Jul_28_18_43_49_2019_124)--
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----

iEYEABECAAYFAl09blUACgkQTyzT2CeTzy0jrACfYn2ZHYJ+8Ukjn7Ac0R01e3Sp
68QAoJAFcJxr/LMqWdIBlimvci4tSmh9
=B2Mw
-----END PGP SIGNATURE-----

----Security_Multipart(Sun_Jul_28_18_43_49_2019_124)----



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