Manage NTFS File Write Positioning

Stan Kasper 1,376 Reputation points
2020-12-07T21:55:11.593+00:00

I am using dynamic disks that start small and grow in size based on disk writes. Sometimes I delete space and clear the recycle bin but NTFS does not use that free space and instead continues to a new location based on where it left off until eventually it will hit the end of the disk and then start over looking at free space. Is there a way to tell NTFS to start looking at the beginning of the disk for free space? Otherwise the dynamic disk grows in size using real physical space instead of reusing free space that is available at the beginning of the disk.

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,614 questions
0 comments No comments
{count} votes

Accepted answer
  1. AliceYang-MSFT 2,091 Reputation points
    2020-12-08T07:55:03.43+00:00

    Hi,

    According to Partition Allocation Methods in Memory Management, the allocation method your NTFS employed is Next Fit Algorithm. You can refer to Implementation of all Partition Allocation Methods in Memory Management to let your NTFS perform First Fit Algorithm which make it look for free space from the beginning.

    Please note: Information posted in the given link is hosted by a third party. Microsoft does not guarantee the accuracy and effectiveness of information.

    ----------

    If the Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Stan Kasper 1,376 Reputation points
    2020-12-10T03:24:24.717+00:00

    Great info. Still need to zero in on how to set NTFS to use first-fit instead of next-fit. Also it is unclear if NTFS uses next-fit when a machine is recycled or whether it starts over with first-fit. In any case, a good starting point. However there has to be documentation somewhere in regards to configuring NTFS for dynamic disks in order to efficiently manage there growth. Still searching for that.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.