2009年10月14日 星期三

Linux: Format new partitions

Preferred file system type: ext4

mke2sf -t ext4 -j -O large_file,extent,uninit_bg /dev/sdaX
  • large_file: support > 2GB files, may be enabled by default
  • extent: ext4 only, increase performance for large file access
  • uninit_bg: reduce fsck time
tune2fs /dev/sdaX -m 1 /dev/sdaX
  • Well, for large partitions, I suggest the percentage of reserved spaces must be reduced -- imagine that 5% (default) for a 2TB disk is close to 100GB!
tune2fs -l /dev/sdaX
  • Check the parameters and information about the newly created file system.

沒有留言:

張貼留言