看硬碟盒子中附的說明寫著 windows 之外的系統之接插上就可以用,不過還是去找了資料,最簡單的應該是用 gpart 吧。
#gpart create -s GPT ad10
ad10 created
#gpart show ad10
=> 34 2930277101 ad10 GPT (1.4T)
34 2930277101 - free - (1.4T)
4k = 512x8,所以接著由 40 開始
#gpart add -b 40 -s 2930277095 -t freebsd-ufs ad10
ad10p1 added
# gpart show ad10
=> 34 2930277101 ad10 GPT (1.4T)
34 6 - free - (3.0K)
40 2930277095 1 freebsd-ufs (1.4T)
#newfs -S 4096 -b 32768 -f 4096 -O 2 -U -m 1 -o space /dev/ad10p1
接著測看看速度
#dd if=/dev/zero of=/dev/ad10p1 bs=1m count=8k
8192+0 records in
8192+0 records out
8589934592 bytes transferred in 90.180949 secs (95252209 bytes/sec)
diskinfo 看到的 sectorsize 還是 512
#diskinfo -t /dev/ad10
/dev/ad10
512 # sectorsize
1500301910016 # mediasize in bytes (1.4T)
2930277168 # mediasize in sectors
2907021 # Cylinders according to firmware.
16 # Heads according to firmware.
63 # Sectors according to firmware.
WD-WMAVU3127845 # Disk ident.
Seek times:
Full stroke: 250 iter in 5.759155 sec = 23.037 msec
Half stroke: 250 iter in 4.177206 sec = 16.709 msec
Quarter stroke: 500 iter in 7.581140 sec = 15.162 msec
Short forward: 400 iter in 2.664591 sec = 6.661 msec
Short backward: 400 iter in 2.181377 sec = 5.453 msec
Seq outer: 2048 iter in 0.273239 sec = 0.133 msec
Seq inner: 2048 iter in 0.238800 sec = 0.117 msec
Transfer rates:
outside: 102400 kbytes in 1.065353 sec = 96118 kbytes/sec
middle: 102400 kbytes in 1.264815 sec = 80960 kbytes/sec
inside: 102400 kbytes in 2.177371 sec = 47029 kbytes/sec
gpart add -b 40 -s 2930277095 -t freebsd-ufs ad10
回覆刪除請問上面這個2930277095是如何算出來的?
其他容量硬碟也可以這樣算嗎?
因為 create GPT 後用掉前 34 sectors 剩 2930277101 sectors,在 34 後最接近的 4k 倍數為 sector 40,所以從 sector 40 開始剩下 2930277095 sectors (2930277101- 6)。其實剩下的空間只要割成一個 partition 的話可以省略 -s
回覆刪除謝謝你的回答。
回覆刪除