ut the financial stability of a service provider when storage is so cheap. David Em has more on why you need storage space in his graphics report in the Web Exclusive part of this column.
However, large drives do require good disk utilities. You can start with PartitionMagic, from PowerQuest. PartitionMagic partitions your disk; once you've tried it, you won't go back to FDISK. It also examines your disk's partition structure and lets you change it painlessly.
For instance: Cyrus, my Cyrix 6x86 P-166 system, has (according to Windows 95) a 4.4-GB Barracuda drive partitioned into two 2.2-GB drives. Because most programs like to store themselves in C:\Program Files, I'm running low on disk space on the C drive.
There are several remedies. One is to move a lot of data files to the D drive and update the defaults in Microsoft Of
fice and other data-using programs. That works, but it complicates making backup copies; besides, for much of my stuff, I have already done that.
Another remedy is to move a lot of program files from C:\Program Files to S:\Program Files (i.e., to the big dual-Pentium server that hides in the cable room) and access those programs through the network. For some programs this is simple. Others will want the original installation disks -- and I don't have them all, meaning I'll have to edit the Registry, which is just a bit more fun than root-canal surgery. Since Cyrus won't be my main machine much longer -- I'm changing over to Princess, the Compaq Workstation 5000 that runs Windows NT -- I don't need a permanent solution, just a way to get a bit more space.
The first thing I did was install PartitionMagic. That uses about 6 MB of disk space, but it's easily uninstalled. More to the point, the program will tell me how much I can gain by repartitioning my hard drive, so I can use smaller cluster sizes.
Forgive me if you know all about cluster sizes. Some readers don't, so I'd better explain. It's also laid out clearly and in detail in the generally excellent PartitionMagic manual.
I'll summarize by saying that the bigger your logical disk drive, the larger the cluster size. The cluster size is the minimum space required to store all or part of a file. In particular, drives sized from 1024 to 2047 MB must, under the current DOS/Windows 95 OS, have a minimum cluster size of 32 KB -- and that becomes the smallest file size on your disk.
Thus, if you have a tiny ASCII file, say AUTOEXEC.BAT, the file size may be 88 bytes, but that file will still take up 32 KB on your disk. This wastes space, typically about 30 percent. The larger the partition size, the worse it gets; the wastage can approach 50 percent on systems that have a number of small files.
The remedy is to break that disk partition down to something smaller. A partition smaller than 1 GB, for instance, can use 16-KB clusters
and typically results in less than 20 percent wasted space. If you're really into disk organization, you can make one large partition for large files (e.g., the swap file and some program suites), one intermediate size for medium files (e.g., normal program files), and one small partition for little files like saved e-mail. I don't really recommend you do this. I just point out that it's possible.
I was concerned that Windows 95 showed my drives as 2.2 GB, larger than the maximum for 32-KB clusters, making me wonder if I was wasting more space than I needed to by using 64-KB clusters. There may be a way to make Windows 95 tell you what your cluster size is, but I don't know it. Thus, I installed PartitionMagic.
It told me that although Windows 95 thinks my drives are 2.2 GB each, they're really only 2047 MB, and my total wasted space is about 457 MB, or 19 percent. (It also turns out that 64-KB clusters are supported only in NT, not in Windows 95.) I could cut back on the wastage by partitioning t
he D drive into a D drive for program files and an E drive with 16-KB clusters for saved e-mail. However, it hardly seems worthwhile to recover at most 100 MB of disk space. Also, smaller cluster sizes come at a price: with small clusters, it takes longer to access large files, because the disk heads have to move a lot more. If you do make small partitions, don't put your swap file on one of them; it can slow your system down something awful.
There's an even more drastic way to recover that wasted space. I could get the latest version of Windows 95 (version 4.00.950B or later; you can find your version number in Control Panel/System), which includes FAT32, the new 32-bit file allocation table (FAT) system that allows 8-GB disk partitions with 4-KB cluster sizes.
The problem here is that there's no upgrade to FAT32; you have to back up all files, reformat, and start over. Then, too, the "B" version is still OEM-only. I've heard rumors of an imminent upgrade version, but there isn't one yet. I suspe
ct this is because, while BYTE readers may understand that installing FAT32 is a one-way operation, many users won't.
FAT32 can't share a partition with normal FAT files, nor can earlier versions of Windows 95 (or NT4.0) read FAT32 files. This applies only to reading local disk partitions; it doesn't affect the ability to access files through a network. A Windows 3.1 system can see and read FAT32 files on a connected system, and vice versa. Of course, if you use a network to move files to a FAT32 system, that is all transparent.
FAT32 is built into Windows 98(aka Memphis) and is clearly the right way to go, giving you large disk partitions without the penalties of large cluster sizes. However, retrofitting with it isn't something lightly undertaken, even for someone as networked as I am. One day I'll do it, but I'm in no big hurry.
I concluded that to get more space I'd have to either migrate stuff to the server or experiment with disk compression.
My last experience with disk compressi
on was pretty grim, but I have a new program, Mijenix's FreeSpace, that promises compression without pain or fuss. I was skeptical, but it sounded good.
Compression does two things. First, it squeezes redundancy out of files by encoding them. Second, it packs many small files into what the OS sees as one large file, thus eliminating wastage caused by large cluster sizes. The problem with compression is a mirror image of its virtue. To retrieve a file, something has to extract that file from the large compacted file it was stored in and then decode the file into its original form. None of this has to be unreliable, but it adds some complexities to file access.
Now suppose we want to add to that file. We have to find room for the new length and then repack everything. Finally, since many of your compressed files are stuffed end to end into one large packed file, if anything happens to that large file, you could lose them all. Apparently that doesn't happen very often, but it's a chance I'm not eager
to take.
FreeSpace is a file (not disk) compression utility with a nifty management structure and a simple user interface. Basically, you install FreeSpace, tell it how much disk space you'd like to make, and stand back. It will recommend which files and folders to compress to get that much. That seemed too good to be true.
First thing, then, was to defrag the disk. There are several ways to do that but only one I trust: Golden Bow Systems' Vopt. I have been using one or another version of Vopt since early DOS days, and I have not had a single problem. Vopt is very careful; it's also considerably more efficient than any other defrag program I've used. When you Vopt a disk, it's really optimized.
I ran Vopt and installed FreeSpace. I told FreeSpace I wanted to free up 20 MB. The analyzer wizard trundled and then recommended that I compress the Grolier encyclopedia folder. I told it to go ahead, and less than 5 minutes later, I had 22 MB more disk space.
The Grolier program has about 30
MB of stuff on my local disk; it gets the rest from a CD-ROM that resides on a Pioneer SCSI6-Pack CD-ROM drive on the server. When I ran the encyclopedia, I couldn't detect any difference in its operation after the file compression. Everything works just fine, and if there's a speed difference, I don't notice it.
I was curious now. I used Symantec's Commander 95 and Explorer to look at that folder to see what FreeSpace did; and I blush to say I don't know. If you right-click on some of the files, you'll see a new menu item, FreeSpace, and that will offer to decompress the file. Otherwise, there is no clue that any files have been compressed. Still, Explorer reports 20 MB more disk space available.
It still looked too good to be true, so I told the FreeSpace wizard that I wanted another 40 MB on the C drive. For good measure, it should find me 20 MB on the D drive. It did. On the D drive, there are a huge bunch of mail files, and a lot of game files on the C drive. Once again, if there's any effe
ct on performance, I can't find it.
Then I ran Vopt again. One of the things that used to drive me mad about disk compression on OS/2 was that I had to go to extraordinary lengths to defrag a compressed disk. With FreeSpace, I just run Vopt. When I did, it showed that the disk was seriously fragmented. Apparently, when FreeSpace compresses files, it compacts the ones it compresses, but that can leave a lot of fragmentation among the other files. Vopt soon fixed that.
The bottom line is that FreeSpace has painless compression and decompression. It's extremely easy to use. It will analyze your hard disk folder by folder to determine just how much space it can make for you; and it works just fine. None of my disk utilities know there were any changes in the disk structure; they just see some extra disk space. In fact, it's very hard to see just how FreeSpace works this magic.
FreeSpace doesn't work as well on NT, and clearly it's not going to do much for you in compressing files like JPEGs, whi
ch have already been compressed. However, as a quick-and-dirty way to make some more disk space in a hurry, this thing is a blooming miracle. Laptop users with their truly limited disk space will absolutely love this product. Recommended.
Vopt is written by Barry Emerson, who seems to know more about DOS and Windows file operations than anyone I know
, including Microsoft's people. Vopt has been on my recommended list just about forever. (Truth in reporting: Elizabeth Emerson of Golden Bow has won my "bribe of the month" award several times for elaborate chocolate Christmas presents, but that's not why I like Vopt.) Anyway, about the time you read this, there will be a new version for NT as well as some improvements in the Windows 95 version.
Vopt shows you exactly what is going on, gives a map of just how fragmented your disk is, and works at lightning speed. It's a lot faster than its rivals, despite the fact that it's also more thorough. Disk fragmentation can be a serious problem, especial
ly if you do much Internet surfing. Internet browsers create and delete scads of temporary files. Surfing for a few nights can reduce my hard disk to chattering inefficiency bad enough to make me think the old "hesitation" curse is back with me. Vopt fixes that. Highly recommended.
Actually, I should say that Vopt is a partial cure. I have had hesitations in Word again. I suspected they were caused by disk operations; making disk operations more efficient reduces the time the computer's attention is turned to them. That helps.
But I went further: I wanted to know why all the disk operations. What I found out makes a long story -- you'll have to read it in the Web Exclusive part of the column -- that ended with my installing and uninstalling Quarterdeck Systems' CleanSweep. The reason? I was routinely exceeding Cyrus's 32 MB of memory.
Speaking of Quarterdeck, some time ago, I said that I didn't see much improvement from their MagnaRam.
That turns out to be wrong.
Even though I man
aged to get my memory usage down below 32 MB by uninstalling CleanSweep, it was still hovering around there, and my stupid hesitations in Word continued. About then, my son Richard spotted the newest QEMM97 and mentioned that he thought MagnaRam, which is included with QEMM97, had helped his system.
I figured anything was worth a try, so I installed QEMM97, which automatically installs MagnaRam, a program that claims to do for RAM what FreeSpace does for disk space, on-the-fly compression. The results were amazing: my hesitations ceased, most disk-swapping operations ceased, and things are very stable. The decrease in disk-swapping operations has been dramatic.
One warning: by default, QEMM97 installs Update-It, a memory-resident program that will go look for Quarterdeck updates on the Internet. That uses several megabytes of memory and surely is not needed. Kill it fast.
Back in DOS and early Windows days, I found QEMM, Quarterdeck's memory manager, indispensable, and I said so often. When
Windows 95 rolled out, it didn't look like there was much need for third-party memory-manager programs.
I was wrong. QEMM97 works like a charm, adding memory and resources to your Windows 95 system. While I haven't been using it for all that long, Richard has, and neither of us has had any problems with it so far. It works fine with FreeSpace and Norton System Doctor, its control panel gives you a lot of useful information, and it instantly ended my newest round of hesitations. Recommended.
While I was talking with Barry Emerson about improvements to Vopt, he told me something disturbing.
Disk defrag programs move massive amounts of data around. To make sure that everything works properly, Vopt does cyclic redundancy check (CRC) checksums on each file that it moves. Barry has found that in about every 500 GB of data moved, there will be one bit flip: a 0 has become a 1, or vice versa.
He has no idea what causes this; it does not seem to be specific to any kind of file or any kind of ha
rdware. It may be temperature-dependent, but that's an impression; when an event is that rare, it's hard to get decent statistics. "It may be cosmic rays for all I know," he said.
One bit flip in 500 GB is a very low error rate; but given current massive data transfers, it's frightening. The odds are pretty good that the bit flip will be inconsequential or that it will cause a fatal error requiring you to restart whatever operation you were engaged in; but there remains that tiny chance that the bit will flip in an important data file and never be noticed.
I honestly don't know what, if anything, I can do about this. Thus, I merely report it. But it disturbs me.
Now an apology. The comedy of errors started in my November column.
CyberMedia's Oil Change recommended that we download DUN1.2, a Microsoft upgrade to Dial-Up Networking. We did that. We also read about a utility called TweakDUN, from Patterson Design Systems. It's recommended and apparently codeveloped by NetPro NorthWest; you
can find them at
http://www.sns-access.com/~netpro/maxmtu.htm#tweakdun
, which goes into great detail on what TweakDUN does and why you need it.