Jump to content

Windows 98SE LBA-48 Scandisk Replacement?


Recommended Posts

I extracted dskmaint.dll and scandskw.exe, both v4.90.3000, and copied them to \Windows\, replacing scandskw.exe v4.70.1998 (there was no dskmaint.dll before in \Windows\).
dskmaint.dll is in Windows/System. You installed it in the wrong folder, therefore it didn't work.

This is rather amazing to me, as the post you've quoted clearly mentions BHDD30.ZIP, which includes an installer. That you've managed to improperly install it regardless is, to me, quite amazing. Incredible, even.

Link to comment
Share on other sites


Way to go, SlugFiller!!! :thumbup

I should sleep more or drink much more coffee, 'cause I'm missing things I shouldn't miss...

I extracted dskmaint.dll and scandskw.exe, both v4.90.3000, and copied them to \Windows\, replacing scandskw.exe v4.70.1998 (there was no dskmaint.dll before in \Windows\).
dskmaint.dll is in Windows/System. You installed it in the wrong folder, therefore it didn't work.

But, of course, there is the original dskmaint.dll v. 4.70.0.1998 in Windows/System, and that is being executed in preference to dskmaint.dll v. 4.90.0.3000 in Windows! That's why it didn't work, then! :yes:

But don't be so hard on Multibooter for it. Everyone makes mistakes (although I guess I'm doing more than my share of them, lately, myself :wacko:)...

Link to comment
Share on other sites

I extracted dskmaint.dll and scandskw.exe, both v4.90.3000, and copied them to \Windows\, replacing scandskw.exe v4.70.1998 (there was no dskmaint.dll before in \Windows\).
dskmaint.dll is in Windows/System. You installed it in the wrong folder, therefore it didn't work.

First of all, my apologies for posting wrong information. I actually had searched my HDD for the wrong file name, diskmaint.dll instead of dskmaint.dll, and nothing was found, the filename was misspelled twice in this topic as "diskmaint.dll", and I had copied & pasted this wrong filename into Find (I remember wondering why it had 9 characters, but didn't investigate further, and even more amazing, I posted the correct spelling: "(there was no dskmaint.dll before in \Windows\)").

I have tested the new versions of scandskw.exe & dskmaint.dll [the latter placed in \Windows\System\], they DO WORK on a USB HDD (698GB=Seagate 750GB) with 3 large partitions (2x240GB & 218GB). Thanks again, SlugFiller.

Delving a little deeper into ScanDisk, another question arose: Does Scandisk.exe (NOT scandskw.exe) work with partitions >137 GB? There are 2 versions of ScanDisk, and the one running at startup with a blue screen seems to be Scandisk.exe (see pp.428 of Windows 98 Resource Kit). This Scandisk.exe in \Windows\Command\ seems to be the crucial one which gets called after a bad shutdown: "During reboot, Win.com reads that bit [fourth bit of 8th byte of the reserved first 112 bytes of FAT32]. If it is set to 0, it runs ScanDisk [scandisk.exe] to check the drive for errors." (p.451 in Windows 98 Resource Kit)

This is rather amazing to me, as the post you've quoted clearly mentions BHDD30.ZIP, which includes an installer. That you've managed to improperly install it regardless is, to me, quite amazing. Incredible, even.
I prefer to stay away from installers, it's much easier to undo a file copy. The eMule software, for example, is posted in 2 versions, as an installer and as a zip file for file copy, which does not modify the registry. About 9% of the 11 million downloads of the eMule software are of the zip file for file copy, rather than the installer http://sourceforge.net/project/showfiles.php?group_id=53489 Edited by Multibooter
Link to comment
Share on other sites

First of all, my apologies for posting wrong information. I actually had searched my HDD for the wrong file name, diskmaint.dll instead of dskmaint.dll, and nothing was found, the filename was misspelled twice in this topic as "diskmaint.dll", and I had copied & pasted this wrong filename into Find (I remember wondering why it had 9 characters, but didn't investigate further, and even more amazing, I posted the correct spelling: "(there was no dskmaint.dll before in \Windows\)").
Well, I apologise for the misspelling (which I know have corrected, BTW, thanks!) and the consequences it had thereof. Sorry! :blushing:
I have tested the new versions of scandskw.exe & dskmaint.dll [the latter placed in \Windows\System\], they DO WORK on a USB HDD (698GB=Seagate 750GB) with 3 large partitions (2x240GB & 218GB). Thanks again, SlugFiller.
What about that 300 GB partition you mentioned earlier? And does it work with all your partitions or is there any it doesn't work with? And, BTW, do you use LLXX's patched file for your PATA drives?
Delving a little deeper into ScanDisk, another question arose: Does Scandisk.exe (NOT scandskw.exe) work with partitions >137 GB? There are 2 versions of ScanDisk, and the one running at startup with a blue screen seems to be Scandisk.exe (see pp.428 of Windows 98 Resource Kit). This Scandisk.exe in \Windows\Command\ seems to be the crucial one which gets called after a bad shutdown: "During reboot, Win.com reads that bit [fourth bit of 8th byte of the reserved first 112 bytes of FAT32]. If it is set to 0, it runs ScanDisk [scandisk.exe] to check the drive for errors." (p.451 in Windows 98 Resource Kit)
Yes, Scandisk.exe in \Windows\Command\ is the one that runs on startup. And yes, it does work with large partitions, but the ME version of it is the one you should use.

And, for sure, you're not alone: I, for one, do lots of installs by hand too. Many of us do...

Link to comment
Share on other sites

What about that 300 GB partition you mentioned earlier?
"The same err msg with a 232GB FAT32 partition of a 300GB ext.USB HDD" http://www.msfn.org/board/Windows-98SE-LBA...772#entry773772 The maximum size of partition which I was able to make Norton Disk Doctor 2004 swallow was 240GB http://www.msfn.org/board/Help-I-need-to-G...468#entry763468 Disk size apparently doesn't matter to NDD, only partition size, I have tried various disk sizes up to 750GB.
And does it work with all your partitions or is there any it doesn't work with?
The new Scandskw.exe works on all my partitions, but I don't know yet whether it works correctly, time will tell. Norton Disk Doctor 2004 has worked correctly for me EXCEPT FOR FIXING PARTITION TABLES/BOOT RECORDS (use Partition Table Doctor v3.5 for it!). But right partitioning for large disks so that NDD under Win98 does not hang with BSOD on large disks, after err msg "Error on drive xx: Invalid Disk Table in Boot Record", is VERY difficult:

1) if you want to create large logical partitions inside of an ExtendedX partition (partition type 0F=ExtendedX): only use Powerquest Partionmagic v8.01 (max.Partitionsize=196GB) or Acronis Disk Director v1.0. build 2089 or earlier (build 2160 hangs if you have a 2nd internal HDD partitioned as NTSF by Vista, when the Acronis hdd engine starts while the splash screen is displayed). If you use Acronis Disk Director you can create much larger FAT32 (EXT) partitions, but after partitioning with Acronis Disk Director you SHOULD repair(!) the created partition tables with Partition Table Doctor. VCOM Partition Commander 10.0 and Paragon Partition Manager 9 can only create large logical partitions at with Norton Disk Doctor 2004 will choke with BSOD.

2) To create large primary partitions acceptable to NDD 2004 (I use 4), you must use a little trick: you must leave some free space (e.g. 7.8MB) after the last primary partition. Acronis Disk Director and PartitionMagic v8.01 can in this way create large partitions acceptable to NDD, not VCOM Partition Commander 10 and Paragon Partition Manager 9, however.

The little bit of free space after the last primary partition will apparently cause that the last partition is properly seen. Without using the free-space-trick when creating primary partitions, Partition Table Doctor will display the last primary partition as free space and VCOM Partition Commander 10 & Paragon will hang at the startup splash screen.

c) For the moment I have decided to use primary partitions instead of logical partitions contained in an ExtendedX partition, because I want to be able to use Paragon & VCOM, perhaps for accessing/exporting data of NTSF partitions. Paragon and VCOM just choke under Win98 at large ExtendedX partitions. Eventual problems with drive lettering under different opsys, however, might make me reconsider.

And, BTW, do you use LLXX's patched file for your PATA drives?
NO, I still have a 2GB FAT16 and a FAT32 partition <128GB on the 1st HDD (PATA). Eventually I may reconsider increasing the FAT32 partition, but I want to see what the experience of others is, and there is no urgency. The only huge directory I have does not have to be on a bootable drive. It is on my 3rd HDD (USB), it's the install-to directory of the German Digitale Bibliothek, currently about 120+GB with 430.000 files.
Yes, Scandisk.exe in \Windows\Command\ is the one that runs on startup. And yes, it does work with large partitions, but the ME version of it is the one you should use.
Is the ME version available anywhere?
Link to comment
Share on other sites

Is the ME version available anywhere?
You'll have to grab the DOS version of scandisk.exe from Win ME from inside MDGx's package SCANFRAG (link), because only the windows version is present in BHDD30e.ZIP. But, of course, you don't need to actually install the SCANFRAG package (myself, I don't like both Win ME meconfig and regenv32, and stick to the older Win 98 msconfig), get it just to grab scandisk.exe from inside it. Update: SCANFRAG is no longer needed, get just BHDD31e.ZIP here, because it has everything needed inside.

You can also run the DOS Norton Disk Doctor (from Norton Utilities 2002 rev..10E), findable in your Norton System Works 2004 disk. If you decide to make it run instead of SCANDISK.EXE on reboot after a crash, just copy NDD.EXE to \WINDOWS\COMMAND\ and rename it to SCANDISK.ALT (this is the official Microsoft way of doing it!) and that's it.

I believe that both Win ME SCANDISK.EXE and NDD.EXE (2002 rev..10E), will work OK with all your partitions.

I also think you'll find much interesting reading in this thread, too, although some of what is said there has already been said here: Problems-with-1-TB-RAID

I think this is clear to you, Multibooter, but for the sake of those for whom this is still a confused issue, I think it's advisable to state this fact once more: SCANDISK, DEFRAG, CVT, NDD and (Norton) Speed Disk depend on partition size and their limit is the maximum FAT-32 size they can represent internally. LLXX's patched ESDI_506.PDR and VIASRAID.MPD deal with 48-bit access, and are dependent on total disk size: if all your PATA and SATA disks are smaller than 137 GB (=128 GiB), then you're on the safe side, if not you need them, regardless of the size of the partitions you use. For USB and Firewire disks, this problem doesn't exist.

Edited by dencorso
Link to comment
Share on other sites

You'll have to grab the DOS version of scandisk.exe from Win ME from inside MDGx's package SCANFRAG (link), because only the windows version is present in BHDD30e.ZIP.
Thanks for the link. I'll be back in the US in Sept. and will try it then on a resized partition >137GB. On a USB HDD I cannot try out the DOS version of ScanDisk: Although the motherboard I am using has USB legacy support, I have disabled it because when USB legacy support is enabled, the system freezes when the BIOS is checking the connected USB HDD (750GB, 4 primary partitions).

This leads to the next can of worms, USB legacy support at the BIOS level: What is the largest USB HDD capacity for USB legacy support on Asus motherboards? Can you have more than 1 partition? What partition types are recognized? (ExtendedX/Logical, Primary, FAT16, FAT32, FAT32 EXT). Is there a conflict if you have a USB HDD driver installed & the USB HDD is already recognized at the BIOS level? I remember vaguely, when I had USB legacy support enabled, Win98 came up with Windows Explorer showing about 20 HDD icons.

Edited by Multibooter
Link to comment
Share on other sites

You can also run the DOS Norton Disk Doctor (from Norton Utilities 2002 rev..10E), findable in your Norton System Works 2004 disk. If you decide to make it run instead of SCANDISK.EXE on reboot after a crash, just copy NDD.EXE to \WINDOWS\COMMAND\ and rename it to SCANDISK.ALT (this is the official Microsoft way of doing it!) and that's it.

I believe that both Win ME SCANDISK.EXE and NDD.EXE (2002 rev..10E), will work OK with all your partitions.

The DOS Scandisk.exe does NOT look at the backup File Allocation Table, while the Windows Scandskw.exe looks at both Primary and backup File Allocation Table and determines which File Allocation Table is better in case of errors.

Is NDD.exe (DOS) smarter than Scandisk.exe (DOS), does it look at both file allocation tables? In that case, the renaming trick would be rather useful.

Link to comment
Share on other sites

Is NDD.exe (DOS) smarter than Scandisk.exe (DOS), does it look at both file allocation tables? In that case, the renaming trick would be rather useful.

NDD is far smarter than SCANDISK... See this comment by Joep van Steen (author of DiskPatch) in this page reprinted from the October 2003 issue of PC Update (link)... Of course, DiskPatch may also be an alternative (but is not for free). While NDD is not for free either, I know you already have it.

NDD is designed to replace and go beyond what SCANDISK does. SCANDISK does NOT care about your data ... it cares about a consistent file system, so if something is inconsistent it will try to restore the file system to a consistent state. If this can be done by deleting data it will often do so. It should be able to repair a corrupt boot sector, but I feel the problem with NDD is that it will inspect everything ... the MBR, partition tables, boot sectors etc.. Problem with that is, that when you (the program) are presented with loads of info it gets more difficult to decide what's wrong or right. Problem increases when you see things that you (the program) are not programmed for (like mixed Windows/Linux drives).
Of course, in the quoted text, Joep is making his case as to why DiskPatch is more reliable than NDD, and in the process also tells why NDD is better than SCANDISK.

It is also noteworthy that Symantec actually recomends using the DOS version of NDD, instead of the Win version, to perform the most low-level repairs:

To repair corrupted boot records, use the DOS version of Norton Disk Doctor; do not use the Windows version. The Windows version diagnoses the problem, but will not repair the boot record as well as the DOS version of Norton Disk Doctor.
Edited by dencorso
Link to comment
Share on other sites

NDD is designed to replace and go beyond what SCANDISK does. SCANDISK does NOT care about your data ... it cares about a consistent file system, so if something is inconsistent it will try to restore the file system to a consistent state. If this can be done by deleting data it will often do so. It should be able to repair a corrupt boot sector, but I feel the problem with NDD is that it will inspect everything ... the MBR, partition tables, boot sectors etc.. Problem with that is, that when you (the program) are presented with loads of info it gets more difficult to decide what's wrong or right. Problem increases when you see things that you (the program) are not programmed for (like mixed Windows/Linux drives).
Of course, in the quoted text, Joep is making his case as to why DiskPatch is more reliable than NDD, and in the process also tells why NDD is better than SCANDISK.

I do not agree.

- NDD fixes cross linked files by truncating both files before the cross link instead of making copies like Scandisk.

- NDD 2001 sometimes incorrectly detects cross linked files on DriveSpace volumes where Scandisk doesn't find anything wrong and the files are fine. Sometimes it finds a single cross linked file (a file cross linked with nothing else). I don't know about NDD 2002+ because I stoped using it on DriveSpace.

- Scandisk DOES compare FATs; it just doesn't say it like NDD. I had errors like mismatched FAT copies and Scandisk detected and fixed them.

Edited by Marius '95
Link to comment
Share on other sites

- NDD fixes cross linked files by truncating both files before the cross link instead of making copies like Scandisk.

- NDD 2001 sometimes incorrectly detects cross linked files on DriveSpace volumes where Scandisk doesn't find anything wrong and the files are fine. Sometimes it finds a single cross linked file (a file cross linked with nothing else).

My favorite disk utility was Disk Fixer (of V-COM System Suite v6.0.14 or Fix-It Utilities 6), but I changed over to NDD 2004 about 3 years ago, when an external USB HDD of 250 GB (in reality about 232GB) was too large for Disk Fixer. Here an old note of mine, in my system log of Jan.2004:

"Disk Fixer Is a better repair utility than Norton Disk Doctor or ScanDisk:

NDD crashed when attempting to fix H: when a lot of files were cross-linked (err msg: "cannot copy - access denied")

ScanDisk refused even to start diagnosing, err msg: "not enough memory"

DiskFixer did it

Addendum in Feb.04: the HDD may have been damaged by the sp.exe virus, identified on 25.Jan.04

This is a reason why to have several different utility packages installed - in case of a virus infection maybe one still works! "

By the way, the infection with sp.exe was the only malware infection I had in the last 10 years, Kaspersky at that time had only this short description: "September 11", now no more description.

Disk Fixer under Win98 does NOT work on a 250GB USB HDD, it terminates after nearly completing the File Allocation Table check

Under WinXP, however, Disk Fixer does work Ok with a 250 GB USB HDD, 232GB FAT32 partition. So maybe Loew's 137GB patch can put good old Disk Fixer back to work under Win98? But since the HDD was a USB drive, could it be that the drive capacity limitation of Disk Fixer was caused by the Win98 USB driver for the HDD (WinXP does not need a special USB driver)? Is there a different USB disk/partition size limitation if I use an external enclosure with a different USB driver?

- Scandisk DOES compare FATs; it just doesn't say it like NDD. I had errors like mismatched FAT copies and Scandisk detected and fixed them.
Livingston & Straub in "Windows ME Secrets" (p. 1091) state that the DOS version of ScanDisk always uses the primary copy of the FAT (unless ScanDisk finds a physical disk error), while the Windows version of ScanDisk uses both primary & backup FATs. You must have run Scandisk under Windows when Scandisk detected and fixed mismatched FATs. Edited by Multibooter
Link to comment
Share on other sites

Livingston & Straub in "Windows ME Secrets" (p. 1091) state that the DOS version of ScanDisk always uses the primary copy of the FAT (unless ScanDisk finds a physical disk error), while the Windows version of ScanDisk uses both primary & backup FATs. You must have run Scandisk under Windows when Scandisk detected and fixed mismatched FATs.

No. DOS version.

It's true that most of the time, Scandisk decides that FAT #1 is good and fixes FAT #2 by making a copy of #1. This might be because FAT #1 is updated first and sometimes a computer crash occurs before FAT #2 is updated, not because Scandisk doesn't use FAT #2.

Edited by Marius '95
Link to comment
Share on other sites

No. DOS version.

It's true that most of the time, Scandisk decides that FAT #1 is good and fixes FAT #2 by making a copy of #1. This might be because FAT #1 is updated first and sometimes a computer crash occurs before FAT #2 is updated, not because Scandisk doesn't use FAT #2.

Is that so for the Win98SE version of Scandisk.exe (143.818 bytes) and the version of Scandisk.exe for WinME (245.324 bytes)?

Livingston & Straub claim on the same p.1091 that WinME Scandskw.exe (=Windows version) calls code located in Dskmaint.dll AND Shell.dll. Is this correct or incorrect also? If correct, should one use the WinME version of Shell.dll when using the WinME versions of Scandskw.exe+Dskmaint.dll under Win98?

Link to comment
Share on other sites

No. DOS version.

It's true that most of the time, Scandisk decides that FAT #1 is good and fixes FAT #2 by making a copy of #1. This might be because FAT #1 is updated first and sometimes a computer crash occurs before FAT #2 is updated, not because Scandisk doesn't use FAT #2.

Is that so for the Win98SE version of Scandisk.exe (143.818 bytes) and the version of Scandisk.exe for WinME (245.324 bytes)?

I never used WinME Scandisk.

Link to comment
Share on other sites

Livingston & Straub claim on the same p.1091 that WinME Scandskw.exe (=Windows version) calls code located in Dskmaint.dll AND Shell.dll. Is this correct or incorrect also? If correct, should one use the WinME version of Shell.dll when using the WinME versions of Scandskw.exe+Dskmaint.dll under Win98?

It can be demonstrated that Scandskw.exe depends on Dskmaint.dll, Shell.dll, KRNL386.EXE and USER.EXE, while

Dskmaint.dll itself depends on Shell.dll, KRNL386.EXE, KEYBOARD.DRV and USER.EXE. All these dependencies can be satisfied with Win 98, Win 98SE or Win ME files. Of them, the only ones that you need to have from Win ME are Scandskw.exe and Dskmaint.dll, which are much improved form the 98SE ones.

BTW, I've been discussing similar things also in this topic, which might be of interest to you all.

I've used the DOS version of NDD.EXE (2002) since 2002, and it never gave me grief. Before that I had the 2000 version. I cannot say anything about the 2001 version, because I've never had it. I'm also very paranoid about backups, so that when things get really bad (cross-linked files, for instance) I usually delete the files and get them from the most up-to-date existing backup. Things too new to be in a backup can be gotten again from the same source I got them the first time, or were mine own, which I can always recreate. If I have no choice but to try to recover some file I first create a forensically sound image of the disk where the damaged file is, and then can try the recovery in as many ways as I can think of, because I can always restore the image and start again. For simpler tasks both SCANDISK and NDD are adequate, and NDD is usually faster and smarter, although I do remember that Marius'95's 1 TiB RAID was too much for NDD.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...