Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7436857
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T10:18:26+00:00 2026-05-29T10:18:26+00:00

first of all, I’d like to explain why i need this. i need to

  • 0

first of all, I’d like to explain why i need this.
i need to create some disk image files for virtual machines. that files will be really huge(100GB ~ 1.5TB) files which are filled with zeroes. it should be created in very short time(as much as possible, at least it should be faster than “dd” command with “/dev/zero”). requiring size will be various(it means that i can not create it previously).
Easy solution(until know) is creating files as a sparse file.
but why i want to change solution is some sort of disadvantage of sparse file.

in my view, it can be solved by directly editing inodes.
my idea is that create really large file which are filled with zeroes and divide it by inode level. Or I can create a lot of 100 Gbyte files before concatenate that files to create desired file size.
I know that “debugfs” can edit direct blocks of a inode. as “debugfs” is used for file recovering, maybe, i can use it for creating file. but I can’t find how to edit indirect blocks of a inode until now. beside of editing indirect blocks, I’m not sure about side effect of directly editing inodes.

anyway, Are there any cool solution or tool(if it exists) for “sewing” huge files or creating zero-fill file?
“cat” command or other just read-and-write solution maybe, can’t fulfill my problem.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T10:18:27+00:00Added an answer on May 29, 2026 at 10:18 am

    If you only want to create zero filled files, then fallocate might be useful. From the man page

    fallocate is used to preallocate blocks to a file. For filesystems which support the fallocate system call, this is done quickly by allocating blocks and marking them as uninitialized, requiring no IO to the data blocks. This is much faster than creating a file by filling it with zeros.

    As of the Linux Kernel v2.6.31, the fallocate system call is supported by the btrfs, ext4, ocfs2, and xfs filesystems.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First of all there is probably a question like this already but i couldn't
First of all, apologize because I have seen some posts about this, but I
First of all, I got this huge xml file that represents data collected by
First of all, this isn't for a keylogger, it's for an input in a
first of all some details: I configured security as below in web.xml view plaincopy
first of all i would like to say i know its probably an easy
First of all, let me say that I am not a professional coder -
First of all, I am sorry if this question doesn't belong to SO since
First of all this is all just concept, I have no actual programming done
First of all. I want to say that i've acctualy read the other posts

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.