Bug 531035
| Summary: | mkfs.vfat creates bad filesystems | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Dave Jones <davej> |
| Component: | dosfstools | Assignee: | Jaroslav Škarvada <jskarvad> |
| Status: | CLOSED CANTFIX | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | 14 | CC: | daniel, jskarvad, kasal, pfrields |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-02-18 10:04:31 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Dave Jones
2009-10-26 15:35:20 UTC
When run with -v, mkfs.vfat prints this .. mkfs.vfat 3.0.1 (23 Nov 2008) /dev/sdb1 has 5 heads and 51 sectors per track, logical sector size is 512, using 0xf8 media descriptor, with 257244 sectors; file system has 2 16-bit FATs and 4 sectors per cluster. FAT size is 251 sectors, and provides 64177 clusters. Root directory contains 512 slots. Volume ID is 9042fa4f, no volume label. I wrote a program to dump the structure of the filesystem. When formatted on OSX, it reports the number of heads == 16, and sectors per track==32. I suspect mkfs.vfat is misinterpreting the geometry from my usb memory stick. This bug appears to have been reported against 'rawhide' during the Fedora 12 development cycle. Changing version to '12'. More information and reason for this action is here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping I think the geometry here are purely virtual numbers and are not important for correct function. Please check the USB memory stick for bad memory cells. For Windows there exists nifty tool called CheckFlash, it uses patterns that can spot bad cells even in situations where filesystems based checking tools are silent. Also please try dosfstools-3.0.9-2.fc14 from rawhide with many bug fixes. Please report if the problem persists. flash is fine, and verifies every block ok. still happens with rawhide (dosfstools-3.0.9-3.fc14.x86_64) plug into mac, and it pops up a dialog asking if I want to initialize it because it's unreadable. This bug appears to have been reported against 'rawhide' during the Fedora 14 development cycle. Changing version to '14'. More information and reason for this action is here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping Please try to zero your device (or at least 512 bytes of MBR) by following command (assuming your memory stick is /dev/sdb): # dd if=/dev/zero of=/dev/sdb Then reinitialize your MBR by 'fdisk /dev/sdb', create new partition table (command 'o'), create new partition (command 'n'), write (command 'w'). Then reformat with mkfs.vfat and recheck. If the problem still persists, please try to change your geometry in fdisk: command 'x', commands 'h' and 's'. Then reinitialize your MBR (see above), reformat and recheck. Also please report what fdisk thinks about your geometry (command 'p'). I am unable to reproduce this. I have tried with several USB sticks with geometry deduced from comment 1 and it worked as expected (I tested on Win 7 and Win XP, but not on Mac). |