Floppies, meet your replacement

I must be the next-to-last person in the world to spend significant lengths of time experimenting with these, but for the benefit of the last person in the world, I’d like to talk about USB flash drives, also known as thumb drives (for a brand name), pen drives, or keychain drives, because they’re small enough to fit on a keychain.They are, as that popular brand name suggests, about the size of your thumb. It’s possible to buy one that holds as little as 64 megabytes of data, which is still a lot of Word and Excel files, but currently the sweet spot seems to be 512 megabytes or 1 GB. This is, of course, always a moving target, but as I write, it’s entirely possible to find a 512-meg drive for around $40, although sometimes you have to deal with rebates to get the price that low. It’s harder, but still possible, to get a 1 GB drive for under $90. That will change. Currently a 2 GB drive is more than $200.

I remember when people went ga-ga over a 1 GB hard drive priced at an astounding $399. That price was astoundingly low, and that was only 10 years ago. Progress marches on, and sometimes progress really is an improvement.

The drives are so small because they use flash memory–a type of readable/writable memory chip that doesn’t lose its contents when it loses power. It’s not as fast as RAM, and it’s a lot more expensive, and its lifespan is much more finite, so you won’t see flash memory replacing your computer’s RAM any time soon. But as a replacement for the floppy disk, it’s ideal. It’s fast, it’s compatible, and unlike writable CDs and DVDs, they require no special software or hardware to write.

The drive plugs into a USB port, which is present on nearly every computer made since about 1997. Use with Windows 98 will almost certainly require the installation of a driver (hopefully your drive comes with either a driver or a web site you can use to download a driver–check compatibility before you buy one for Win98), but with Windows 2000, XP, and Mac OS X, these devices should just plug in and work, for the most part. With one Windows 2000 box, I had to reboot after plugging the drive in the first time.

From then on, it just looks like a hard drive. You can edit files from it, or drag files onto it. If the computer has USB 2.0 ports, its speed rivals that of a hard drive. It’s pokier on the older, more common USB 1.1 ports, but still very tolerable.

The only thing you have to remember is to stop the device before you yank it out of the USB port, to avoid data loss. Windows 2000 and XP provide an icon in the system tray for this.

These are great as a personal backup device. They’re small enough to carry with you anywhere–the small flashlight I keep on my keychain is bigger than most of these drives–and it only take a few minutes to copy, so you can copy those files to computers belonging to friends or relatives for safekeeping.

If your only interest in a laptop is carrying work with you–as opposed to being able to cruise the net in trendy coffee shops while you drink a $5 cup of coffee–a pen drive makes a very affordable alternative to a laptop. Plug one into your work computer, copy your files, and take work home with you. Take it on the road and you can plug it into any available computer to do work. It’s not the same as having your computer with you all the time, but for many people, it’s more than good enough, and the drives make a Palm Pilot look portly, let alone a laptop.

So how do you maximize the usable space on these devices? The ubiquitous Zip and Unzip work well, and you can download small command-line versions from info-zip.org. If you want something more transparent, there’s an old PC Magazine utility from 1997, confusingly named UnFrag, that reduces the size of many Word and Excel files. Saving in older file formats can also reduce the size, and it increases the possibility of being able to work elsewhere. Some computers still only have Office 97.

You may be tempted to reformat the drive as NTFS and turn on compression. Don’t. Some drives respond well to NTFS and others stop working. But beyond that, NTFS’s overhead makes it impractical for drives smaller than a couple of gigs (like most flash drives), and you probably want your drive to be readable in as many computers as possible. So FAT is the best option, being the lowest common denominator.

To maximize the lifespan of these drives, reduce the number of times you write to it. It’s better to copy your files to a local hard drive, edit them there, then copy them back to the flash drive. But in practice, their life expectancy is much longer than that of a Zip or floppy drive or a CD-RW. Most people are going to find the device is obsolete before it fails.

The technologically savvy can even install Linux on one of these drives. As long as a computer is capable of booting off a USB device, then these drives can be used either as a data recovery tool, or as a means to run Linux on any available computer. 512 megabytes is enough to hold a very usable Linux distribution and still leave some space for data.

Resolving an issue with slow Windows XP network printing

There is a little-known issue with Windows XP and network printing that does not seem to have been completely resolved. It’s a bit elusive and hard to track down. Here are my notes and suggestions, after chasing the problem for a couple of weeks.The symptoms are that printing occurs very slowly, if at all. Bringing up the properties for the printer likewise happens very slowly, if at all. An otherwise identical Windows 2000 system will not exhibit the same behavior.

The first idea that came into my head was disabling QoS in the network properties, just because that’s solved other odd problems for me. It didn’t help me but it might help you.

Hard-coding the speed of the NIC rather than using autonegotiate sometimes helps odd networking issues. Try 10 mB/half duplex first, since it’s the least common denominator.

Some people have claimed using PCL instead of PostScript, or vice versa, cleared up the issue. It didn’t help us. PCL is usually faster than PostScript since it’s a more compact language. Changing printer languages may or may not be an option for you anyway.

Some people say installing SP2 helps. Others say it makes the problem worse.

The only reliable answer I have found, which makes no sense to me whatsoever, is network equipment. People who are plugged in to switches don’t have this problem. People who are plugged into hubs often have this problem, but not always.

The first thing to try is plugging the user into a different hub port, if possible. Sometimes ports go bad, and XP seems to be more sensitive to an deterriorating port than previous versions of Windows.

In the environment where I have observed this problem, the XP users who are plugged into relatively new (less than 5 years old) Cisco 10/100 switches do not have this problem at all.

This observation makes me believe that Windows XP may also like aging consumer-grade switches, like D-Link, Belkin, Linksys, and the like, a lot less than newer and/or professional grade, uber-expensive switches from companies like Cisco. I have never tried Windows XP with old, inexpensive switches. I say this only because I have observed Veritas Backup Exec, which is very network intensive, break on a six-year-old D-Link switch but work fine on a Cisco.

I do not have the resources to conduct a truly scientific experiment, but these are my observations based on the behavior of about a dozen machines using two different 3Com 10-megabit hubs and about three different Cisco 10/100 switches.

So, do you still think having Internet Explorer on your server is a good idea?

Microsoft is making its updates to IE only available for Windows XP.

To which I say, what about all of those servers out there?Surely they include Server 2003 in this. But that’s a problem. Upgrading to Server 2003 isn’t always an option. Some applications only run on Windows NT 4.0, or on Windows 2000.

Unfortunately, sometimes you have to have a web browser installed on a server to get updates, either from your vendor or from MS. Windows Update, of course, only works with Internet Explorer.

One option is to uninstall Internet Explorer using the tools from litepc.com. A potentially more conservative option is to keep IE installed, use it exclusively for Windows Update, and install another lightweight browser for searching knowledge bases and downloading patches from vendors. Offbyone is a good choice. It has no Java or Javascript, so in theory it should be very secure. It’s standalone, so it won’t add more muck to your system. To install it, copy the executable somewhere. To uninstall it, delete the executable.

An even better option is just to run as few servers on Windows as possible, since they insist on installing unnecessary and potentially exploitable software on servers–Windows Media Player and DirectX are other glaring examples of this–but I seem to hold the minority opinion on that. Maybe now that they wilfully and deliberately install security holes on servers and refuse to patch them unless you run the very newest versions, that will change.

But I’m not holding my breath.

Squeezing some life out of an aging Windows 2000 PC

I can safely say I really did write the book on Windows optimization (Optimizing Windows for Games, Graphics and Multimedia, O’Reilly, 1999, ISBN 1565926773) but that was five years ago and covered Windows 95 and 98.

Windows 2000 and XP are a different animal, and are as similar to the obscure OS/2 operating system from IBM as they are to Windows 95/98.

Here’s what I did when my work computer slowed to the point that I could no longer do much work.Clear some disk space. This is a biggie. NTFS, Windows’ file system, really doesn’t like it if the amount of free space on a disk drops below 15 percent. That’s stupid, but it’s reality, and since I don’t have Mr. Gates’ phone number I can’t do much but live with it. I went to Start, Search, picked Files and Folders, typed *.* in the name field and Drive C in the Look in: field, then hit Search Now. When it finished, I clicked on the field that says Size, and scrolled all the way down. I found lots of big files I didn’t need. I found a mystery file that was 600 megs in size. A Google search revealed that some obscure application I had used once had created that file. That was nice of it. After five minutes’ work, I had freed almost a gigabyte of disk space.

Uninstall old printer drivers. I had a bunch of printer drivers installed for printers I don’t use anymore. They were taking up disk space and memory. I only have 192 megs of RAM and most of it was in use by the time the computer booted, before I’d even loaded any programs. That’s no good. So I removed the drivers for my girlfriend’s Epson color printer (in the Add/Remove Programs control panel) and then I went into Printers and deleted the network printers of old clients and other printers I can’t remember ever using (in most cases you can just delete the printer and it will offer to remove the drivers).

Stop unnecessary services. If you right-click on My Computer and hit Manage, then double-click on Services and Applications and then on Services, you’ll find all sorts of stuff that Windows runs just in case you need it. Most of it is necessary, but for me, several were just chewing up more RAM than I could afford.

Computer Browser. This service, despite what you hear elsewhere, has nothing to do with web browsing, My Network Places, or anything else useful. All it does is permit your computer to participate in browser elections. What are those? It’s a long story, but the gist of it is that on a Windows network, one computer gets to keep the list of computers on the network, and every time you turn a computer on, the computers running the Computer Browser service fight over who gets to keep that list. Sound useless? Unless you’re in an office network with a file server and a very small number of computers, it’s very useless. Most of the time it’s just chewing up between 2 and 8 megabytes of your precious RAM. Forget that.

HID Input Service. I plugged a USB mouse into this computer once and it loaded this. Next thing I knew, my available memory had dropped by 6 megabytes. Six megabytes! For a stupid mouse? I use a USB mouse occasionally, but not every day, and certainly not often enough to be able to afford dedicating 6 megs to something that sits there waiting for me to plug one in. I’d leave it if I had 512 megs of RAM but I didn’t, so I disabled it.

Automatic Updates and Background Intelligent Transfer Service. I keep Automatic Updates turned off because it doesn’t work with our firewall, but whether the option is turned on or off, these services are loaded and chewing up memory. So I disabled these services. I have mixed feelings on Automatic Update. If you can’t remember to visit the Windows Update site once a month, you should leave it turned on. But since it won’t work for me anyway, I have to leave it turned off, so I might as well recover the memory.

Remote Registry Service. This allows a network administrator to connect to your computer and make changes. In a home environment you won’t use this. At work you’ll probably get your hand slapped if you disable it. It uses about a meg.

By trimming some of this dead wood, I was able to gain almost 32 megs of RAM.

Uninstall programs you’re not using anymore. I had several programs that I hadn’t used since Clinton was president that were taking up space on my drive, and some of them had been so nice as to install services that were running all the time and chomping some of my very scarce system RAM. Clearing those out gained me a couple hundred megs’ worth of disk space and nearly 20 megs of RAM.

Clear the browser cache. Internet Explorer keeps pieces of web sites on disk in case you ever visit them again, because it’s much faster than downloading them again. The problem is it does a terrible job of cleaning these up, so the result is you have, in all likelihood, tens of thousands of tiny files, if not hundreds of thousands, that you’ll never use again. Right-click your IE icon on the desktop, hit properties, and click Delete Files. You’ll save yourself some disk space, but more importantly, you’ll make this next step a lot faster and more effective.

Defrag. I used to be really good about defragmenting my drives but it looks like I’ve been lax lately because my C drive was in bad, bad shape. Go to Start, Programs, Accessories, System Tools and pick Disk Defragmenter. Run it once a month.

My drive, as it turned out, was hopelessly fragmented. The system was much peppier after I ran it.

I hope these steps will be helpful. It’s not as good as getting a new computer, but it’s much easier to live with now. If your system is bogged down, and like mine, it’s an old laptop that uses scarce and expensive memory and is out of slots anyway, this will make it easier to live with.

Umax scanner drivers

In the past I have recommended Umax scanners because Umax has a better history than HP of providing drivers for newer operating systems.I’ve heard from various sources (including the forums on driver sites) that Umax US isn’t providing drivers for free anymore. I guess the trick is knowing where to look. If Umax US isn’t providing the driver you need, Umax UK’s driver page probably does have it. (Remember, Windows 2000 drivers often work in Windows XP.)

I guess I’ve never noticed this because I’ve always tended to download the drivers from the UK.

Munich\’s unexpected migration costs prove nothing so far

I saw an article in the Toronto Star in which Steve Ballmer was, um, well, talking gleefully about the city of Munich’s highly publicized and controversial migration to Linux, server to desktop, costing more money than expected.

So I suppose Mr. Ballmer is prepared to reimburse one of my clients for its unexpected expenses in migrating from VMS to Windows then, eh?

Read more

Optimizing Windows networks

My church’s IT czar asked me a good question the other day. His network performance was erratic and Network Neighborhood was messed up. Some computers saw different views of the network, although if you manually connected to other computers, that usually worked.
There are probably 35 or so computers on the network now, so it’s no longer a small network. He asked a few good questions, and the tips that came out of the discussion bear repeating here.

1. Establish a master browser. There’s supposed to be one and only one keeper of the Network Neighborhood’s directory, if you will. Whenever a Windows computer comes online, it calls for an election. Usually the winner of the election makes sense. But sometimes a computer that has no business winning the election wins. Or sometimes the computers seem to get confused about who won the election.

Networks shouldn’t be like the U.S. political system.

Windows NT, 2000, and XP boxes run a service called Computer Browser. Ideally, you want one master browser and a couple of backups online all the time. So pick four computers who are likely to always be on, and who are running Windows 2000 or XP, preferably (since they’re likely to be newer computers). Then turn the Computer Browser service off on all but those four computers. Browser elections and related bureaucracy can chew up 30% of your network bandwidth in worst-case situations, so this can be worth doing even if you’re not yet experiencing the problem.

2. Use WINS. Unless you have an Active Directory domain and you’re running DNS on Windows 2000 or 2003 Server, Windows boxes have to broadcast because they don’t know the addresses of any other computers on the network. All that broadcast traffic chews up bandwidth and can cause other unusual behavior. WINS is basically like Windows-proprietary DNS. Set up WINS on one of your Windows servers, if you have one, or on a Linux box running Samba, and you’ll end up with a faster, more reliable network.

If you’re running a home network with fewer than 10 PCs, this probably isn’t worth the effort–especially the WINS server. The Computer Browser service might be worth disabling but more because it’ll save you a little bit of memory. If you’re a large enterprise with hundreds or thousands of computers running that service, the freeware PSTools suite from Sysinternals has some command-line utilities that can help you turn off services remotely, to avoid the daunting task of visiting every desk.

Shrinking Windows 2000 and XP

Seeing as this used to be my big topic, I would be remiss if I didn’t mention that it’s now possible to remove Internet Explorer, Windows Media Player, and other components from Windows 2000 and XP using software from litepc.com.
I haven’t tested it, so I don’t know how much difference it makes, performance-wise. It made a large difference in Windows 98–removing IE caused system speedups of anywhere from 10 to 25 percent, which is more than you gain by upgrading your CPU a speed grade or two. This was mostly due to two factors: reduced memory consumption and inefficiencies in the FAT/FAT32 file systems. It’s been known for about 20 years that performance starts to degrade dramatically once you have more than 100 files in a program or operating system’s subdirectory (Microsoft even said as much in the DOS 5.0 manual).

Since most people run XP and 2000 with NTFS, and since systems with half a gig of memory or more are becoming commonplace, I don’t know if removing IE will make as much difference in this day and age. It certainly makes sense from a security standpoint though–rip out IE, Media Player and Outlook Express and replace them with third-party apps, and you’ve just eliminated most of the programs whose security holes affect desktop PCs. It comes at the expense of compatibility though. Some programs utilize Outlook Express and IE components–although some programs will install the missing DLLs.

But for special-purpose PCs, or other PCs that aren’t running any software that uses those programs, or PCs that are strapped for disk space, it makes sense to give it a shot.

My brief experience with a Proliant ML570 server

Last week, I built a Compaq HP Proliant ML570. Quad-CPU, 1.9 GHz Xeon, 2 gigs of RAM, and about 200 gigs’ worth of 10K RPM SCSI storage in two RAID arrays.
Yes, being one of the first people to see a $20,000 computer and being the one who gets to take it apart to install the optional add-ins is my idea of fun.

Opening it up shows this is a real, honest-to-goodness server, not just any old commodity motherboard slapped into a rack-mount chasis or a case with big casters on it. The memory is on a riser card. There are standby slots on the card, so that if as many as two DIMMs fail, the backups take over. The riser cards are hot-pluggable, but of course how the computer handles you hot-plugging the memory depends on the operating system.

Most of the PCI-X slots are also hot-pluggable. They’re 64-bit and run at 100 MHz.

Of course, the hard drives are hot-pluggable as well. Which brings up the RAID stuff. The drives are Ultra320 SCSI. There are two drive cages. The only Ultra320 RAID controller HP is currently offering (remember, this is May 2003 as I write) was a single-bus. Well, there’s a second bus, but it’s external.

If you put in two of these controllers, you get the full bandwidth of the bus but you can’t stripe across the buses, which you will probably want to do for performance, and almost certainly will have to do in the future for expansion. The only two-bus RAID controller HP was offering was an Ultra160. So we bought that. Under the best-possible circumstances, a single 15K RPM drive can’t quite deliver 80 MB per second. So with two of the newest 15K drives on an Ultra160 bus accessing the very front of the disk, you’d still have a little bandwidth to spare.

These particular Fujitsu 10K RPM disks deliver between 40 and 70 MB per second under optimal conditions. So the Ultra160 controller isn’t a huge liability. But we’ll be ordering more of these, and if HP delivers an Ultra320 controller that meets our needs, we’ll get one.

It runs Linux really, really fast. I compiled a kernel in about 4 minutes, without doing anything special to it. Linux was only on it for a few hours though, while I waited for its RAID controller to come in. Then I installed Windows 2000 and SQL Server 2000.

It’s nice. But with nearly 8 GHz worth of CPU power onboard, it had better be.

Mozilla 1.3 has gone beta

I noticed that Mozilla 1.3 hit the beta stage today. I’ve been running the alpha version under Windows 2000 since mid-December, both as my primary browser and mail client, and I found it to be buggy, but its bugs were very predictable.
Predictable is good. Predictable means you can work around it. I worked around them easily enough that I didn’t report them, which was a mistake, but I’m sure I’m not the only one who saw them. I’ll report them if they’re still present in the beta.

Aside from those couple of predictable bugs, none of which ever caused the application to crash, it was reasonably stable. The main reason for calling it an alpha, I think, was feature incompleteness rather than stability. Stability wise, 1.3a was at least the equal of the original (pre-service pack) IE 5.0, 5.5, and 6.0, if not better.

So now I’m running 1.3b. I had issues with installing it. If you have 1.3a, disable startup acceleration. If you have a previous version of Mozilla hanging around and you intend to install 1.3b and you want to be absolutely safe, disable startup acceleration, then reboot, then install.

Then again, you may not have any problem at all. I get annoyed when people pronounce something stable or unstable based on trying it on one machine under one set of conditions for a couple of hours, and then they wonder what’s wrong with you if you do the same thing and have different results. So I won’t claim to have the final word.

But I’ll say this: If you want innovation in a Web browser, especially under Windows, Mozilla is pretty much the only game in town anymore. And its mail client isn’t bad either. For that reason alone, it’s worth a look.

And if the “beta” branding scares you off, I don’t blame you, because beta software has a deservedly bad reputation. This one’s a lot better. I won’t say it’ll never crash, because I’m sure it occasionally will. But the more people use it, the faster the bugs get found, and the faster it reaches true production quality. And that’s good for everyone.