Page 1 of 1

bootsector Fat32 differences

Posted: Tue Apr 03, 2007 4:46 am
by AlCantara
Hello

some days ago I did hdparm optimizations for my four IDE hdds. (hdparm -c1 -m16) these are run every boot via /etc/hdparm.conf.

the next boot I got lots of errors:

Code: Select all

"There are differences between boot sector and its backup.
Differences: (offset:original/backup)"
/var/log/fsck/checkfs contains the following

Code: Select all

fsck 1.39 (29-May-2006)
Linux2: clean, 11/3677472 files, 123588/3674860 blocks
/dev/hdg1: clean, 256548/24428544 files, 5763226/48839600 blocks
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
There are differences between boot sector and its backup.
Differences: (offset:original/backup)
  90:33/fa, 91:c9/33, 92:8e/c9, 93:d1/8e, 94:bc/d1, 95:f4/bc, 96:7b/f8
  , 97:8e/7b, 98:c1/8e, 99:8e/c1, 100:d9/bd, 101:bd/78, 103:7c/c5, 104:88/76
  , 105:4e/00, 106:02/1e, 107:8a/56, 108:56/16, 109:40/55, 110:b4/bf
  , 111:08/22, 112:cd/05, 113:13/89, 114:73/7e, 115:05/00, 116:b9/89
  , 117:ff/4e, 118:ff/02, 119:8a/b1, 120:f1/0b, 121:66/fc, 122:0f/f3
  , 123:b6/a4, 124:c6/8e, 125:40/d9, 126:66/bd, 127:0f/00, 128:b6/7c
  , 129:d1/c6, 130:80/45, 131:e2/fe, 132:3f/0f, 133:f7/8b, 134:e2/46
  , 135:86/18, 136:cd/88, 137:c0/45, 138:ed/f9, 139:06/38, 140:41/4e
  , 141:66/40, 142:0f/7d, 143:b7/25, 144:c9/8b, 145:66/c1, 146:f7/99
  , 147:e1/bb, 148:66/00, 149:89/07, 150:46/e8, 151:f8/97, 152:83/00
  , 153:7e/72, 154:16/1a, 155:00/83, 156:75/eb, 157:38/3a, 158:83/66
  , 159:7e/a1, 160:2a/1c, 161:00/7c, 162:77/66, 163:32/3b, 164:66/07
  , 165:8b/8a, 166:46/57, 167:1c/fc, 168:66/75, 169:83/06, 170:c0/80
  , 171:0c/ca, 172:bb/02, 173:00/88, 174:80/56, 175:b9/02, 176:01/80
  , 177:00/c3, 178:e8/10, 179:2b/73, 180:00/ed, 181:e9/bf, 182:48/02
  , 183:03/00, 184:a0/83, 185:fa/7e, 186:7d/16, 187:b4/00, 188:7d/75
  , 189:8b/45, 190:f0/8b, 191:ac/46, 192:84/1c, 193:c0/8b, 194:74/56
  , 195:17/1e, 196:3c/b9, 197:ff/03, 198:74/00, 199:09/49, 200:b4/40
  , 201:0e/75, 202:bb/01, 203:07/42, 204:00/bb, 205:cd/00, 206:10/7e
  , 207:eb/e8, 208:ee/5f, 209:a0/00, 210:fb/73, 211:7d/26, 212:eb/b0
  , 213:e5/f8, 214:a0/4f, 215:f9/74, 216:7d/1d, 217:eb/8b, 218:e0/46
  , 219:98/32, 220:cd/33, 221:16/d2, 222:cd/b9, 223:19/03, 224:66/00
  , 225:60/3b, 226:66/c8, 227:3b/77, 228:46/1e, 229:f8/8b, 230:0f/76
  , 231:82/0e, 232:4a/3b, 233:00/ce, 234:66/73, 235:6a/17, 236:00/2b
  , 237:66/f1, 238:50/03, 239:06/46, 240:53/1c, 241:66/13, 242:68/56
  , 243:10/1e, 244:00/eb, 245:01/d1, 246:00/73, 247:80/0b, 248:7e/eb
  , 249:02/27, 250:00/83, 251:0f/7e, 252:85/2a, 253:20/00, 254:00/77
  , 255:b4/03, 256:41/e9, 257:bb/fd, 258:aa/02, 259:55/be, 260:8a/7e
  , 261:56/7d, 262:40/ac, 263:cd/98, 264:13/03, 265:0f/f0, 266:82/ac
  , 267:1c/84, 268:00/c0, 269:81/74, 270:fb/17, 271:55/3c, 272:aa/ff
  , 273:0f/74, 274:85/09, 275:14/b4, 276:00/0e, 277:f6/bb, 278:c1/07
  , 279:01/00, 280:0f/cd, 281:84/10, 282:0d/eb, 283:00/ee, 284:fe/be
  , 285:46/81, 286:02/7d, 287:b4/eb, 288:42/e5, 289:8a/be, 290:56/7f
  , 291:40/7d, 292:8b/eb, 293:f4/e0, 294:cd/98, 295:13/cd, 296:b0/16
  , 297:f9/5e, 298:66/1f, 299:58/66, 300:66/8f, 301:58/04, 302:66/cd
  , 303:58/19, 304:66/41, 305:58/56, 306:eb/66, 307:2a/6a, 308:66/00
  , 309:33/52, 310:d2/50, 311:66/06, 312:0f/53, 313:b7/6a, 314:4e/01
  , 315:18/6a, 316:66/10, 317:f7/8b, 318:f1/f4, 319:fe/60, 320:c2/80
  , 321:8a/7e, 322:ca/02, 323:66/0e, 324:8b/75, 325:d0/04, 326:66/b4
  , 327:c1/42, 328:ea/eb, 329:10/1d, 330:f7/91, 331:76/92, 332:1a/33
  , 333:86/d2, 334:d6/f7, 335:8a/76, 336:56/18, 337:40/91, 338:8a/f7
  , 339:e8/76, 340:c0/18, 341:e4/42, 342:06/87, 343:0a/ca, 344:cc/f7
  , 345:b8/76, 346:01/1a, 347:02/8a, 348:cd/f2, 349:13/8a, 350:66/e8
  , 351:61/c0, 352:0f/cc, 353:82/02, 354:54/0a, 355:ff/cc, 356:81/b8
  , 357:c3/01, 358:00/02, 359:02/8a, 360:66/56, 362:49/cd, 363:0f/13
  , 364:85/61, 365:71/8d, 366:ff/64, 367:c3/10, 368:4e/5e, 369:54/72
  , 370:4c/0a, 371:44/40, 372:52/75, 373:20/01, 374:20/42, 375:20/03
  , 376:20/5e, 377:20/0b, 378:20/49, 379:00/75, 380:00/b4, 381:00/c3
  , 382:00/03, 383:00/18, 384:00/01, 385:00/27, 386:00/0d, 387:00/0a
  , 388:00/55, 389:00/6e, 390:00/67, 391:00/75, 392:00/65, 393:00/6c
  , 394:00/74, 395:00/69, 396:00/67, 397:00/65, 398:00/73, 399:00/20
  , 400:00/53, 401:00/79, 402:00/73, 403:00/74, 404:00/65, 405:00/6d
  , 406:00/20, 407:00/ff, 408:00/0d, 409:00/0a, 410:00/45, 411:00/2f
  , 412:00/41, 413:00/2d, 414:00/46, 415:00/65, 416:00/68, 417:00/6c
  , 418:00/65, 419:00/72, 420:00/20, 421:00/20, 422:00/20, 423:00/20
  , 424:00/ff, 425:00/0d, 426:00/0a, 427:00/44, 428:0d/61, 429:0a/74
  , 430:4e/65, 431:54/6e, 432:4c/74, 433:44/72, 434:52/61, 435:20/65
  , 436:66/67, 438:dosfsck 2.11, 12 Mar 2005, FAT32, LFN
/dev/sdb5: 4923 files, 607950/1687532 clusters
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
/dev/hde1: 1498 files, 7596461/7629261 clusters
68/72, 439:6c/20, 440:74/77, 441:ff/65, 442:0d/63
  , 443:0a/68, 444:44/73, 445:61/65, 446:74/6c, 447:65/6e, 448:6e/20
  , 449:74/75, 450:72/6e, 451:84/64, 452:67/20, 453:65/54, 454:72/61
  , 455:66/73, 456:65/74, 457:68/65, 458:6c/20, 459:65/64, 461:ff/75
  , 462:0d/65, 463:0a/63, 464:4e/6b, 466:75/6e, 467:73/0d, 468:74/0a
  , 469:61/00, 470:72/00, 471:74/00, 472:20/49, 473:6d/4f, 474:69/20
  , 475:74/20, 477:62/20, 478:65/20, 479:6c/20, 480:69/53, 481:65/59
  , 482:62/53, 483:69/4d, 484:67/53, 485:65/44, 486:72/4f, 487:20/53
  , 488:54/20, 489:61/20, 490:73/20, 491:74/53, 492:65/59, 493:0d/53
  , 494:0a/7e, 495:00/01, 497:00/57, 498:00/49, 499:00/4e, 500:00/42
  , 501:00/4f, 502:00/4f, 503:00/54, 504:00/20, 505:ac/53, 506:ba/59
  , 507:ce/53
  Not automatically fixing this.
/dev/sda1: 26170 files, 945202/1276669 clusters
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
/dev/sdb7: 91677 files, 762567/1093908 clusters
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
/dev/sda2: 23919 files, 1089570/1609376 clusters
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
/dev/hdb5: 58428 files, 1869179/1919548 clusters
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
/dev/hda1: 99895 files, 5689381/7629261 clusters
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
/dev/sdb8: 36694 files, 6262489/6289667 clusters
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
/dev/hdb6: 11812 files, 5618361/5709461 clusters
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
/dev/sda6: 250665 files, 1142537/1279551 clusters
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
/dev/sda7: 240522 files, 4755708/5738320 clusters
there have been several more of these bootsector-errors (with less binary output) which I could correct manually using dosfschk.
sudo dosfsck -v -V -r /dev/hdxx
the errors where found again and I used the option 'copy original to backup', what fixed most of the errors, except of this two.
(also win2000 is happy with it, as it always was. and so was the manual w2000 filesystem-check.)
- I can´t see what partition the first error is from (checked every partition)
- the second error seems to be caused by hde1, but dosfsck can´t find it.

some of the fixed errors where caused by partitions on my two sata-disks, which where not affected by hdparm-changes.

Code: Select all

# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
# /dev/sda3
UUID=48f571eb-6c64-460e-ae3e-031e546137e5 /               ext3    defaults,errors=remount-ro 0       1
/dev/sda5       /media/linux2	 ext3    user,rw,exec        0       2

# /dev/sdb6   SWAP
UUID=6c0b13d9-d3fb-4410-ada6-bd12351e0ded none	swap		sw              0       0

# /dev/hdd1
UUID=0159-49CC  /media/halde	 vfat    user,rw,exec,utf8,umask=007,gid=46 	0       2

# /dev/sda1
UUID=3A22-16ED  /media/system1	 vfat    user,rw,exec,utf8,umask=007,gid=46 	0       2

# /dev/sda2
UUID=17B5-B17D  /media/system2	 vfat    user,rw,exec,utf8,umask=007,gid=46 	0       2

# /dev/sda6
UUID=64EB-A8B9  /media/common	 vfat    user,rw,exec,utf8,umask=007,gid=46 	0       2

# /dev/sda7
UUID=6095-8A41  /media/install	 vfat    user,rw,exec,utf8,umask=007,gid=46 	0       2

# /dev/sdb5
UUID=95B9-02B6  /media/temp	 vfat    user,rw,exec,utf8,umask=007,gid=46 	0       2

# /dev/sdb7
UUID=1CF6-AF08  /media/dokumente vfat    user,rw,exec,utf8,umask=007,gid=46 	0       2

# /dev/sdb8
UUID=D957-D8C5  /media/musik	 vfat    user,rw,exec,utf8,umask=007,gid=46 	0       2

# /dev/hda1
UUID=1EF1-8A79	/media/trans250	 vfat	 user,rw,exec,utf8,umask=007,gid=46 	0	2

#/dev/hdb5
UUID=41E7-F6F1	/media/games	 vfat	 user,rw,exec,utf8,umask=007,gid=46 	0	2

#/dev/hdb6	
UUID=454E-43C5	/media/movies	 vfat	 user,rw,exec,utf8,umask=007,gid=46 	0	2

#/dev/sdc5	
#UUID=3E60588BFC42C23E	/media/samsung250 ntfs-3g	user,rw,exec,utf8,umask=007,gid=46 	0	0
UUID=CF30B0BFF1ECA261	/media/samsung250 ntfs-3g	locatle=de_DE.utf8,user,rw,exec,umask=007,gid=46 	0	2

#/dev/hdg1	
UUID=7a0e6d82-6249-4cdd-83af-14a73c4aae4c	/media/samsung200 ext3	 user,rw,exec	0	2

/dev/hdc        /media/cdrom0   udf,iso9660 user,noauto     0       0
/dev/           /media/floppy0  auto    rw,user,noauto  0       0
nothing interesting in dmesg.

Code: Select all

 fdisk -l

Disk /dev/sda: 251.0 GB, 251000193024 bytes
255 heads, 63 sectors/track, 30515 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1         637     5116671    b  W95 FAT32
/dev/sda2             638        1440     6450097+   c  W95 FAT32 (LBA)
/dev/sda3   *        1441        3269    14691442+  83  Linux
/dev/sda4            3270       30515   218853495    f  W95 Ext'd (LBA)
/dev/sda5            3270        5099    14699443+  83  Linux
/dev/sda6            5100        7649    20482843+   b  W95 FAT32
/dev/sda7            7650       30515   183671113+   b  W95 FAT32

Disk /dev/sdb: 251.0 GB, 251000193024 bytes
255 heads, 63 sectors/track, 30515 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           2       30515   245103705    f  W95 Ext'd (LBA)
/dev/sdb5               2         843     6763333+   b  W95 FAT32
/dev/sdb6             844        1093     2008093+  82  Linux swap / Solaris
/dev/sdb7            1094        5452    35013636    b  W95 FAT32
/dev/sdb8            5453       30515   201318516    b  W95 FAT32

Disk /dev/hda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1       30401   244196001    c  W95 FAT32 (LBA)

Disk /dev/hdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdb1   *           2       30401   244188000    f  W95 Ext'd (LBA)
/dev/hdb5               2        7650    61440561    b  W95 FAT32
/dev/hdb6            7651       30401   182747376    b  W95 FAT32

Disk /dev/hde: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hde1   *           1       30401   244196001    c  W95 FAT32 (LBA)

Disk /dev/hdg: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdg1               1       24321   195358401   83  Linux

Disk /dev/sdc: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc2   *           2       30401   244188000    5  Extended
/dev/sdc5               2       30401   244187968+   7  HPFS/NTFS

Posted: Wed Apr 04, 2007 7:45 am
by Husse
A lot to read here :)
You have FAT32 and maybe its lack of journaling capability plays a role here, I believe that the boot sector is watched over as well in a journaling file system. (not the MBR though, I believe)
You say
- I can´t see what partition the first error is from (checked every partition)
but it appears below /dev/hdg1 even if it's status is given as clean?? and before the next dev which is sdb5 so it ought to belong to hdg1. Have you run scandisk and/or chkdsk in Windows? Don't know about W2k but in XP there are two modes to check your disk(s).

bootsector Fat32 differences

Posted: Fri Apr 06, 2007 6:56 am
by AlCantara
hello Husse

i don´t think that the missing journaling could be a problem. it worked for years, on different systems and the other fat32 partitons have no error (any more).

the hdg1 you refer to is ext3. i don´t expect dosfsck-fat32 errors from it. :)

i also checked all partitions with the win2000 checkdisk/scandisk or whatever it´s named.
>(also win2000 is happy with it, as it always was. and so was the manual w2000 filesystem-check.)
the two modes you mean could be the manual check via context-menu inside windows and the check at startup - i don´t know how to start the second one manually but i don´t expect different results.

I wonder: after the second binary output there´s the message
Not automatically fixing this.
but not after the first one.

today the /var/log/chkfs looks like this:

Code: Select all

Log of fsck -C -R -A -a 
Fri Apr  6 09:18:30 2007

fsck 1.39 (29-May-2006)
Linux2: clean, 11/3677472 files, 123588/3674860 blocks
/dev/hdg1: clean, 256727/24428544 files, 8113471/48839600 blocks (check in 2 mounts)
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
/dev/sdb5: 7407 files, 615018/1687532 clusters
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
/dev/hde1: 1497 files, 7595035/7629261 clusters
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
/dev/sda1: 26146 files, 945418/1276669 clusters
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
/dev/sdb7: 91724 files, 762660/1093908 clusters
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
/dev/sda2: 23919 files, 1089570/1609376 clusters
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
/dev/hdb5: 58428 files, 1869179/1919548 clusters
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
/dev/hda1: 99895 files, 5689381/7629261 clusters
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
/dev/sdb8: 36694 files, 6262489/6289667 clusters
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
/dev/hdb6: 11815 files, 5663065/5709461 clusters
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
/dev/sda6: 249330 files, 1140236/1279551 clusters
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
/dev/sda7: 241975 files, 4830588/5738320 clusters

Fri Apr  6 09:21:02 2007
----------------
but while booting there were still the messages about the differences of the bootsecotrs!
seems i have to delete and create all partitions again.

Posted: Fri Apr 06, 2007 10:28 am
by Husse
In win XP (I just checked) and I guess W2k you right click on an empty space in C and select tools (there are probably half a dozen ways to do this) and then "disk check" or some such. There are two tick boxes (repair automatcially and search for damaged sectors and repair or something like that) If you tick both you are told that the check will be done at the next boot. This brings forth a rather powerful disk checker. You might want to try that.
Besides hdparm is a dangerous toy..