Windows 95 Almost Autodetected Floppy Disks 334
bonch writes "Windows 95 almost shipped with a technique for detecting whether a floppy disk was inserted without spinning up the drive. Microsoft's floppy driver developer discovered a sequence of commands that detected a disk without spinup — unfortunately, unspecified behavior in the floppy hardware specification meant that half the drives worked one way and half the other, each giving opposite results for the detection routine. Microsoft considered a dialog prompting the user to insert a disk to 'train' the routine, but the idea was scrapped."
Detection via delta? (Score:3, Interesting)
Couldn't you perform the detection by measuring the delta of the state?
On booting Windows 95, attempt to read from the floppy drive. If there's no disk, then take whatever that hardware state is - whether 1 or 0 - as the 'base' value, and periodically check to see if that value has changed.
I may be missing something but it seems like the appropriate trigger isn't the specific value of the flag, but rather the setting of said flag.
--Ryvar
Obligatory Linux Comment (Score:3, Interesting)
Just out of curiosity, what mechanism does Linux use to do this? In Ubuntu both on my laptop and desktop it magically detects floppies when they're inserted seemingly without spinning the drive. My laptop uses an external USB drive, but my desktop has a bog standard internal drive circa 1992.
But on a different note, if you want Windows to autodetect floppies for you... Buy an LS-120 drive.
Macs (Score:3, Interesting)
I never imagined that MS developers were smart enough to actually to think of something like this. We in Macintosh land where auto-detection of floppies was standard from the beginning had simply chalked it up to a simple case of microsoft being microsoft.
Re:Macs (Score:5, Interesting)
You had something resembling a hardware spec, you lucky beggars. One thing that has slowed Linux development has been the plethora of weird hardware specs that Microsoft and their partners designed and supported, and people in Linux-land are expected to have "just work" despite this kind of specification insanity. In fact, when I can, I prefer to buy hardware that is listed as "Macintosh compatible" because the specs are so much more reliable and the quality is generally higher.
Actually there were viruses that did this in DOS (Score:5, Interesting)
I had a DOS virus once and it did this so that any disk in the drive while the virus was in memory would become immediately infected.
So viruses were doing this years before Windows 95.
Re:Obligatory Linux Comment (Score:1, Interesting)
Well, I dont know how they do it on these days but 2001 when Windows XP came out, there was only a few Linux-distributions what used automount. Mandriva was one of the first ones to use it and even then it brought lots of problems for USB-devices like digital cameras and memory sticks.
Now those problems are on the Windows (Vista and 7) because to remount drive after umount you need to unplug it and plug it back so it would get reconized.
Still was unable to use a floppy and multitask... (Score:3, Interesting)
Re:Um (Score:5, Interesting)
Really? I liked how I could insert a floppy into my Mac, there was a firm ka-thunk that the disk was inserted, and then like magic, the floppy icon appeared on my desktop to indicate that the computer was ready for you to use it (or it would pop up a 'could not recognize this disk').
Do this day, on windows (at least up to xp), clicking the floppy icon (which is always present) freezes the window while it goes about trying to read from the drive, making it annoying if you accidentally click the icon (because it's always there).
And the system possibly could have worked by doing the test the first time the floppy is attempted to be accessed after the system boots... But you did save less than a dollar (retail) on the drive.
Re:Um (Score:5, Interesting)
That whole explanation is bullshit. AutoRun was not reliable at first for CDs either, and most software included instructions for what to do if the AutoRun screen didn't show up or if AutoRun was disabled.
Re:Macs (Score:5, Interesting)
Floppys were the worst too. There was like no standard way to put in the ribbon cable so that Pin-1 on the cable hit Pin-1 on the drive. Some of the ribbons had a filled hole to act as a key--some of the disks had a pin there so that cable didn't work. Some of the disks were designed for the key'd ribbon, but all you had on hand were non-keyed cabling. Some of them had a plastic key on the ribbon so they wouldn't work on the drive missing the slot for the key.
None of the disks had a plastic mold that surrounded the pins. That lead to you connecting the ribbon so the pins were all off by a row. Then when you pulled out the ribbon, it was very easy to bend all the pins.
Keep in mind you were usually doing all this while the disk was screwed into the case and tucked into some god-awful location too. So you'd be inserting this ribbon essentially blind. As a result, every drive I owned had pins that were bent to shit because it would take like 4 try's to get the damn thing working. And worse, you'd never know if you didn't hook it up right until you booted the box and tried to read from the drive.
Oh and if you did manage to get them working, the media was so unreliable that sometimes you could take a brand new disk, write to it, carry it to class and find all your data corrupt. Woe is the fool who didn't write the same file to two disks, lest he arrive with nothing but a bad disk.
Floppy disks sucked. There was nothing good about them. Slow, unreliable and ill designed. Fuck them and the free AOL disks they wrote on.
internet protocol stack (Score:1, Interesting)
if anyone remembers installing Trumpet tcp/ip stack in windows 3.11 to get on the internet........ well.... i for one, was very happy with this fancy new windows 95 thing that had it included in the operating system.
and the 'start' menu was great. not that linux didnt have it already in some window manager, but it has been copied over and over because it works pretty damn well, both from a mouse jockey and a keyboard jockey perspective.
Re:Macs (Score:5, Interesting)
Yah.
You have to remember, a lot of people on Slashdot posting about Classic MacOS never actually used it. Most of them only adopted Macs after OS X came out, but they like to pretend they were part of the "Classic Club" by giving us little gems like the post you replied to.
If you even slightly think something said on Slashdot might be wrong, go with your gut.
twenty year ejection (Score:5, Interesting)
That says a lot about the attitude toward Apple when the major point of criticism is over style points.
I had the original fat Mac (512KB) with two floppy drives. There was no internal hard drive and not really anywhere to put it. IIRC, I priced a 10MB hard drive in the range of $1500 with the necessary case mods. Whatever the price, it was a sizable fraction of the purchase of a new-fangled IBM AT. (If you don't know what fangled means, assume the worst.)
The dual floppy fat Mac was pretty much a write-off for coding in C. My Unix-like C environment required at least three active floppy drives to get anything accomplished.
Fortunately, Apple had implemented an auto-eject whenever the unmounted floppy was required. Invariably, it chose to eject the disk you would immediately need next. I muttered so many times to myself "no, you stupid POS, suck that diskette back in and eject the *other* one". Apple provided no convenient way to override this mistake. I had a lot of bent paper clips on my desk.
Apple's philosophy then, which has ever-so-slowly evolved over two decades was "if this bothers you that much, spend half the price of a new machine on a short-sighted upgrade to an internal 10MB hard drive, which was never built to accommodate this". (You still won't have a proper LAN.) Or better yet, buy the Lisa.
I would have loved to drag Apple's entire floppy disk interface into the trash can.
Another thing about Apple back in the day was the rumour that Mac OS would support true virtual memory "real soon now" once hard drives became a standard feature. Apparently they were too busy crowing about the lack of 8.3 to pull this off. It didn't come true until the first release of OS X. Thus the nearly twenty year gap between my first Mac purchase and my second one.
Re:Um (Score:2, Interesting)
Re:Actually there were viruses that did this in DO (Score:3, Interesting)
Yes, otherwise I wouldn't be mentioning it here :). In fact I discovered the virus because the 5.25" drive light would come on when a disk was inserted before the drive was even closed.
Re:Macs (Score:3, Interesting)
There was a very well adhered to de-facto standard which applied to floppy drives, the early MFM/RLL ST501 style hard drives and even the later IDE drives:
Pin one (red stripe on ribbon cable) is always closest to the power connector.
Very rarely did anything not adhere to that.