Skip to content

Instantly share code, notes, and snippets.

@semind
Created March 27, 2012 03:56
Show Gist options
  • Save semind/2212390 to your computer and use it in GitHub Desktop.
Save semind/2212390 to your computer and use it in GitHub Desktop.
Linux全般
### 2TB以上のHDDを使う場合。partedコマンドでMBRではなくGPTを利用するようにする。
ex) 3TBのディスクの場合
# parted /dev/XXX
(parted) mklabel gpt
(parted) mkpart
Partition name? []?
File system type? [ext2]? ext4
Start? 1
End? 3001GB
### write cache確認 & 有効化
hdparm -I /dev/sda | grep -i write # 確認
hdparm -W1 /dev/sda # 有効化
### inodeをmkfs時に増やす (-iの値は何byteごとにinodeを作るか、-iの値を小さくするとMax値が増える)
mkfs.ext4 -i 8192 /dev/sda
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment