{"id":1664,"date":"2026-01-19T09:56:59","date_gmt":"2026-01-19T09:56:59","guid":{"rendered":"https:\/\/www.labiol.xyz\/?p=1664"},"modified":"2026-01-19T09:58:33","modified_gmt":"2026-01-19T09:58:33","slug":"creating-random-not-empty-thin-provisioned-files-in-linux","status":"publish","type":"post","link":"https:\/\/www.labiol.xyz\/index.php\/2026\/01\/19\/creating-random-not-empty-thin-provisioned-files-in-linux\/","title":{"rendered":"Creating random (not empty, thin provisioned) files in Linux"},"content":{"rendered":"\n<p>Recently I have found the command that can generate random file in linux environment where non empty (thin provisioned) files are required for testing:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>for i in {1..90}; do openssl enc -aes-256-ctr -pbkdf2 -pass pass:\"$(dd if=\/dev\/urandom bs=128 count=1 2>\/dev\/null | base64)\" -nosalt &lt; \/dev\/zero 2>\/dev\/null | gead -c5G > \"random_${i}.img\"; done\n\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"42\" src=\"https:\/\/www.labiol.xyz\/wp-content\/uploads\/2026\/01\/fast_random-1024x42.jpg\" alt=\"\" class=\"wp-image-1667\" srcset=\"https:\/\/www.labiol.xyz\/wp-content\/uploads\/2026\/01\/fast_random-1024x42.jpg 1024w, https:\/\/www.labiol.xyz\/wp-content\/uploads\/2026\/01\/fast_random-300x12.jpg 300w, https:\/\/www.labiol.xyz\/wp-content\/uploads\/2026\/01\/fast_random-768x32.jpg 768w, https:\/\/www.labiol.xyz\/wp-content\/uploads\/2026\/01\/fast_random.jpg 1411w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Screenshot<\/figcaption><\/figure>\n\n\n\n<p>todo: combine that command with parallel command (or parallel that in python).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently I have found the command that can generate random file in linux environment where non empty (thin provisioned) files are required for testing: todo: combine that command with parallel command (or parallel that in python).<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-1664","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/posts\/1664","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/comments?post=1664"}],"version-history":[{"count":3,"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/posts\/1664\/revisions"}],"predecessor-version":[{"id":1668,"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/posts\/1664\/revisions\/1668"}],"wp:attachment":[{"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/media?parent=1664"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/categories?post=1664"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/tags?post=1664"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}