From: Axel Etzold Date: 2008-11-29T03:26:08+09:00 Subject: Re: Maximum number of files on a disk ? -------- Original-Nachricht -------- > Datum: Fri, 28 Nov 2008 08:10:34 +0900 > Von: "Wayne Vucenic" > An: ruby-talk@ruby-lang.org > Betreff: Re: Maximum number of files on a disk ? > On Thu, Nov 27, 2008 at 2:16 PM, Axel Etzold wrote: > > > the maximum number of files that can be created on a hard disk... > > for ... NTFS and fat32 ... > > For NTFS, the maximum number of files that can be created is 2**32 - 1. > > I'd expect that the number for fat32 is similarly large. > > Hope this helps, > > Wayne > > --- > Wayne Vucenic > No Bugs Software > Agile Ruby (but preferably not Rails) Contract Programming in Silicon > Valley since 2001 Dear Wayne, thank you for responding. I am writing to an NTFS disk, where I am splitting up a large XML file into smaller bits, which are saved as individual files ( and closed immediately after writing to them). The process runs smoothly until I get the following last correct output 49'000'000 # <- number of lines traversed in the XML file so far (print every 500'000) 1483042 # <- smaller files written to disk so far and this error: lbwiki2.rb:114:in `initialize': Operation not supported - /media/Philips External Hard Disk/en_wiki/Warnock's\ Dilemma (Errno::EOPNOTSUPP) from lbwiki2.rb:114:in `new' from lbwiki2.rb:114 from lbwiki2.rb:85:in `each' from lbwiki2.rb:85 In this line 114, there's a File.new for the next small file to be created. The spaces in the file name are no problem. I am using Ubuntu 8.10 (32 bit) + ruby-1.8.7-p72. I cannot create any files on the disk anymore, neither with Ruby nor on the command line. This works again if I delete some file/folder. So there must be some maximum amount of files that this NTFS disk can handle, which is way below 2**32-1 ... What can I do here ? Thank you very much! Best regards, Axel -- Sensationsangebot nur bis 30.11: GMX FreeDSL - Telefonanschluss + DSL f�r nur 16,37 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a