Target FAT32 filesystem has fsck errors after install

Bug #500696 reported by Daniel Richard G.
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
usb-creator (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: usb-creator

I am using usb-creator 0.2.12 from the Karmic LiveCD to install to a USB thumbdrive.

I create a new FAT32 filesystem, check it with dosfsck(8), install the live system on it, re-run dosfsck(8), and see errors. See below for the step-by-step specifics:

root@ubuntu:~# mkdosfs -v -n usb-linux /dev/sdb2
mkdosfs 3.0.3 (18 May 2009)
Auto-selecting FAT32 for large filesystem
/dev/sdb2 has 124 heads and 62 sectors per track,
logical sector size is 512,
using 0xf8 media descriptor, with 1522224 sectors;
file system has 2 32-bit FATs and 8 sectors per cluster.
FAT size is 1484 sectors, and provides 189903 clusters.
Volume ID is eaf5bac9, volume label usb-linux.

root@ubuntu:~# fsck.msdos -n -v /dev/sdb2
dosfsck 3.0.3 (18 May 2009)
dosfsck 3.0.3, 18 May 2009, FAT32, LFN
Checking we can access the last sector of the filesystem
Boot sector contents:
System ID "mkdosfs"
Media byte 0xf8 (hard disk)
       512 bytes per logical sector
      4096 bytes per cluster
        32 reserved sectors
First FAT starts at byte 16384 (sector 32)
         2 FATs, 32 bit entries
    759808 bytes per FAT (= 1484 sectors)
Root directory start at cluster 2 (arbitrary size)
Data area starts at byte 1536000 (sector 3000)
    189903 data clusters (777842688 bytes)
62 sectors/track, 124 heads
         0 hidden sectors
   1522224 sectors total
Checking for unused clusters.
Checking free cluster summary.
/dev/sdb2: 1 files, 1/189903 clusters

(Do the usb-creator thing)

root@ubuntu:~# fsck.msdos -n -v /dev/sdb2
dosfsck 3.0.3 (18 May 2009)
dosfsck 3.0.3, 18 May 2009, 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:fa/0e, 91:fc/1f, 92:31/be, 93:c0/77, 94:8e/7c, 95:d0/ac, 96:bc/22
  , 97:b4/c0, 98:7b/74, 99:06/0b, 100:57/56, 101:8e/b4, 102:c0/0e, 103:b9/bb
  , 104:08/07, 106:bf/cd, 107:b4/10, 108:7b/5e, 109:f3/eb, 110:a5/f0
  , 111:8e/32, 112:d8/e4, 113:bb/cd, 114:78/16, 115:00/cd, 116:0f/19
  , 117:b4/eb, 118:37/fe, 119:0f/54, 120:a0/68, 121:56/69, 122:88/73
  , 123:16/20, 124:31/69, 125:2c/73, 127:d2/6e, 128:78/6f, 129:15/74
  , 130:b1/20, 131:06/61, 132:89/20, 133:3f/62, 134:89/6f, 135:47/6f
  , 136:02/74, 137:f3/61, 138:64/62, 139:a5/6c, 140:8a/65, 141:0e/20
  , 142:18/64, 143:7c/69, 144:88/73, 145:4d/6b, 146:f8/2e, 147:cd/20
  , 148:13/20, 149:eb/50, 150:27/6c, 151:f6/65, 152:45/61, 153:f0/73
  , 154:7f/65, 155:75/20, 156:08/69, 157:66/6e, 158:8b/73, 159:45/65
  , 160:f8/72, 161:66/74, 162:a3/20, 163:1c/61, 164:7c/20, 165:b4/62
  , 166:08/6f, 167:cd/6f, 168:13/74, 169:72/61, 170:13/62, 171:20/6c
  , 172:e4/65, 173:75/20, 174:0f/66, 175:c1/6c, 176:ea/6f, 177:08/70
  , 178:42/70, 179:89/79, 180:16/20, 181:1a/61, 182:7c/6e, 183:83/64
  , 184:e1/0d, 185:3f/0a, 186:89/70, 187:0e/72, 188:18/65, 189:7c/73
  , 190:fb/73, 191:bb/20, 192:aa/61, 193:55/6e, 194:b4/79, 195:41/20
  , 196:8a/6b, 197:16/65, 198:31/79, 199:2c/20, 200:cd/74, 201:13/6f
  , 202:72/20, 203:10/74, 204:81/72, 205:fb/79, 206:55/20, 207:aa/61
  , 208:75/67, 209:0a/61, 210:f6/69, 211:c1/6e, 212:01/20, 213:74/2e
  , 214:05/2e, 215:c6/2e, 216:06/20, 217:05/0d, 218:7d/0a, 220:66/00
  , 221:a1/00, 222:f8/00, 223:7d/00, 224:bb/00, 226:7e/00, 227:e8/00
  , 228:10/00, 230:66/00, 231:81/00, 232:3e/00, 233:2c/00, 234:7e/00
  , 235:6b/00, 236:a2/00, 237:ce/00, 238:76/00, 239:0f/00, 240:85/00
  , 241:c6/00, 243:e9/00, 244:42/00, 245:02/00, 246:bd/00, 247:01/00
  , 249:66/00, 250:03/00, 251:06/00, 252:1c/00, 253:7c/00, 254:66/00
  , 255:31/00, 256:d2/00, 257:e9/00, 260:eb/00, 261:4f/00, 262:55/00
  , 263:e8/00, 264:d5/00, 266:66/00, 267:0f/00, 268:b7/00, 269:fd/00
  , 270:b9/00, 271:10/00, 273:66/00, 274:52/00, 275:66/00, 276:50/00
  , 277:06/00, 278:53/00, 279:57/00, 280:6a/00, 281:10/00, 282:89/00
  , 283:e6/00, 284:66/00, 285:60/00, 286:8a/00, 287:16/00, 288:31/00
  , 289:2c/00, 290:1e/00, 291:16/00, 292:1f/00, 293:b4/00, 294:42/00
  , 295:cd/00, 296:13/00, 297:1f/00, 298:66/00, 299:61/00, 300:8d/00
  , 301:64/00, 302:10/00, 303:72/00, 304:10/00, 305:5d/00, 306:66/00
  , 307:01/00, 308:f8/00, 309:29/00, 310:fd/00, 311:c1/00, 312:e7/00
  , 313:09/00, 314:01/00, 315:fb/00, 316:21/00, 317:ed/00, 318:75/00
  , 319:c6/00, 320:c3/00, 321:66/00, 322:60/00, 323:31/00, 324:c0/00
  , 325:8a/00, 326:16/00, 327:31/00, 328:2c/00, 329:cd/00, 330:13/00
  , 331:66/00, 332:61/00, 333:e2/00, 334:c2/00, 335:c6/00, 336:06/00
  , 337:05/00, 338:7d/00, 339:4f/00, 340:5d/00, 341:66/00, 342:52/00
  , 343:66/00, 344:50/00, 345:55/00, 346:53/00, 347:66/00, 348:0f/00
  , 349:b7/00, 350:36/00, 351:18/00, 352:7c/00, 353:66/00, 354:0f/00
  , 355:b7/00, 356:3e/00, 357:1a/00, 358:7c/00, 359:66/00, 360:f7/00
  , 361:f6/00, 362:31/00, 363:c9/00, 364:87/00, 365:ca/00, 366:66/00
  , 367:f7/00, 368:f7/00, 369:e8/00, 370:6b/00, 372:29/00, 373:ce/00
  , 374:39/00, 375:f5/00, 376:76/00, 377:02/00, 378:89/00, 379:f5/00
  , 380:c0/00, 381:e4/00, 382:06/00, 383:41/00, 384:08/00, 385:e1/00
  , 386:88/00, 387:c5/00, 388:88/00, 389:d6/00, 390:8a/00, 391:16/00
  , 392:31/00, 393:2c/00, 394:95/00, 395:b4/00, 396:02/00, 397:bd/00
  , 398:10/00, 400:66/00, 401:60/00, 402:cd/00, 403:13/00, 404:66/00
  , 405:61/00, 406:72/00, 407:17/00, 408:66/00, 409:0f/00, 410:b6/00
  , 411:c8/00, 412:c1/00, 413:e0/00, 414:09/00, 415:5b/00, 416:01/00
  , 417:c3/00, 418:5d/00, 419:66/00, 420:58/00, 421:66/00, 422:5a/00
  , 423:66/00, 424:01/00, 425:c8/00, 426:29/00, 427:cd/00, 428:75/00
  , 429:a7/00, 430:c3/00, 431:4d/00, 432:75/00, 433:de/00, 434:95/00
  , 435:d1/00, 436:2e/00, 437:fc/00, 438:7d/00, 439:75/00, 440:df/00
  , 441:31/00, 442:f6/00, 443:8e/00, 444:d6/00, 445:bc/00, 446:b0/00
  , 447:7b/00, 448:8e/00, 449:de/00, 450:66/00, 451:8f/00, 452:06/00
  , 453:78/00, 455:be/00, 456:ea/00, 457:7d/00, 458:ac/00, 459:20/00
  , 460:c0/00, 461:74/00, 462:09/00, 463:b4/00, 464:0e/00, 465:bb/00
  , 466:07/00, 468:cd/00, 469:10/00, 470:eb/00, 471:f2/00, 472:98/00
  , 473:cd/00, 474:16/00, 475:cd/00, 476:19/00, 477:eb/00, 478:fe/00
  , 479:3b/00, 480:2e/00, 481:fc/00, 482:7d/00, 483:76/00, 484:04/00
  , 485:8b/00, 486:2e/00, 487:fc/00, 488:7d/00, 489:c3/00, 490:42/00
  , 491:6f/00, 492:6f/00, 493:74/00, 494:20/00, 495:65/00, 496:72/00
  , 497:72/00, 498:6f/00, 499:72/00, 500:0d/00, 501:0a/00, 504:c0/00
  , 505:0b/00, 508:7f/00
  Not automatically fixing this.
Boot sector contents:
System ID "mkdosfs"
Media byte 0xf8 (hard disk)
       512 bytes per logical sector
      4096 bytes per cluster
        32 reserved sectors
First FAT starts at byte 16384 (sector 32)
         2 FATs, 32 bit entries
    759808 bytes per FAT (= 1484 sectors)
Root directory start at cluster 2 (arbitrary size)
Data area starts at byte 1536000 (sector 3000)
    189903 data clusters (777842688 bytes)
62 sectors/track, 124 heads
         0 hidden sectors
   1522224 sectors total
Checking for unused clusters.
Checking free cluster summary.
Free cluster summary wrong (13325 vs. really 13321)
  Auto-correcting.
Leaving file system unchanged.
/dev/sdb2: 207 files, 176582/189903 clusters

Revision history for this message
Phillip Susi (psusi) wrote :

I see the same thing, though I don't think this has anything to do with usb-creator. I think it's a bug in the kernel fsd not updating the backup. Further testing needed.

Changed in usb-creator (Ubuntu):
status: New → Confirmed
Revision history for this message
Daniel Richard G. (skunk) wrote :

Still seeing this bug on an up-to-date Lucid system.

Is there a way to test this outside of usb-creator? I'm not familiar with how the boot sector in a DOS filesystem is modified, let alone what the "proper" way of doing it (that would update the backup as well) would be. But if usb-creator is writing the boot sector by doing the equivalent of a dd(1) directly to the device, then I don't think the filesystem driver can be faulted.

Revision history for this message
Jan David Mol (jjdmol) wrote :

Bug still present on an up-to-date 11.04.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.