LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 03-09-2005, 07:18 AM   #1
Malcolm Dobson
LQ Newbie
 
Registered: Mar 2005
Posts: 6

Rep: Reputation: 0
Problem copying files to vfat floppy


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.

Can anyone help me.

Thanks in advance.
 
Old 03-09-2005, 07:25 AM   #2
Stealth870
Member
 
Registered: Dec 2004
Posts: 57

Rep: Reputation: 15
Why not copy around 70 files, check its disk space, then copy another 70, and another? Instead of all at once...
 
Old 03-09-2005, 07:25 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,932

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
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.


Last edited by michaelk; 03-09-2005 at 07:29 AM.
 
Old 03-09-2005, 07:37 AM   #4
Malcolm Dobson
LQ Newbie
 
Registered: Mar 2005
Posts: 6

Original Poster
Rep: Reputation: 0
I will try copying in chunks and checking space left but I dont think it will help.

Thanks for the swift reply.
 
Old 03-09-2005, 07:41 AM   #5
Malcolm Dobson
LQ Newbie
 
Registered: Mar 2005
Posts: 6

Original Poster
Rep: Reputation: 0
Michaelk,

Thanks for your swift reply.

I can only copy 75 files. If there is a limit of 224 why is this. Is there nothing I can do about a limited number of files in the root directory?
 
Old 03-09-2005, 07:48 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,932

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
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?
 
Old 03-09-2005, 07:53 AM   #7
Malcolm Dobson
LQ Newbie
 
Registered: Mar 2005
Posts: 6

Original Poster
Rep: Reputation: 0
Michaelk,

Thanks again.

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.
 
Old 03-09-2005, 11:45 AM   #8
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 11,957

Rep: Reputation: 3108Reputation: 3108Reputation: 3108Reputation: 3108Reputation: 3108Reputation: 3108Reputation: 3108Reputation: 3108Reputation: 3108Reputation: 3108Reputation: 3108
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.

--jeremy
 
Old 03-09-2005, 11:46 AM   #9
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 11,957

Rep: Reputation: 3108Reputation: 3108Reputation: 3108Reputation: 3108Reputation: 3108Reputation: 3108Reputation: 3108Reputation: 3108Reputation: 3108Reputation: 3108Reputation: 3108
OK, I actually went and looked instead of trying to remember http://www.microsoft.com/resources/d...c_fil_tdrn.asp has the gory details.

Quote:
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.)
--jeremy
 
Old 03-09-2005, 11:51 AM   #10
Malcolm Dobson
LQ Newbie
 
Registered: Mar 2005
Posts: 6

Original Poster
Rep: Reputation: 0
Jeremy,

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.

Thanks for your input anyway.


Malcolm
 
Old 03-09-2005, 12:46 PM   #11
Malcolm Dobson
LQ Newbie
 
Registered: Mar 2005
Posts: 6

Original Poster
Rep: Reputation: 0
Jeremy,

Thanks for that. It looks like I have a FAT16 volume. The number of files and folders in the root directory is much greater on FAT32.

I will look into that and let you know how I get on.

Many thanks for your help.


Malcolm
 
Old 03-09-2005, 08:10 PM   #12
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,932

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
help: copying files to a floppy RockmanExe Mandriva 1 11-04-2003 06:43 PM
Copying files to floppy Unknown_User Linux - General 3 08-01-2003 07:06 PM
copying files from floppy to hd rinjusenritsu Linux - General 1 01-17-2003 02:18 PM
Copying files to vfat partion in linux??? MgF Linux - Newbie 15 11-02-2002 07:59 PM
Copying files to Floppy seirra7 Linux - Newbie 3 02-25-2002 12:34 AM


All times are GMT -5. The time now is 06:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration