newfs_msdos creates an invalid image. A side affect of this is Windows XP sees the image as being full. This error persists even after mounting and copying files to the image. Fix: (Run fsck_msdosfs after creation) How-To-Repeat: # newfs_msdos -F 32 /dev/da1 /dev/da1: 2014208 sectors in 62944 FAT32 clusters (16384 bytes/cluster) BytesPerSec=512 SecPerClust=32 ResSectors=32 FATs=2 Media=0xf0 SecPerTrack=32 Heads=64 HiddenSecs=0 HugeSectors=2015232 FATsecs=492 RootCluster=2 FSInfo=1 Backup=2 # fsck_msdosfs /dev/da1 ** /dev/da1 ** Phase 1 - Read and Compare FATs ** Phase 2 - Check Cluster Chains ** Phase 3 - Checking Directories ** Phase 4 - Checking for Lost Files Free space in FSInfo block (-1) not correct (62943) Fix? [yn] y 1 files, 1007088 free (62943 clusters)
No longer reproducable on FreeBSD 10.1-RELEASE