岡部です。

On 2016/04/17 17:54, 丸山直昌 wrote:
gpart create -s GPT ada0
gpart add -t freebsd-ufs ada0

だと ada0p1 ができて

gpart create -s GPT ada0
gpart add -t freebsd ada0

だと ada0s1 ができるのですか?

はい、そうなります。

>root@freebsd64:~ # gpart create -s GPT ada0
>ada0 created
>root@freebsd64:~ # gpart add -t freebsd-ufs ada0
>ada0p1 added
>root@freebsd64:~ #

>root@freebsd64:~ # gpart create -s GPT ada0
>ada0 created
>root@freebsd64:~ # gpart add -t freebsd ada0
>ada0s1 added
>root@freebsd64:~ #

gpart create -s GPT ada0
gpart add -t freebsd-ufs ada0
gpart add -t freebsd ada0

と続けてやると、 ada0p1 の次にできるのは ada0s1 ですか ada0s2ですか、は
たまた ada0p2 ですか?

試してみたところ ada0s2 でした。

>root@freebsd64:~ # gpart create -s GPT ada0
>ada0 created
>root@freebsd64:~ # gpart add -t freebsd-ufs -s 10g ada0
>ada0p1 added
>root@freebsd64:~ # gpart add -t freebsd ada0
>ada0s2 added
>root@freebsd64:~ # gpart show ada0
>=>      34  41942973  ada0  GPT  (20G)
>        34  20971520     1  freebsd-ufs  (10G)
>  20971554  20971453     2  freebsd  (10G)
>root@freebsd64:~ # gpart status ada0
>  Name  Status  Components
>ada0p1      OK  ada0
>ada0s2      OK  ada0
>root@freebsd64:~ # gpart list ada0
>Geom name: ada0
>modified: false
>state: OK
>fwheads: 15
>fwsectors: 63
>last: 41943006
>first: 34
>entries: 128
>scheme: GPT
>Providers:
>1. Name: ada0p1
>   Mediasize: 10737418240 (10G)
>   Sectorsize: 512
>   Stripesize: 0
>   Stripeoffset: 17408
>   Mode: r0w0e0
>   rawuuid: 53a8a427-0487-11e6-bf5a-000c29db2f7f
>   rawtype: 516e7cb6-6ecf-11d6-8ff8-00022d09712b
>   label: 1
>   length: 10737418240
>   offset: 17408
>   type: freebsd-ufs
>   index: 1
>   end: 20971553
>   start: 34
>2. Name: ada0s2
>   Mediasize: 10737383936 (10G)
>   Sectorsize: 512
>   Stripesize: 0
>   Stripeoffset: 2147501056
>   Mode: r0w0e0
>   rawuuid: 58152cda-0487-11e6-bf5a-000c29db2f7f
>   rawtype: 516e7cb4-6ecf-11d6-8ff8-00022d09712b
>   label: 1
>   length: 10737383936
>   offset: 10737435648
>   type: freebsd
>   index: 2
>   end: 41943006
>   start: 20971554
>Consumers:
>1. Name: ada0
>   Mediasize: 21474836480 (20G)
>   Sectorsize: 512
>   Mode: r0w0e0

root@freebsd64:~ #

----
岡部 勝幸

_______________________________________________
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-unsubscr...@freebsd.org"

メールによる返信