USB key with 7.5 GByte but no space left on device after 4 GByte written

Norbert Papke npapke at acm.org
Thu Mar 5 08:32:18 PST 2009


On March 5, 2009, Matthias Apitz wrote:
> El día Thursday, March 05, 2009 a las 10:48:52AM +0100, Wojciech Puchar > to 
end this threat, I did:
>
> # dd if=/dev/zero of=/dev/da0 bs=64k count=1
> # newfs_msdos /dev/da0
> # mount -t msdosfs /dev/da0 /mnt
> # time cat file file file > /mnt/big
> cat: stdout: File too large
> 0.276u 19.421s 14:36.63 2.2%    11+1180k 33887+65536io 0pf+0w
>
> # df -kh /mnt
> Filesystem    Size    Used   Avail Capacity  Mounted on
> /dev/da0      7.5G    4.0G    3.5G    53%    /mnt
>
> i.e. it writes the maximal file size of 4G in FAT32 and 3.5G are left as
> free;

Seems to work as it should.  The maximum allowed file size on a FAT32 file 
system is 4GB (-1 byte).  See

http://en.wikipedia.org/wiki/File_Allocation_Table#FAT32

Cheers,

-- Norbert Papke.


More information about the freebsd-questions mailing list