Windows Forum / Windows Me / System Tools / July 2005
Defragmentation inefficiency
|
|
Thread rating:  |
Kiwi - 19 Jun 2005 10:04 GMT I may not be on the correct discussion group but ... My defragmentation takes far too long. My system is Windows 98 2nd Edition. Can anyone direct me to the correct group, or can anyone on this group offer guidance. I'd appreciate it.
Noel Paton - 19 Jun 2005 10:16 GMT How long is 'too long'??? How big is the drive?? When did you last defrag it? FYI, defragging a 10GB disk (50% full) takes me around 2hrs normally.
 Signature Noel Paton (MS-MVP 2002-2005, Windows)
Nil Carborundum Illegitemi http://www.btinternet.com/~winnoel/millsrpch.htm
http://tinyurl.com/6oztj
Please read http://dts-l.org/goodpost.htm on how to post messages to NG's
>I may not be on the correct discussion group but ... > My defragmentation takes far too long. My system is Windows 98 2nd > Edition. > Can anyone direct me to the correct group, or can anyone on this group > offer > guidance. I'd appreciate it. Kiwi - 20 Jun 2005 12:17 GMT Thanks for your help Noel, and everyone else. Some of it I can't understand! but I'll try what I can. I've used the scan disk option. "too long" can be like all night, but more like 4-5 hours. The first 10% does seem to take ages. And I do get the"contents have changed; restarting" message quite regularly, even though I think I've closed everything else. What else could be causing the contents to change?Does someone think I need to disconnect the printer? I've tried disabling the screen saver, and even the virus cover. How often? Once a week. Also, there's no other indication that the hard drive is on the way out. Size is 4Gb, 80Mb RAM, 70% free.
> How long is 'too long'??? > How big is the drive?? [quoted text clipped - 7 lines] > > offer > > guidance. I'd appreciate it. Rick T - 20 Jun 2005 17:04 GMT TaskManager, accessible by <Ctrl-Alt-Del> shows all non-core running processes; a good place to find out what is causing those "Disk contents changed: restarting" is there.
Rick
> Thanks for your help Noel, and everyone else. Some of it I can't understand! > but I'll try what I can. [quoted text clipped - 20 lines] >>>offer >>>guidance. I'd appreciate it. Noel Paton - 20 Jun 2005 19:25 GMT Kiwi In your situation, I'd begin to suspect malware of some kind - you seem (from the amount of free space) to have a fairly minimal installation.
First - try booting to Safe Mode, and running Defrag from there - if you still get 'restarting' messages, then you need to consider malware seriously.....
You may already have a virus/spyware hijack
download the Stinger from here and run it to make sure that A-V-disabling viruses are not present on your PC http://vil.mcafeesecurity.com/vil/averttools.asp
- update your virus scanner and run a full system scan of all files.
Reboot to Safe Mode and run CWShredder - to remove variants of the CoolWebSearch hijacker. http://www.merijn.org/cwschronicles.html
Use CWShredder, the removal tool: http://www.intermute.com/products/cwshredder.html (download it without the accompanying rubbish)
download AdAware SE Personal Edition from www.lavasoftusa.com, install, update, and run it to remove spyware, adware, and other such nasties from your system.
HTH
 Signature Noel Paton (MS-MVP 2002-2005, Windows)
Nil Carborundum Illegitemi http://www.btinternet.com/~winnoel/millsrpch.htm
http://tinyurl.com/6oztj
Please read http://dts-l.org/goodpost.htm on how to post messages to NG's
> Thanks for your help Noel, and everyone else. Some of it I can't > understand! [quoted text clipped - 24 lines] >> > offer >> > guidance. I'd appreciate it. Kiwi - 28 Jun 2005 06:57 GMT Evening, all. I've tried a few of the things you've suggested. Have the following to report. When I tried defragmenting in Safe mode it only took two hours - so a vast improvement on the all-nighters I'd had in Normal mode. Next time I tried again in Normal mode - back to the long period defrag. Then I tried in Normal again, but used Ctrl-Alt-Delete to see what else was running, and here's the list it gave me: Explorer, Msnmsgr, Avgemc, Avgcc, Usbmonit, Qttask, Loadqm, Systray. Can any of you experts tell which of those might be interfering with the defrag, and what can I do about it? Appreciate your indulgence.
Kiwi
Noel Paton - 28 Jun 2005 07:05 GMT Most likely interferences are 1) the AV - it's probably inspecting all code as it's pulled off the HD. 2) MSNMsgr - it's probably causing restarts as it polls for your online access/buddies The others don't cause problems normally, AFAIK
 Signature Noel Paton (MS-MVP 2002-2005, Windows)
Nil Carborundum Illegitemi http://www.btinternet.com/~winnoel/millsrpch.htm
http://tinyurl.com/6oztj
Please read http://dts-l.org/goodpost.htm on how to post messages to NG's
> Evening, all. I've tried a few of the things you've suggested. Have the > following to report. [quoted text clipped - 11 lines] > > Kiwi Delboy - 28 Jun 2005 11:13 GMT Hi Kiwi
I use enditall to shut down everything except my firewall (zonealarm free) and essential system files. All I have left running after "kill all" apart from enditall protected apps, are explorer, kb891711, mprexe, mgsrv32, rundll, stmgr, vsmon & zlclient. (last 2 are firewall)
Also I use Zonealarm to block all internet activity. Having done this it takes about 1/2-3/4 hr for me to go through the maintenance wizard. This is with a 40 gig HD and a 1.3 gighz processor.
BTW, I understand from some of the more knowledgeable folk out there that defrag runs faster in real mode than safe mode.
 Signature Delboy
A common mistake that people made when trying to design something completely foolproof was to underestimate the ingenuity of complete fools.
Douglas Adams
> Evening, all. I've tried a few of the things you've suggested. Have the > following to report. [quoted text clipped - 9 lines] > > Kiwi Mart - 28 Jun 2005 12:26 GMT Delboy wrote :-
> BTW, I understand from some of the more knowledgeable folk out there that > defrag runs faster in real mode than safe mode. That may well be true, of course - UNLESS something is running in the background causing the repetitive restarts, which was Kiwi's original problem - and brings us full circle <g>
Mart
Rick T - 19 Jun 2005 10:17 GMT > I may not be on the correct discussion group but ... > My defragmentation takes far too long. My system is Windows 98 2nd Edition. > Can anyone direct me to the correct group, or can anyone on this group offer > guidance. I'd appreciate it. this is a Windows Millenium newsgroup, but as long as you're here...
Run a Scandisk with the Surface Scan Option (overnight) to make sure your HD is okay, mechanically.
When you run Defrag, do it in Real Mode DOS, not a window in the GUI.
Use a Swap File with a Minimum Size specified.
Apart from that, you could repartition your drive to put frequently-changed/added files/directories (such as Internet Temporary and TEMP) onto their own partition.
Rick
Rick T - 19 Jun 2005 10:23 GMT > Run a Scandisk with the Surface Scan Option (overnight) to make sure > your HD is okay, mechanically. Since this is a particularly stupid idea if you have a failing drive, don't; not until you've run a normal clean one, anyways.
Rick
Mart - 19 Jun 2005 12:58 GMT Rick, I guess that you inadvertently wrote :-
> When you run Defrag, do it in Real Mode DOS, not a window in the GUI. Can't remember specifically for Win98SE, but the above certainly can't be done in WinMe - must be done in Windows Real or Safe Mode.
Kiwi should try the two Windows options and see if there are any significant differences in Defrag timings. But Noel's questions need addressing too - not to mention 'How much free space?' <g>
Scandisk can be run in RM DOS, of course.
Mart
>> I may not be on the correct discussion group but ... >> My defragmentation takes far too long. My system is Windows 98 2nd [quoted text clipped - 15 lines] > > Rick Rick T - 20 Jun 2005 00:44 GMT > Rick, I guess that you inadvertently wrote :- > [quoted text clipped - 8 lines] > > Scandisk can be run in RM DOS, of course. Can't recall; I used '95 before ME and always ran Defrag in RM DOS without problems; the good things are it will defrag system files and you don't have to worry about any other tasks interfering.
Chris brings up a point about long filenames which draws a blank with me.
Rick
> Mart > [quoted text clipped - 17 lines] >> >>Rick cquirke (MVP Windows shell/user) - 19 Jun 2005 23:45 GMT On Sun, 19 Jun 2005 05:17:33 -0400, Rick T
>> I may not be on the correct discussion group but ... >> My defragmentation takes far too long. My system is Windows 98 2nd Edition. >> Can anyone direct me to the correct group, or can anyone on this group offer >> guidance. I'd appreciate it.
>this is a Windows Millenium newsgroup, but as long as you're here...
>Run a Scandisk with the Surface Scan Option (overnight) to make sure >your HD is okay, mechanically. Yes
>When you run Defrag, do it in Real Mode DOS, not a window in the GUI. NO! Run Win9x's DOS mode Scandisk in such a way, but never use pre-Win95 MS-DOS 6 tools such as DOS's real-mode defrag on a Win9x PC, because you'd bonk Long File Names, and the OS uses these internally.
>Use a Swap File with a Minimum Size specified.
>Apart from that, you could repartition your drive to put >frequently-changed/added files/directories (such as Internet Temporary >and TEMP) onto their own partition. Check whether it's slow because it's slow (suspect sick HD, or maybe there's just a lot to do - especially the first "10%") or because it keeps restarting all the time. If it keeps restarting all the time, try doing it in Safe Mode; even though disk access is slower there, an uninterrupted slow defrag may well take far less time than a fast defrag that keeps starting over and over again.
Windows GUI scandisk and defrag will restart if something writes to the volume being operated on. If you have unplugged all external USB, printer, network cables, killed WiFi and IR, disabled everything in MSConfig startup etc. then suspect malware activity.
Else do all that, and suspect malware activity anyway :-)
>------------------------ ---- --- -- - - - - Forget http://cquirke.blogspot.com and check out a better one at http://topicdrift.blogspot.com instead!
>------------------------ ---- --- -- - - - - Rick T - 20 Jun 2005 00:52 GMT > On Sun, 19 Jun 2005 05:17:33 -0400, Rick T <<<Win98SE slow Defrag>>>
>>Run a Scandisk with the Surface Scan Option (overnight) to make sure >>your HD is okay, mechanically. > > Yes Well, no actually; if his hard-drive is going south, the surface scan will speed up the unwanted process; better to run it without the surface scan first; then run with the SS if it's OK (or if it isn't, wait a while (few daysish) before considering the surface scan option).
>>When you run Defrag, do it in Real Mode DOS, not a window in the GUI. > > NO! Run Win9x's DOS mode Scandisk in such a way, but never use > pre-Win95 MS-DOS 6 tools such as DOS's real-mode defrag on a Win9x PC, > because you'd bonk Long File Names, and the OS uses these internally.
:( eh? I'm pretty sure I used DOS Defrag in 95 on FAT32 disks. I realize that the program-start-optimizer gets it though.
Rick
cquirke (MVP Windows shell/user) - 21 Jun 2005 03:46 GMT On Sun, 19 Jun 2005 19:52:09 -0400, Rick T
>> On Sun, 19 Jun 2005 05:17:33 -0400, Rick T
>>>Run a Scandisk with the Surface Scan Option (overnight) to make sure >>>your HD is okay, mechanically.
>> Yes
>Well, no actually; if his hard-drive is going south, the surface scan >will speed up the unwanted process; Not by much; Scandisk is mechanically fairly gentle, steppingthe heads along one click at a time, unlike the old shake-n-bake tests like Checkit that deliberately set out to provoke harmonic distortion via butterfly and random-seek tests.
Because sick sectors provoke retries, reading all sectors is apt to provoke holding the heads over sick areas of disk, which might be bad if you combine surface ripple and polluted air space with possible head and further surface damage.
If you think the HD is sick, then I do agree with you; pull data off first, before testing. My own approach is to do that if I have reason to suspect a sick HD, else I'll do the surface scan and watch the first bit for latency. If I see latency, old "B"ad blocks or get explicit errors, I'll abort the test immediately and pull data off first, and only then repeat the test.
>better to run it without the surface scan first; then run with the >SS if it's OK (or if it isn't, wait a while (few daysish) before >considering the surface scan option). The way Scandisk works, that's implicit. It won't start the surface scan until it passes through the logic testing phase, and it won't pass through the logic phase unless it's allowed to fix almost everything. If you decline to fix something, it aborts - with one bizzarre exception; it lets you continue checking with unfixed mismatched FAT (!!!).
The logic behind this seems to be orientated towards fixing, rather than checking only. Logically, you'd want to spare a physically ill HD the exertions of checking the file system structure, so you'd want to verify physical health first. But if you intend to "fix" surface errors, that involves writing new data clusters and chaining them into place, and it's dangerous to do that if you haven't verified the file system sanity yet - hence "check/fix logic, then check surface".
However, continuing checking and fixing when you *know* there's a serious file system error present (mismatched FATs) makes absolutely no sense at all. Smells like bad RAM somewhere in the dev's frontals.
>>>When you run Defrag, do it in Real Mode DOS, not a window in the GUI.
>> NO! Run Win9x's DOS mode Scandisk in such a way, but never use >> pre-Win95 MS-DOS 6 tools such as DOS's real-mode defrag on a Win9x PC, >> because you'd bonk Long File Names, and the OS uses these internally.
>:( eh? Long File Names were retro-fitted to the file system in 1995, with the advent of the original Win95. The original 8.3 names remain in place, and MS-DOS or DOS mode see only these.
The extra information holding the Long File Name is held in extra directory entries that are designed to appear invalid and be ignored by MS-DOS and DOS mode, by setting an illogical set of attribute bits that say "this is a volume label" and something else that is inappropriate for "real" volume labels, at the same time.
Normal file operations use "opt-in"logic, i.e. they use only what they are looking for - so they ignore such entries and don't do anything to affect them. But file system management tools may look for such anomalies to "fix" them (Scandisk) or shuffle the order of directory entries (directory sorters, Defrag) in the interest of speed or cosmetics. If the position of LFN entries is altered, either with respect to themselves (a Loooong File Name may require multiple entries for the same name, and these have to be ordered correctly) or to the 8.3 name they are associated with, they break.
Windows itself is dependent of LFNs such as "Program Files", "My Documents", "Microsoft Office" etc. and if the LFNs are destroyed, these revert to pure 8.3 names such as PROGRA~1, MYDOCU~1, MICROS~1 and so on. References via the LFNs will no longer find them.
If you run a tool that is dangerous for LFNs from DOS mode, the system will lock up to protect them unless you UNLOCK the volume first (and Yes the "Are you sure/mad?" prompt). There's no such protection in MS-DOS (or raw DR-DOS, IBM PC-DOS etc.) so the damage will be done.
That's why I'm so shrill about NOT defragging a Win95+ file system from DOS, outside of the GUI. It's an uber-bad idea.
See http://cquirke.mvps.org/lfns.htm
>I'm pretty sure I used DOS Defrag in 95 on FAT32 disks. I realize that >the program-start-optimizer gets it though. If you're defragging a volume other than C:, which contains no LFNs of consequence, then OK. Personally, I'd not roll those dice - hours or days of downtime while you fix up the mess will offset any time saved by speeding up file access as a result of the defrag.
A VW beetle at 60kmh is faster than a Ferrari parked with flat tyres.
>-------------------- ----- ---- --- -- - - - - Hmmm... what was the *other* idea?
>-------------------- ----- ---- --- -- - - - - Kiwi - 20 Jul 2005 01:29 GMT If anyone is still reading this thread, I'd like to say thanks for all the helpful advice. The "Ctrl-alt-Del" option, followed by the shutting down of the virus checker and MSNMessenger, has now made it possible for me to defragment in under two hours, which is a vast improvement and seems the best I can expect. Thanks again, everybody.
> I may not be on the correct discussion group but ... > My defragmentation takes far too long. My system is Windows 98 2nd Edition. > Can anyone direct me to the correct group, or can anyone on this group offer > guidance. I'd appreciate it.
|
|
|