67
66

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

高速に巨大なダミーファイルを作成する方法

Last updated at Posted at 2015-04-21

もうdd if=/dev/zero ...とかしなくてええんやで?

$ fallocate -l 10GB dummy.dat

参考

command line - How to create a file with a given size in Linux? - Stack Overflow
http://stackoverflow.com/questions/139261/how-to-create-a-file-with-a-given-size-in-linux
fallocate -l 5G bar

fallocateで素早く仮想化ディスクを用意する | Linux | マイノリティでいこう
http://blog.be-dama.com/2013/03/01/fallocate%E3%81%A7%E7%B4%A0%E6%97%A9%E3%81%8F%E4%BB%AE%E6%83%B3%E5%8C%96%E7%94%A8%E3%81%AE%E3%83%87%E3%82%A3%E3%82%B9%E3%82%AF%E3%82%92%E7%94%A8%E6%84%8F%E3%81%99%E3%82%8B/

67
66
3

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
67
66

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?