Other Can I create start 34 with gpart create?

bokutin

New Member

Reaction score: 1
Messages: 7

I'm trying to create the same partition to make it raid, but it doesn't work.

Can I make only start 40 with gpart in FreeBSD 12?

Code:
# camcontrol devlist
<Samsung SSD 850 PRO 512GB EXM02B6Q>  at scbus6 target 0 lun 0 (pass5,ada4)   # new ssd
<Samsung SSD 850 PRO 512GB EXM02B6Q>  at scbus11 target 0 lun 0 (pass10,ada9) # old ssd

# gpart backup /dev/ada9 | gpart restore -F /dev/ada4
gpart: start '34': Invalid argument

# gpart backup /dev/ada9                             
GPT 128
1   freebsd-boot         34        128 
2    freebsd-zfs        162 1000215021

# gpart list ada9       
Geom name: ada9
modified: false
state: OK
fwheads: 16
fwsectors: 63
last: 1000215182
first: 34
entries: 128
scheme: GPT
Providers:
1. Name: ada9p1
   Mediasize: 65536 (64K)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 1024
   Mode: r0w0e0
   efimedia: HD(1,GPT,83e479d0-f41b-11e4-92db-0025229f7519,0x22,0x80)
   rawuuid: 83e479d0-f41b-11e4-92db-0025229f7519
   rawtype: 83bd6b9d-7f41-11dc-be0b-001560b84f0f
   label: (null)
   length: 65536
   offset: 17408
   type: freebsd-boot
   index: 1
   end: 161
   start: 34
2. Name: ada9p2
   Mediasize: 512110090752 (477G)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 1024
   Mode: r1w1e2
   efimedia: HD(2,GPT,868c6c71-f41b-11e4-92db-0025229f7519,0xa2,0x3b9e11ed)
   rawuuid: 868c6c71-f41b-11e4-92db-0025229f7519
   rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b
   label: (null)
   length: 512110090752
   offset: 82944
   type: freebsd-zfs
   index: 2
   end: 1000215182
   start: 162
Consumers:
1. Name: ada9
   Mediasize: 512110190592 (477G)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r1w1e3

# gpart list ada4
gpart: Class 'PART' does not have an instance named 'ada4'.

# gpart create -s GPT ada4
ada4 created                  

# gpart list ada4         
Geom name: ada4
modified: false
state: OK
fwheads: 16
fwsectors: 63
last: 1000215175
first: 40
entries: 128
scheme: GPT
Consumers:
1. Name: ada4
   Mediasize: 512110190592 (477G)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r0w0e0

# freebsd-version -ku
12.0-RELEASE-p10
12.0-RELEASE-p11
 
Top