Date: Tue, 19 Apr 2016 21:58:05 +0900 From: Tomoaki AOKI <junchoon@dec.sakura.ne.jp> To: freebsd-users-jp@freebsd.org Cc: maruyama@ism.ac.jp Subject: [FreeBSD-users-jp 95789] Re: =?iso-2022-jp?b?GyRCJVEhPCVGJSMlNyVnJXMkLBsoQiAyIBskQiREGyhC?= =?iso-2022-jp?b?GyRCOm4kbCReJDskcxsoQg==?= Message-ID: <20160419215805.1af77a5ee57c7723aababe2f@dec.sakura.ne.jp> In-Reply-To: <ydl60vfhswy.fsf@indra.ism.ac.jp> References: <ydl60vfhswy.fsf@indra.ism.ac.jp>
next in thread | previous in thread | raw e-mail | index | archive | help
$B@DLZ(B@$BL>8E20$G$9!#(B $B$6$C$H(Bpmbr$B$H(Bgptboot$B$N%=!<%9$r<P$aFI$_$7$?DxEY$G$9$,!"(Bpmbr$B$O(B freebsd-boot$B!"(Bgptboot$B$O(Bfreebsd-ufs$B$N(BGUID$B$,@_Dj$5$l$?%Q!<%F%#(B $B%7%g%s$rC5$7!"$=$l0J30$OCf?H$r8+$b$7$^$;$s!#(B $B=>$C$F!"(Bfreebsd$B$N(BGUID$B$,IU$$$?!J(BBSD label$B$rFbJq$9$k!K%Q!<%F%#(B $B%7%g%s$O40A4$K%9%k!<$5$l$F$7$^$$$^$9!#(B On Mon, 18 Apr 2016 23:51:09 +0900 maruyama@ism.ac.jp ($B4];3D>>;(B) wrote: > $BLnCf(B $BMM(B > > $B4];3$G$9!#M-Fq$&!#(B > > $B;d$O=EBg$JA0Ds$r=q$-K:$l$F$$$?$h$&$G$9!#$9$Y$F$O(B Legacy Bios $B%V!<%H$G$N(B > $BOC$G$9!#>.6b4]$5$s$O!">\:Y$J%O!<%I%&%'%"$N>r7o$r=R$Y$F$$$^$;$s$,!"H`$b(B > Legacy BIOS$B%V!<%H$r;H$C$F$$$k$H;W$$$^$9$N$G!"$3$N%9%l%C%I$G$O$=$l$G==J,(B > $B$@$H9M$($F$$$^$7$?!#(B > > $B0J2<$=$N$D$b$j$GFI$s$G$/$@$5$$!#(B > > $B$^$:;d<+?H$N<B837k2L$r=q$-$^$9!#(B > > >> # gpart create -s GPT ada0 > >> # gpart add -t freebsd-boot -s 40 ada0 > >> # gpart bootcode -b /boot/pmbr -p /boot/gptboot -i 1 ada0 > >> # gpart add -t freebsd -s 260G ada0 > >> # gpart create -s BSD -n 10 ada0s2 > >> # gpart add -s 5g -t freebsd-ufs ada0s2 > >> # gpart add -s 2g -t freebsd-swap ada0s2 > >> # gpart add -s 50g -t freebsd-ufs ada0s2 > >> # gpart add -s 2g -t freebsd-ufs ada0s2 > >> # gpart add -s 50g -t freebsd-ufs ada0s2 > >> # gpart add -s 41g -t freebsd-ufs ada0s2 > >> # gpart add -t freebsd -s 260G ada0 > >> # gpart create -s BSD -n 10 ada0s3 > >> # gpart add -s 5g -t freebsd-ufs ada0s3 > >> # gpart add -s 2g -t freebsd-swap ada0s3 > >> # gpart add -s 50g -t freebsd-ufs ada0s3 > >> # gpart add -s 2g -t freebsd-ufs ada0s3 > >> # gpart add -s 50g -t freebsd-ufs ada0s3 > >> # gpart add -s 41g -t freebsd-ufs ada0s3 > >> > >> $B$G(B ada0s2a $B$K(B freebsd $B$rF~$l$F$*$1$P5/F0$7$^$;$s$+$M!)(B > > $B$3$l!"BLL\$G$7$?!#(B-t freebsd $B$G:n$C$?%9%i%$%9$+$i$O5/F0$G$-$J$$$H$$$&7k(B > $BO@$G$9!#(BUFS$B%Q!<%F%#%7%g%s$+$i5/F0$9$k$?$a$K$O!"(BUFS$B$r(B -t freebsd-ufs $B$G:n$C(B > $B$?%Q!<%F%#%7%g%s$KF~$l$F$*$/I,MW$,$"$k$H$$$&$3$H$G$9!#(B > > $B0J2<$A$g$C$HD9$/$J$j$^$9$,!"<B837P2a$r:Y$+$/=q$-$^$9!#<B83MQ6u$-%G%#%9%/(B > $B$O3NJ]$G$-$J$+$C$?$N$G!"(B8G$B%P%$%H(BUSB$B%a%b%j$r;H$$$^$7$?!#$D$^$j(B da0 $B$G$9!#(B > $BGc$C$?;~$N>uBV$G!"(B > > # gpart show da0 > => 63 15124929 da0 MBR (7.2G) > 63 8001 - free - (3.9M) > 8064 15116928 1 !12 (7.2G) > > $B$D$^$j$O(BMBR$B%9%-!<%`!"(BMSDOS$B$K%U%)!<%^%C%H$5$l$F$$$k$N$G!"(B > > gpart delete -i 1 da0 > gpart destroy da0 > gpart create -s GPT da0 > gpart add -t freebsd-boot -s 40 da0 > gpart bootcode -b /boot/pmbr -p /boot/gptboot -i 1 da0 > gpart add -t freebsd -s 4G da0 > gpart create -s BSD da0s2 > gpart add -t freebsd-ufs da0s2 > gpart add -t freebsd da0 > gpart create -s BSD da0s3 > gpart add -t freebsd-ufs da0s3 > > $B$H$9$k$H(B > > # gpart show da0 > => 34 15124925 da0 GPT (7.2G) > 34 8190 - free - (4.0M) > 8224 40 1 freebsd-boot (20K) > 8264 16344 - free - (8.0M) > 24608 8388608 2 freebsd (4.0G) > 8413216 6701056 3 freebsd (3.2G) > 15114272 10687 - free - (5.2M) > > # gpart show da0s2 > => 0 8388608 da0s2 BSD (4.0G) > 0 8372224 1 freebsd-ufs (4.0G) > 8372224 16384 - free - (8.0M) > > # gpart show da0s3 > => 0 6701056 da0s3 BSD (3.2G) > 0 6684672 1 freebsd-ufs (3.2G) > 6684672 16384 - free - (8.0M) > > # ls -alg /dev/da0* > crw-rw-rw- 1 root operator 0xce 4$B7n(B 18 16:30 /dev/da0 > crw-rw-rw- 1 root operator 0xcf 4$B7n(B 18 16:50 /dev/da0p1 > crw-rw-rw- 1 root operator 0xd0 4$B7n(B 18 16:50 /dev/da0s2 > crw-rw-rw- 1 root operator 0xd1 4$B7n(B 18 16:50 /dev/da0s2a > crw-rw-rw- 1 root operator 0xd2 4$B7n(B 18 16:50 /dev/da0s3 > crw-rw-rw- 1 root operator 0xd3 4$B7n(B 18 16:50 /dev/da0s3a > > $B$H$J$j!"(B > > # newfs /dev/da0s2a > /dev/da0s2a: 4088.0MB (8372224 sectors) block size 32768, fragment size > 4096 > using 7 cylinder groups of 626.09MB, 20035 blks, 80256 inodes. > super-block backups (for fsck_ffs -b #) at: > 192, 1282432, 2564672, 3846912, 5129152, 6411392, 7693632 > > $B$G!"$3$3$KB>$GF0$$$F$$$k(BPC-BSD10.2 $B$N%k!<%H0J2<$r(B restore $B$7$F;n$7$^$7$?(B > $B$,!"(BUSB$B$+$i$N5/F0$O<:GT$7$F!"FbB!%G%#%9%/$+$i$N5/F0$K$J$C$F$7$^$$$^$7$?!#(B > $B$3$3$G!"(Bda0s2a $B$r(B da0p2 $B$K$9$jBX$($k!"$D$^$j(B > > gpart delete -i 2 da0 > gpart add -t freebsd-ufs -b 24608 -s 8388608 da0 > gpart show da0 > > $B$H$d$C$F(B type freebsd $B$@$C$?$b$N$r(B type freebsd-ufs $B$KD>$7$F$7$^$C$F(B > > # gpart show da0 > => 34 15124925 da0 GPT (7.2G) > 34 8190 - free - (4.0M) > 8224 40 1 freebsd-boot (20K) > 8264 16344 - free - (8.0M) > 24608 8388608 2 freebsd-ufs (4.0G) > 8413216 6701056 3 freebsd (3.2G) > 15114272 10687 - free - (5.2M) > > # gpart show da0p2 > => 0 8388608 da0p2 BSD (4.0G) > 0 8372224 1 freebsd-ufs (4.0G) > 8372224 16384 - free - (8.0M) > > $B$H$9$k$H!":#EY$O(B boot $B$O@.8y$7$^$9!#(B > > $B$D$^$j!"@DLZ$5$s$,=q$$$F$*$i$l$?(B > > >$B$?$@!"8=>u$G$O(Bgptboot$B$O%I%i%$%VFb$N5/F02DG=$J(BUFS$B$N$&$A:G$b@hF,B&$N%Q!<(B > >$B%F%#%7%g%s!"(Bgptzfsboot$B$G$OF1$8$/:G$b@hF,B&$N(BZFS$B%W!<%k$+$i$7$+5/F0$G$-(B > >$B$J$$@)Ls$,$"$j$^$9!#(B > > $B$,873J$K<i$i$l$F$$$F!"$=$l$O%Q!<%F%#%7%g%s(B($B%9%i%$%9(B)$BFb$N%G!<%?$N9=B$$K$h$C(B > $B$F$$$k$N$G$O$J$/!"(B gpart add $B%3%^%s%I$G;H$C$?(B -t $B%*%W%7%g%s$N0z?t$,(B > freebsd-ufs $B$+(B freebsd $B$+!"$H$$$&0c$$$K$h$k$b$N$G$9!#(B > > >gptboot$B$O:G=i$K8+$D$+$C$?(B($B0lHVHV9f$N>.$5$$(B)freebsd-ufs$B%Q!<%F%#%7%g%s(B > >$B$+$i5/F0$7$^$9$,!"B>$N%Q!<%F%#%7%g%s$+$i5/F0$7$?$$>l9g$O!"(B > > gpart set a bootme -i 3 ada0 > >$B$N$h$&$K(Bgpart$B%3%^%s%I$N(Bset$B%*%W%7%g%s$r;H$C$F%V!<%H$7$?$$%Q!<%F%#%7%g%s$K(B > >bootme$BB0@-$rIU$1$k;v$G!"$=$N%Q!<%F%#%7%g%s$+$i5/F0$5$l$^$9!#(B > > gpart set -a bootme -i 2 da0 > > $B$H$d$C$F(B > > [root@indra{189}] ~# gpart show da0 > => 34 15124925 da0 GPT (7.2G) > 34 8190 - free - (4.0M) > 8224 40 1 freebsd-boot (20K) > 8264 16344 - free - (8.0M) > 24608 8388608 2 freebsd [bootme] (4.0G) > 8413216 6701056 3 freebsd (3.2G) > 15114272 10687 - free - (5.2M) > > $B$H$7$F$_$^$7$?$,!"$d$O$j(B type freebsd $B$G$O(B boot $B$G$-$^$;$s$G$7$?!#(B > > $B0zMQ$,A08e$7$F62=L$G$9$,!"(B > > >$B$?$@!"(Bgptboot$B$O(BUFS Label$B9=B$$r8+$F$$$J$+$C$?$H5-21$7$F$$$^$9(B($BMW3NG'(B)$B!#(B > > $B;d$N<B837k2L$+$i?dB,$9$k$H!"8+$F$$$J$$$G$7$g$&$M!#(Btype freebsd $B$O(Bboot > process$B$G$OL5;k$9$k!"$H$$$&$3$H$G$9$7!"(B type freebsd-ufs $B$J$i(BLabel$B8+$J$/(B > $B$F$b(Bmount$B$G$-$^$9$+$i!#(B > > $B7k6I(B GPT $B%9%-!<%`$G(B ada0s2 adas2a $B$J$I$r:n$C$F$b$=$3$KF~$l$?(BUFS$B$+$i5/F0(B > $B$9$kJ}K!$,$J$$!"$H$$$&$3$H$K$J$j$^$9!#(B > > $B<B83$O0J>e$G$9!#(B > > -------- > $B4];3D>>;!wE}7W?tM}8&5f=j(B > _______________________________________________ > freebsd-users-jp@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-users-jp > To unsubscribe, send any mail to "freebsd-users-jp-unsubscribe@freebsd.org" > -- $B@DLZ(B $BCNL@(B [Tomoaki AOKI] junchoon@dec.sakura.ne.jp
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160419215805.1af77a5ee57c7723aababe2f>