Bug 158756 - newfs_msdos(8) creates invalid image
Summary: newfs_msdos(8) creates invalid image
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-10 09:30 UTC by David Naylor
Modified: 2014-12-16 14:26 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Naylor 2011-07-10 09:30:10 UTC
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)
Comment 1 David Naylor freebsd_committer freebsd_triage 2014-12-16 14:26:55 UTC
No longer reproducable on FreeBSD 10.1-RELEASE