HDD 2TB増設

いろいろとディスク容量が足りなくなってきたので、SATA HDD 2TBを増設しました。夏に購入しようか悩んだのですが、もう少し待ってからにしようと考えて待っていたら、なんとなく値段が高くなってしまったような気がします。また、お店でも1名1台と販売台数の制限をかけていて、品不足というのが印象に残りました。

とりあえず、購入はできたので、さっそく家に帰って増設したところ、「The partition is misaligned by 3072 bytes. This may result in very poor performance. Repartitioning is suggested」なんていうエラーがでています。調べたところ、gdiskコマンドを使って、次のようにパーティションを作成するとよいそうです。gdiskがない場合は、yum install gdisk としてインストールします。

$ sudo gdisk /dev/sdc
GPT fdisk (gdisk) version 0.7.1

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.

Command (? for help): i
No partitions

Command (? for help): n
Partition number (1-128, default 1): 
First sector (34-3907029134, default = 34) or {+-}size{KMGTP}: 2048
Last sector (2048-3907029134, default = 3907029134) or {+-}size{KMGTP}: 
Current type is 'Linux/Windows data'
Hex code or GUID (L to show codes, Enter = 0700): 0700
Changed type of partition to 'Linux/Windows data'

Command (? for help): w

Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
PARTITIONS!!

Do you want to proceed? (Y/N): y
OK; writing new GUID partition table (GPT).
The operation has completed successfully.

同じタグの記事: CentOS
同じタグの記事: Linux
同じカテゴリの記事: Linux
関連書籍: CentOS