Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Mar 2009 08:32:15 -0800
From:      Norbert Papke <npapke@acm.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: USB key with 7.5 GByte but no space left on device after 4 GByte written
Message-ID:  <200903050832.15869.npapke@acm.org>
In-Reply-To: <20090305141217.GA11424@rebelion.Sisis.de>
References:  <20090305081407.GA2242@rebelion.Sisis.de> <alpine.BSF.2.00.0903051048220.74507@wojtek.tensor.gdynia.pl> <20090305141217.GA11424@rebelion.Sisis.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On March 5, 2009, Matthias Apitz wrote:
> El d=EDa Thursday, March 05, 2009 a las 10:48:52AM +0100, Wojciech Puchar=
 > to=20
end this threat, I did:
>
> # dd if=3D/dev/zero of=3D/dev/da0 bs=3D64k count=3D1
> # 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=
=20
system is 4GB (-1 byte).  See

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

Cheers,

=2D- Norbert Papke.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903050832.15869.npapke>