Jump to content











Photo
- - - - -

Sector error accessing some files


  • Please log in to reply
2 replies to this topic

#1 ktp

ktp

    Silver Member

  • Advanced user
  • 773 posts

Posted 19 October 2007 - 04:21 PM

I have a 8GB key formatted FAT32 that boots well using grub4dos. It boots BartPE, VistaPE, Linux, DOS, DOS diskette image etc...
But in one of my test, I boot to DOS and try some commands, changing directory and got "Sector error" message! Very strange.
So I did check with chkdsk command line, check also with XP GUI with error sectors check, no problem so far, but still "sector not found"
when booting DOS (error on config.sys accessing a directory \dos\himem.sys).

After some investigation, I found out the problem: the partition table is set with 0x0b (FAT32) instead of 0x0c (FAT32X).
Apparently DOS is sensible to this, while this does not cause any problem with BartPE, VistaPE, Knoppix etc...
So by just changing 0x0b to 0x0c and nothing else, no more problem of "sector error" booting DOS !

Maybe jaclaz can give his advice on this problem ?

#2 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7101 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 20 October 2007 - 07:35 AM

To clarify for other users, ktp is obviously referring to DOS 7.1, i.e. the one that comes with Win95 OSR2+and/or Win98 or DOS 8.0 which comes with Me and in the XP DOS bootdisk.
Earlier versions of DOS, up to 6.22 and including the first 7.0 version shipped with original Windows 95 have NO SUPPORT at all for FAT32.

@ktp
It is possible, but it is of course just a guess on my part, that DOS 7.1 is more "orthodox" then later filesystems, and "believes" the byte in Partition Table, whilst later ones may simply "ignore" the Partition Type and access filesystems through LBA data anyway.

We must remember that the "general" transition from CHS to LBA happened when the 8Gb barrier was hit, thus DOS 6.22, and NT 4.00 had this limit, whilst Win95, if I am not mistaken, was the first one to have LBA int13h extensions in the OS, in original edition just for FAT16 and from OSR 2 onwards also for FAT32.

Windows 2K comes almost 4 years after, and XP another couple years later, when ALL motherboards had LBA support in Bios and drives bigger than 8 Gb were already rather common.

An interesting experiment you can carry on is to verify whether the same problem happens with DOS 8.0 files, as that is more or less of the same period of Win2K.

Here is how to extract files from XP:
http://www.911cd.net...showtopic=16745


jaclaz

#3 ktp

ktp

    Silver Member

  • Advanced user
  • 773 posts

Posted 20 October 2007 - 12:55 PM

An interesting experiment you can carry on is to verify whether the same problem happens with DOS 8.0 files, as that is more or less of the same period of Win2K.


I tried with DOS 8.0 (WinME in fact, when you type "ver" command), and same problem as with DOS 7.1 (Win98) : partition type on my 8 GB key
must be set 0x0C (=FAT32X), otherwise (if set to 0x0B=(FAT32)) "sector error" under Win98, or no such message but lot of garbage characters on "dir" command under DOS 8.0, and for example hang on running an EXE (I guess that it loads incorrect sectors).




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users