Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Well, I guess it must be something proportional to the original filename plus the new filename for symlinks, and only the new filename for hardlinks, but how does this affect the disk space exactly? I just made a folder with about a hundred thousand symbolic links in it, and the folder still reported 0 bytes usage. I even think the free capacity of the drive remained the same. Then I permanently deleted the folder and the sizes still stayed the same.

Could I fill up a hard disk just with symlinks? Or does NTFS have a limitation that no more than X symlinks are allowed on one drive/in one folder, so the capacity of the drive cannot be reached?

share|improve this question
add comment

3 Answers

up vote 2 down vote accepted

The OS is reporting how much disk space each of the file's contents consume. The entry in the file table (which is what contains your list of files) is not included in this.

Often multiple file entries are normally stored on one sector.

If you keep creating files in a directory, eventually you'll notice that the total free disk space decreases just a little bit as an additional sector is allocated to store more filename entries.

Typically other information is stored along with each filename entry, such as various timestamps, owner ID, starting sector, size, attributes, permissions, etc.

Now symbolic links and hard links are just references to existing files, so additional disk space is not needed for data (file content) storage since a copy of the destination file isn't created as a result.

share|improve this answer
add comment

What happens when you format your disk is that certain space is reserved at format time for file names and other file-system metadata. This space is typically located at the back of the partition. If you use all of the reserved space it will just allocated more, and at this point you will see the free space decrease for the drive.

share|improve this answer
add comment

You will most likely run out of directory entries on the drive before you'll run out of space on the drive. Just run CHKDSK on the drive and you'll see how many "allocation units available on disk" are available.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.