Sparse Files

Discussion in 'AnyDVD HD (Blu-ray issues)' started by RichieScar, Nov 15, 2021.

  1. RichieScar

    RichieScar Member


    I may have inadvertantly copied some of my discs as sparse files. To save me the time in doing them again, is there a easy way of telling wheter the ISO's are sparse or not?

    Thx for any help with this!

    Best Regards

  2. James

    James Redfox Development Team Staff Member

    Stupid question, why? Is there a problem with sparse files?
  3. RichieScar

    RichieScar Member

    Why is it a stupid question? I 'd rather not have sparse files, a personal preference that's all. If you can' t advise don't say anything rather than be cocky and rude!
  4. Ch3vr0n

    Ch3vr0n Translator NL

    Careful, there's no better person to answer this than James. He's the lead dev on Anydvd.

    Sent from my Pixel 3 XL using Tapatalk
    whatever_gong82 likes this.
  5. coopervid

    coopervid Moderator

    @James ,

    please shortly explain the difference between sparse and regular ISOs. I could but I might only be 99% correct.
    Last edited: Nov 15, 2021
  6. coopervid

    coopervid Moderator

  7. KevinS72

    KevinS72 Well-Known Member

    I believe James was implying his "why?" was a stupid question and not that your question was stupid. I'm assuming your ISO's are on an NTFS file system or a Linux file system that supports sparse files?
    From what I found it seems you would compare the actual file size to the size on disk and if the size on disk is less then either there is compression or it was flagged as a sparse file. I found one ISO that was created as a sparse file on my hard drive (Windows NTFS) as an example where the size on disk is less than the file size.


    * If you copy or move a sparse file to a FAT or a non-NTFS volume, the file is built to its originally specified size. If the required space is not available, the operation does not complete.

    Here is a command-line tool to check for or modify the sparse file attribute.
  8. coopervid

    coopervid Moderator

    I guess that's about it. Saving a few percent of disc space is not that important anymore as it was some years ago.
  9. James

    James Redfox Development Team Staff Member

    Yes. I am sorry for the misunderstanding.
    whatever_gong82 and DeepSpace like this.
  10. deltamind106

    deltamind106 New Member

    A sparse file's behavior is identical in every way to a normal file, except that the underlying operating system is storing it with different encoding. Worrying about whether a file is stored as a sparse file, is like worrying about whether the screws holding your hard drive together are Phillips-head or flat-head. I mean if you have enough idle brain bandwidth to worry about such details and it rocks your socks off, then go for it I guess.