bug-parted
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

P: err-msg Bad FAT but dosfsck+scandisk are ok


From: tbuchal
Subject: P: err-msg Bad FAT but dosfsck+scandisk are ok
Date: Sun, 14 Jan 2001 23:55:27 +0100
User-agent: Mutt/1.2.5i

   Hi Andrew,

  I tried again to overcome my problems with parted using your newest
  version (1.4.7-pre5).
  I am now able to ignore some of the errors, but I still get

 
|--------------------------------------------------------------------------------
 |Fatal: Bad FAT: cluster 13920 is cross-linked for \WINDOWS\SYSTEM.DAT.  You
 |should run dosfsck or scandisk.
 
|--------------------------------------------------------------------------------

  I ran both, dosfsck and scandisk, which could both not find any problem.
  (parted complained also afterwards)

  Any ideas what is wrong ? (filesystem or parted ?)

  yours
  tobias


  in detail:
 
|--------------------------------------------------------------------------------
 |address@hidden:/tmp:[3]$  parted /dev/hde
 |GNU Parted 1.4.7-pre5
 |Copyright ...
 |Using /dev/hde
 |Warning: The operating system thinks the geometry on /dev/hde is 23392/16/63.
 |Therefore, cylinder 1024 ends at 503.999M.  You should check that this matches
 |the BIOS geometry before using this program.
 |(parted) print
 |Disk geometry for /dev/hde: 0.000-11513.250 megabytes
 |Disk label type: msdos
 |Minor    Start       End     Type      Filesystem  Flags
 |1          0.031     20.179  primary   ext2        boot
 |2         20.180   3740.132  primary   FAT         lba
 |3       3740.133  11513.250  extended
 |5       3740.164   6140.039  logical   ext2
 |6       6140.070  10640.109  logical   ext2
 |7      10640.140  11385.281  logical   ext2
 |8      11385.312  11513.250  logical   linux-swap
 
|--------------------------------------------------------------------------------
 |root$  parted /dev/hda
 |GNU Parted 1.4.7-pre5
 |.....
 |(parted) print
 |Warning: The partition table on /dev/hda is inconsistent.  There are many
 |reasons why this might be the case.  Often, the reason is that Linux detected
 |the BIOS geometry incorrectly.  However, this does not appear to be the case
 |here.
 |Ignore Cancel ? i
 |Disk geometry for /dev/hda: 0.000-2067.187 megabytes
 |Disk label type: msdos
 |Minor    Start       End     Type      Filesystem  Flags
 |1          0.031   1055.250  primary   FAT
 |2       1055.250   1106.437  primary   linux-swap
 |3       1106.438   2067.187  primary   ext2        boot
 |
 |root$  parted /dev/hde
 |......
 |Using /dev/hde
 |(parted) cp /dev/hda 1 2
 |Warning: The partition table on /dev/hda is inconsistent.  There are many
 |reasons why this might be the case.  Often, the reason is that Linux detected
 |the BIOS geometry incorrectly.  However, this does not appear to be the case
 |here.
 |Ignore Cancel ? i
 |Warning: Error reading /proc/swaps (No such file or directory) to determine if
 |partition is mounted.
 |Fatal: Bad FAT: cluster 13920 is cross-linked for \WINDOWS\SYSTEM.DAT.  You
 |should run dosfsck or scandisk.
 
|--------------------------------------------------------------------------------


  output of dosfsck
 |--------------------------------------------------
 |root$ dosfsck -vr /dev/hda1
 |dosfsck 2.5 (07 Jan 2000)
 |dosfsck 2.5, 07 Jan 2000, FAT32, LFN
 |Boot sector contents:
 |System ID "MSWIN4.1"
 |Media byte 0xf8 (hard disk)
 |       512 bytes per logical sector
 |     32768 bytes per cluster
 |         1 reserved sector
 |First FAT starts at byte 512 (sector 1)
 |         2 FATs, 16 bit entries
 |    131072 bytes per FAT (= 256 sectors)
 |Root directory starts at byte 262656 (sector 513)
 |       512 root directory entries
 |Data area starts at byte 279040 (sector 545)
 |     33758 data clusters (1106182144 bytes)
 |63 sectors/track, 128 heads
 |        63 hidden sectors
 |   2161089 sectors total
 |Checking for unused clusters.
 |/dev/hda1: 4557 files, 15890/33758 clusters
 |--------------------------------------------------

  I ran also defrag and scandisk on the WIN95 partition (/dev/hda1)
  None of them found any problem and parted gave me exactly the same
  error message afterwards.
   
  I am using:
  -----------
     Debian 2.0 with  libc 2.0.7 and Kernel 2.033
     I compiled parted with:
        ./configure  --without-readline --disable-nls --disable-shared  

  Hints:
 --------
 1) compatibility  2.0 Kernel
     I had to comment a few lines in /libparted/device.c to get it compling
     ( see attached file)
 2) error message
     present:  "You should run dosfsck or scandisk"
     better:   "You should run dosfsck(on Linux) or scandisk(on WIN)"
 3) By the way: I tried also "partition magic6 pro" (test version)
     which also didn't work.
     It deleted the Linux partitions from my partition table and
     quited with "cannot correctly detect the letter for your drive"
     (Win95 itself recognized the partition (on my external via PCMCIA
      connected disk) correctly as "E:")

Attachment: device.c
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]