This filesystem is absolutely correct, yet the fsck.vfat tries to fix it. If I let fsck.vfat fix the filesystem, all files residing after certain treshold in the file system are truncated and shown as lost chunks. It seams that something is wrong with maximum sector calculation.
This is with dosfstools of version 2.11-1. This really is a grave bug - it destroyed my Windows filesystem *twice* before I understud what was going on. :P ------------------LOG-BEGIN---------------------------- [EMAIL PROTECTED]:~$ sudo fsck.msdos -vn /dev/hda1 dosfsck 2.11 (12 Mar 2005) dosfsck 2.11, 12 Mar 2005, FAT32, LFN Checking we can access the last sector of the filesystem There are differences between boot sector and its backup. Differences: (offset:original/backup) 90:33/0e, 91:c9/1f, 92:8e/be, 93:d1/74, 94:bc/7e, 95:f4/ac, 96:7b/22 , 97:8e/c0, 98:c1/74, 99:8e/06, 100:d9/b4, 101:bd/0e, 102:00/cd, 103:7c/10 , 104:88/eb, 105:4e/f5, 106:02/b4, 107:8a/00, 108:56/cd, 109:40/16 , 111:08/00, 113:13/19, 114:73/eb, 115:05/fe, 116:b9/54, 117:ff/68 , 118:ff/69, 119:8a/73, 120:f1/20, 121:66/70, 122:0f/61, 123:b6/72 , 124:c6/74, 125:40/69, 126:66/74, 127:0f/69, 128:b6/6f, 129:d1/6e , 130:80/20, 131:e2/64, 132:3f/6f, 133:f7/65, 134:e2/73, 135:86/20 , 136:cd/6e, 137:c0/6f, 138:ed/74, 139:06/20, 140:41/68, 141:66/61 , 142:0f/76, 143:b7/65, 144:c9/20, 145:66/61, 146:f7/6e, 147:e1/20 , 148:66/6f, 149:89/70, 150:46/65, 151:f8/72, 152:83/61, 153:7e/74 , 154:16/69, 155:00/6e, 156:75/67, 157:38/20, 158:83/73, 159:7e/79 , 160:2a/73, 161:00/74, 162:77/65, 163:32/6d, 164:66/20, 165:8b/6c , 166:46/6f, 167:1c/61, 168:66/64, 169:83/65, 170:c0/72, 171:0c/20 , 172:bb/69, 173:00/6e, 174:80/73, 175:b9/74, 176:01/61, 177:00/6c , 178:e8/6c, 179:2b/65, 180:00/64, 181:e9/20, 182:48/6f, 183:03/6e , 184:a0/20, 185:fa/69, 186:7d/74, 187:b4/2e, 188:7d/0a, 189:8b/0d , 190:f0/50, 191:ac/72, 192:84/65, 193:c0/73, 194:74/73, 195:17/20 , 196:3c/61, 197:ff/20, 198:74/6b, 199:09/65, 200:b4/79, 201:0e/20 , 202:bb/74, 203:07/6f, 204:00/20, 205:cd/72, 206:10/65, 207:eb/62 , 208:ee/6f, 209:a0/6f, 210:fb/74, 211:7d/2e, 212:eb/2e, 213:e5/2e , 214:a0/00, 215:f9/00, 216:7d/00, 217:eb/00, 218:e0/00, 219:98/00 , 220:cd/00, 221:16/00, 222:cd/00, 223:19/00, 224:66/00, 225:60/00 , 226:66/00, 227:3b/00, 228:46/00, 229:f8/00, 230:0f/00, 231:82/00 , 232:4a/00, 234:66/00, 235:6a/00, 237:66/00, 238:50/00, 239:06/00 , 240:53/00, 241:66/00, 242:68/00, 243:10/00, 245:01/00, 247:80/00 , 248:7e/00, 249:02/00, 251:0f/00, 252:85/00, 253:20/00, 255:b4/00 , 256:41/00, 257:bb/00, 258:aa/00, 259:55/00, 260:8a/00, 261:56/00 , 262:40/00, 263:cd/00, 264:13/00, 265:0f/00, 266:82/00, 267:1c/00 , 269:81/00, 270:fb/00, 271:55/00, 272:aa/00, 273:0f/00, 274:85/00 , 275:14/00, 277:f6/00, 278:c1/00, 279:01/00, 280:0f/00, 281:84/00 , 282:0d/00, 284:fe/00, 285:46/00, 286:02/00, 287:b4/00, 288:42/00 , 289:8a/00, 290:56/00, 291:40/00, 292:8b/00, 293:f4/00, 294:cd/00 , 295:13/00, 296:b0/00, 297:f9/00, 298:66/00, 299:58/00, 300:66/00 , 301:58/00, 302:66/00, 303:58/00, 304:66/00, 305:58/00, 306:eb/00 , 307:2a/00, 308:66/00, 309:33/00, 310:d2/00, 311:66/00, 312:0f/00 , 313:b7/00, 314:4e/00, 315:18/00, 316:66/00, 317:f7/00, 318:f1/00 , 319:fe/00, 320:c2/00, 321:8a/00, 322:ca/00, 323:66/00, 324:8b/00 , 325:d0/00, 326:66/00, 327:c1/00, 328:ea/00, 329:10/00, 330:f7/00 , 331:76/00, 332:1a/00, 333:86/00, 334:d6/00, 335:8a/00, 336:56/00 , 337:40/00, 338:8a/00, 339:e8/00, 340:c0/00, 341:e4/00, 342:06/00 , 343:0a/00, 344:cc/00, 345:b8/00, 346:01/00, 347:02/00, 348:cd/00 , 349:13/00, 350:66/00, 351:61/00, 352:0f/00, 353:82/00, 354:54/00 , 355:ff/00, 356:81/00, 357:c3/00, 359:02/00, 360:66/00, 361:40/00 , 362:49/00, 363:0f/00, 364:85/00, 365:71/00, 366:ff/00, 367:c3/00 , 368:4e/00, 369:54/00, 370:4c/00, 371:44/00, 372:52/00, 373:20/00 , 374:20/00, 375:20/00, 376:20/00, 377:20/00, 378:20/00, 428:0d/00 , 429:0a/00, 430:4e/00, 431:54/00, 432:4c/00, 433:44/00, 434:52/00 , 435:20/00, 436:69/00, 437:73/00, 438:20/00, 439:6d/00, 440:69/00 , 441:73/00, 442:73/00, 443:69/00, 444:6e/00, 445:67/00, 446:ff/00 , 447:0d/00, 448:0a/00, 449:44/00, 450:69/00, 451:73/00, 452:6b/00 , 453:20/00, 454:65/00, 455:72/00, 456:72/00, 457:6f/00, 458:72/00 , 459:ff/00, 460:0d/00, 461:0a/00, 462:50/00, 463:72/00, 464:65/00 , 465:73/00, 466:73/00, 467:20/00, 468:61/00, 469:6e/00, 470:79/00 , 471:20/00, 472:6b/00, 473:65/00, 474:79/00, 475:20/00, 476:74/00 , 477:6f/00, 478:20/00, 479:72/00, 480:65/00, 481:73/00, 482:74/00 , 483:61/00, 484:72/00, 485:74/00, 486:0d/00, 487:0a/00, 505:ac/00 , 506:bf/00, 507:cc/00 Not automatically fixing this. Boot sector contents: System ID "MSWIN4.1" Media byte 0xf8 (hard disk) 512 bytes per logical sector 8192 bytes per cluster 32 reserved sectors First FAT starts at byte 16384 (sector 32) 2 FATs, 32 bit entries 4881408 bytes per FAT (= 9534 sectors) Root directory start at cluster 2 (arbitrary size) Data area starts at byte 9779200 (sector 19100) 171166 data clusters (1402191872 bytes) 63 sectors/track, 255 heads 63 hidden sectors 19534977 sectors total /PAGEFILE.SYS Start cluster beyond limit (224385 > 171167). Truncating file. /PAGEFILE.SYS File size is 402653184 bytes, cluster chain length is 0 bytes. Truncating file to 0 bytes. /WINDOWS Start cluster beyond limit (229505 > 171167). Truncating file. /NTLDR Start cluster beyond limit (222215 > 171167). Truncating file. /NTLDR File size is 277152 bytes, cluster chain length is 0 bytes. Truncating file to 0 bytes. /NTDETECT.COM Start cluster beyond limit (222209 > 171167). Truncating file. /NTDETECT.COM File size is 47548 bytes, cluster chain length is 0 bytes. Truncating file to 0 bytes. /BOOT.INI Start cluster beyond limit (277324 > 171167). Truncating file. /BOOT.INI File size is 231 bytes, cluster chain length is 0 bytes. Truncating file to 0 bytes. /Documents and Settings Start cluster beyond limit (277481 > 171167). Truncating file. /Program Files Start cluster beyond limit (300092 > 171167). Truncating file. /WMPUB Start cluster beyond limit (333125 > 171167). Truncating file. /ATI Start cluster beyond limit (434288 > 171167). Truncating file. /Recycled Start cluster beyond limit (424259 > 171167). Truncating file. /TOTALCMD Start cluster beyond limit (425799 > 171167). Truncating file. /WUTemp Start cluster beyond limit (664668 > 171167). Truncating file. /Windows_2003_Standard_Server.iso Start cluster beyond limit (445474 > 171167). Truncating file. /Windows_2003_Standard_Server.iso File size is 532008960 bytes, cluster chain length is 0 bytes. Truncating file to 0 bytes. /TOTALA Start cluster beyond limit (424301 > 171167). Truncating file. Checking for unused clusters. Checking free cluster summary. Free cluster summary wrong (568682 vs. really 2564) Auto-correcting. Leaving file system unchanged. /dev/hda1: 6446 files, 168602/171166 clusters [EMAIL PROTECTED]:~$ ------------------LOG---END---------------------------- -- Best regards, Aigars Mahinovs mailto:[EMAIL PROTECTED] #--------------------------------------------------------------# | .''`. Debian GNU/Linux LAKA | | : :' : http://www.debian.org & http://www.laka.lv | | `. `' | | `- | #--------------------------------------------------------------# -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]