Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am trying to copy around 300 small files to a vfat floppy drive. After 75 files have been copied I get 'No space left on device' errors. 'df' shows that the floppy is only 21% full.
If I create a directory on the floppy I can copy all of the files into that directory, so it is clearly not a space issue. vfat does not use inodes so it is not that either.
There is a limit to the number of files that can be in the root directory on a FAT formated floppy disk . I've read that the limit is 224 files but it is not confirmed.
I had always thought the limit was 64 but a quick search on a couple of sites mentioned 224. I've never confirmed either number. AFAIK it is a filesystem limitation. Is there any reason you can not use a directory?
I may be able to use a directory but the problem is that the floppy is to be used on an existing Windows platform which expects all the files in the root directory. It would require a change to this system which may be difficult.
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,596
Rep:
I thought the max was actually 512, but keep in mind that having files longer than 8 characters starts eating up multiple spots, so it's very likely than you will get less than the max.
Maximum number of files and folders within the root folder 512 (Long file names can reduce the number of available files and folders in the root folder.)
Most if not all of the files I am copying have names between 12 and 20 characters. But only being able to copy 75 if the limit is 512 still seems strange.
After playing around and doing some additional research:
Using a standard windows formated floppy disk:
With standard 8.3 naming convention I could copy 222 files. I assume that the hidden files io.sys and msdos.sys would make it 224.
Coping approx 25.3 character names I could only create 56 files. And so If long filename support is enabled, then each file can use more than one file or directory entry.
From what I've discovered the 512 number is for a FAT16 root directory on a hard drive and not a floppy disk. I've also read where FAT32 can have 65,536 (based on 8.3 naming convention) but I'm not going to confirm this. AFAIK you can not format a floppy disk as FAT32.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.