Bug#2077: mdir says "fat_read: Wrong FAT encoding?" on valid dos partition
Package: mtools
Version: 2.0.7-12
With the following /etc/mtools.ref
A /dev/fd0 12 0 0 0
B /dev/fd1 12 0 0 0
C /dev/hda1 16 0 0 0
either with or without the additional line
#CHK_FAT=FALSE
I get:
# mdir c:
fat_read: Wrong FAT encoding?
Exit 1
The kernel handles the partition fine:
/dev/hda1 on /dos type msdos (rw,uid=3382)
Filesystem 1024-blocks Used Available Capacity Mounted on
/dev/hda1 102600 49728 52872 48% /dos
Fdisk says it's a 16 bit partition...
Device Boot Begin Start End Blocks Id System
/dev/hda1 1 1 102 102784+ 6 DOS 16-bit >=32M
and an old (non-debian 2.0.5+) version of mtools handles the disk
fine, as dos DOS itself (chkdsk and scandisk report no problems.)
I'll note that while the man page suggests a #CHK_FAT=FALSE option,
the strings appear nowhere in the executables, leading me to suspect
that it isn't actually recognized.
Release information: debian 0.93r6
uname -a: Linux depreciation 1.2.13 #2 Sat Dec 30 18:08:13 EST 1995 i486
(problem occurred equally with the stock debian kernel.)
libc: libc.so.4.6.27
_Mark_ <eichin@cygnus.com>
Cygnus Support, Eastern USA
Reply to: