From: Brian Candler Date: 2008-11-29T05:34:09+09:00 Subject: Re: Maximum number of files on a disk ? Axel Etzold wrote: > is there a way to read out the maximum number of files that can be > created on a hard disk/memory > stick etc., from Ruby ? Under Linux: df -i $ df -i Filesystem Inodes IUsed IFree IUse% Mounted on /dev/sda3 786432 246411 540021 32% / Each file (and directory) takes one inode, so when you've run out of inodes, you can't create any more files. > I'd need to know this for ext3, NTFS and fat32 systems I don't know what limits NTFS and fat32 have. ISTR that the DOS filesystem had a limit of ~200 files in the root directory, but this limit didn't apply for subdirectories. B. -- Posted via http://www.ruby-forum.com/.