Fixing Win9x with bootlog.txt

Using bootlog.txt. I resurrected a dead Win95 box yesterday; it wouldn’t boot. Bootlog.txt to the rescue. (You can also use bootlog.prv, the log of the previous boot). Search the file for the string “fail” and note the device driver that isn’t working. Hot tip: frequently it’s a network driver. Boot into safe mode, remove the offending driver(s) from Device Manager and potentially problematic software (Anti-Virus software and RealAudio both come to mind; you can always reinstall those later after you’ve got the system back up and running), then reboot. If you boot successfully, add the drivers back in, then reinstall the software you uninstalled, and you’re back in business. Sure beats a reformat and reinstall.
Spam. And I understand some people want me to fly to a foreign country and open a bank account, deposit a large sum of their own money into the account, and at some later date they’ll come take back 2/3 of it. The remaining 1/3 is mine to keep, presumably for helping them hide their assets. Yeah. And Bill Gates wants to send me to Disney World.

I will give them credit though. This hoax was cleverly enough written that I read it in its entirety. A little entertainment to start my day.

Changing CPU priorities in Windows 95/98/Me

Take charge of your CPU usage under Win9x. I talked about CPU Controller from BinaryWork in Optimizing Windows, which allows you to set a task’s priority (a la WinNT’s Task Manager). There’s a freeware app at http://www.blehq.org/pv2k.htm that has most of its functionality. Haven’t tested it yet, but I definitely will.
———-

From: “Chuck Buker”

Subject: Dual Duron/Athlon

I love my dual celeron Abit BP-6 machine, but I have been salivating over the prospect of a dual Duron machine for some time now. And with 700 mhz Durons selling below $90, I can hardly stand the wait.

Do you have any idea if or when someone is going to come out with a dual Scoket A (Duron or Athlon) motherboard and whether the Duron’s or Athlon’s support SMP?

———-

According to everything I’ve read, both the Athlon and Duron are SMP-capable. The forthcoming AMD-760 chipset has SMP support (the AMD-750 and VIA KT133 don’t). I don’t remember where I saw this anymore, but I seem to remember reading recently that AMD expects to release that chipset near the end of the year. If I had to guess, I’d say early part of next year you’ll start seeing dual socket A boards.

The big thing standing in the way right now is the lack of an SMP-capable chipset.

Optimizing Windows startup

Mail. More Windows optimization questions.

From: ChiefZeke
Subject: Re: Items to consider
To: Dave Farquhar

Dave,

Would things be a bit faster if the user opted to start programs via the ‘RUN’ function of the Registry rather than via the Startup folder? I have seen this option mentioned in a couple of magazine articles.

Jerry

I imagine they would be slightly faster, since the file and path names, etc. would be stored in registry keys all in one place as opposed to individual icons, one per program, scattered all over the place.

You might also use run= strings in win.ini instead–I suspect that technique would be faster still, being a flat text file rather than a convoluted database.

Now, whether doing this would make any noticeable difference on a modern PC is another question. We may be talking shaving fractions of a second off your boot time. I imagine the difference would be more noticeable on marginal machines (though I’m not very eager to re-commission my 486SX/20 to try it). I just saw a 486DX4/75 laptop today that takes 1.5 minutes to boot Windows even without any items in any of the startup places and a fully optimized msdos.sys–a decked-out modern system similarly configured could boot in about 15 seconds. I can’t imagine your system needing much more than 20 seconds to go from POST to desktop (I’m not familiar with modern Western Digital drives like you have but I imagine their performance must be comparable to the Quantums and Maxtors I use).

This trick dates back to the Win3.1 days, and it was a really good idea way back then–the startup group actually consumed system resources, plus valuable entries in the Windows directory, so eliminating startup and placing items in win.ini could seriously improve a system’s performance back then. Today, Win9x has much better resource management, hard drives and CPUs are much faster, so you don’t hear about it as much anymore.

Very little else for today. I found my copy of the Lost Treasures of Infocom (both volumes) this week, including Bureaucracy, a text adventure I was never able to beat. I found a walk-through that got me past the part that had me stuck.

It’s a whole lot faster on my PC than it was on my Commodore 128 (which was the machine I originally bought it for, what, 11 years ago?). Amazing how much fun a 12K executable paired up with a 240K data file can provide… (And I’m running this on a dual-processor machine with 96 MB RAM and an 8.4-gig hard drive, both due to be upgraded? Something’s wrong here…)

Ultra-useful Windows and DOS utilities (plus Linux stuff)

4/3/00
There are loads of links in this mail. Explore them; you won’t be disappointed.

Hello. I maintain the Interesting DOS programs website and I was pleasantly surprised when I got an email telling me my site was mentioned in your book as a download reference site for XMSDSK.

While I only provided a link to the XMSDSK file on Simtel, it was still great to see my site which I never thought will ever get mentioned in any book, especially a Windows one 🙂

I got your book and I like it (a lot). However, there were some tools I thought should have gotten mentioned (most are mentioned on my site)

———————————————————————–

On Page 65, you mentioned FIPS as a tool to resize partitions. While I haven’t tried FIPS, there is another freeware utility which I’ve used several times :

Partition Resizer v1.33 It resizes/moves your FAT16/FAT32 partitions safely without losing the data on it. It doesn’t eliminate the need for FDISK. You use Partition Resizer to resize and rearrange the FAT16/FAT32 partitions to create free space on your drive and then run FDISK to create the partition.

———————————————————————–

The Infozip link at http://www.cdrom.com/pub/infozip is orphaned and is no longer updated. An updated link is at ftp://ftp.info-zip.org/pub/infozip/Info-ZIP.html

———————————————————————–

On Page 209, you mentioned that internal Zip drives lack DOS drivers, this is not true as I have an internal ZIP drive and I access them from DOS. Perhaps you were trying the older drivers that came with the first Iomega parallel port drive?

———————————————————————–

FastVid v1.10 Improves video performance on Pentium Pro and Pentium II PCI/AGP systems. I haven’t tested this myself but you may want to check it out.

———————————————————————–

LFN Tools v1.48 These are DOS commands (as stand alone EXE’s) that can handle long filenames in plain DOS. Supports FAT32

For example there is LCOPY which works like XCOPY under a DOS window (copying the long filenames) but in plain DOS. This is useful for diaster recovery situations when you can’t get into Windows and you need to get files off your Windows drive. Other commands include

LMD – create a long directory name LRD – remove a directory with a long directory name (e.g lrd “Program Files”) LDIR – like the DIR command showing long filenames.

The Tools are released under the GPL so source code is available and it is free.

————————————————————————

AVPLite Build 134 Free (yet powerful) command-line antivirus detection and removal program.

The engine is only is only 49K (the antivirus updates are about 1.7MB) but it can scan inside ZIP, TGZ, CAB, mail folders in Netscape and Outlook, DOC files). If there is a virus on a machine, you can have a bootable disk with XMSDSK to create a ramdisk, then have the AVPlite and the antivirus update on separate floppy disks unzipped to the ramdrive and then run AVPlite from the ramdrive.

————————————————————————-

Some Linux links :

SET’s editor v0.4.41

GREAT text editor with the fimiliar Borland IDE interface with syntax highlighting. This is literally the FIRST app to install after you boot Linux. Editing text files with Joe, Vi and Emacs were ummmmmm….. kinda difficult ;-). Released under GPL.

(SET edit is also available for DOS with a built-in MP3 player 😉 )

The one page linux manual A PDF containing a summary of useful Linux commands You mentioned on your Silicon Underground that you wished there was a command reference for Linux. This one is close

————————————————————————- Since you mentioned Win3.x program manager, thought I’ll mention this

Calmira II v3.02 Freeware Win95 shell/interface for Windows 3.x, including explorer, etc.

Mask for Windows – PRWin98 Gives Win3.x apps the look and feel of Win9x apps

————————————————————————-

Looking forward to your upcoming Linux book (I agree with your sentiments on Silicon Underground – documentation is the main holdback for Linux)

Dev Teelucksingh
devtee@trinidad.net
Interesting DOS programs at http://www.opus.co.tt/dave
Trinidad and Tobago Computer Society at http://www.ttcsweb.org

— This email sent with Arachne, the ultimate Internet client —
— http://home.arachne.cz/ —

Wow. Thanks for all the links. That’ll keep my readers busy for ages and ages to come. I did immediately go download SET edit. Very, very nice.

I’m very glad you like my book and look forward to the Linux book. It’s coming along, faster than the Windows book did, but not as quickly as I’d like. I’m not even willing to hazard a guess when it will be finished at this point.

A year from now, there will probably be twice as many Linux books available as there are now. Maybe more. The quality will vary widely. But we need them. The stuff coming out of the Linux Documentation Project is getting better (or maybe I’m just getting smarter) but the stuff available even six months ago very frequently had gaps that a newcomer wouldn’t be able to climb over: missing steps, poor or inaccurate description of output–all kinds of little things that suggest the author didn’t take the time to step through the process one last time. A plethora of available Linux books will help in more ways than one.

Back to DOS and Windows… Although many people deny it, DOS is still an integral part of Windows, and some things just can’t be accomplished without diving into DOS. Even under NT, I always keep a command line open. I can tell you the last day I didn’t use a command line. It was in June of last year. I know because I was in New Mexico, far away from work and from any of my computers.

So Iomega finally got around to releasing Zip drivers that work with the internal IDE and ATAPI models? About time. We bought a big batch of them at work about two years ago, and I needed to access them from DOS, and nothing. The drivers wouldn’t work. We contacted Iomega, and their line was, “These drives require Windows 95 or newer.” A year later, when I was writing that chapter, drivers still hadn’t appeared. But better late than never.

Thanks again.

Underachieving Win9x Network performance

David Yerka asked what can cause really slow network performance in Windows 95/98. I mailed him, suggesting maybe someone had run MTUSpeed or some similar utility on the machine to optimize dialup performance. LAN performance tends to go into the toilet after doing that. (Voice of experience speaking… My Win95 box was a real dog until that light went off–long after my book was on store shelves, of course.) He responded with some useful information.

From: David M. Yerka
Subject: Re: Slow Win9x network performance
To: Dave Farquhar

Hi Dave:

Thanks for the reply you win the big bucks! That is exactly what is going on. Apparently Win9x only sets the MaxMTU in one place:

HKey_local machine\system\currentcontrolset\services\class\nettrans000

and while additional information makes this key appear to belong only to dialup networking apparently it is the place where Win9x picks up the settings for the network also. You were right also I remembered (actually, before I got your email) that someone had used MTUSpeed on this machine to optimize dialup before I convinced my clients to get a “webramp appliance” to do sharing. Unfortunately, it appears that even if you tell MTUSpeed to “remove all settings” it leaves the MaxMTU setting at say 576 (which is usually the best for dialup ISP’s). You must explicitly change the settings in MTUSpeed to 1500 and reboot BEFORE have MTUSpeed “remove all settings.”

Interestingly, I found that you could sort of hack the registry with a combination of stuff and seemingly get both optimizations: stick a string in the key below of MaxMTU=”1500″

HKey_local machine\system\currentcontrolset\services\class\nettrans\netservice000

Use MTUSpeed to set the MTU to 1500 reboot

edit the first key …\nettrans000 to MaxMTU=”576″ and reboot.

checking with MTUspeed (and don’t under any circumstance change anything) shows the MTU to be 576 while network performance approaches 950K for a 10T UTP network.

Isn’t Window just wonderful and weird.. or something!!

Thanks again David Yerka