So I do a lot of image processing in my work, and I ran into a problem today that I still haven’t found a logical answer to:
On my Ubuntu 8.10 computer, I have a 1TB internal harddrive /dev/sdc1 mounted in NTFS format. After the initial format, My max volume size is stated as 931.51GiB. On this drive, I have lots of folders, and many of them have thousands (1K to 6K) of small images, in formats of jpg, png, ppm. Today, one of my scripts crapped out when it tried to create a new image and returned “Operation not supported.”
Even when I used touch or a simple vi created file, I could not create any more files. The current disk usage on the harddrive is:
Contents: 704,324 items, totalling 826.3 GB
And Ubuntu tells me I still have 102.5 GiB of space left. So I started thinking if I’ve reached my inodes limit because of the number of files. However, when I do a ‘df -i‘, I am no where near the limit:
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sdc1 108159004 706236 107452768 1% /media/sdc1
When I look online, all the documentation and search says that the maximum number of files in NTFS is 2^32-1. The only other thing is the master file table (MFT) and how it might increase it’s size if more files get created beyond those specified in MFT. However, I haven’t been able to confirm this.
Anybody have an explanation for this? It’s really bugging me that it’s happening and I can’t figure it out.