Slashdot Mirror


Windows 95 Almost Autodetected Floppy Disks

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."

11 of 334 comments (clear)

  1. Um by linumax · · Score: 5, Insightful

    Why not do the behavior detection on first instance a floppy disk was used?

    1. Re:Um by enjo13 · · Score: 4, Insightful

      The point is you don't have to do even that. The routine would look something like:

      - User initiates action with the floppy drive
      - Run the auto-detection routine to see what answer you get
      - Spin up the drive and check to see if something is in the drive
      - Compare that with the pre-spun result to see what answer you get.

      Something along those lines. There are several variations on this that would work and never require you to interact with the user at all.

      --
      Turn s60 photos into awesome videos with mScrapbook for all S60 3rd edition phones!
    2. Re:Um by RiotingPacifist · · Score: 4, Insightful

      problem: some users are idiots
      solution: treat all users like idiots

      I know its not the msway but a would regkey you could manually set have been that hard?

      --
      IranAir Flight 655 never forget!
    3. Re:Um by Asmor · · Score: 3, Insightful

      For that matter, they could have done it during setup or any other time. It doesn't matter if a floppy's in the drive or not. Check if there is one the old fashioned way (spinning the motor) and then do your routine. Bam, trained, and you never have to spin the drive again for this purpose.

    4. Re:Um by mccdyl001 · · Score: 5, Insightful

      damn wish i had mod points. and a shift key for that matter... anyway, surely there was a way for the operating system to poll the system using these 'magic' system commands to check if a disk had been inserted. so poll the system, see what it says - either a 1 or a 0, then spin up the drive and see what it actually says. heck do it as part of the system install. take a snapshot of the floppy drive device name or something at the same time. if the device name changes re-run this technique, cause if you swap the floppy with another drive which reports the same device name it'll still report 0 or 1 for the same type of disk insertion scenario so you fine, and if the floppy device name is diff, then re-run this technique. anyway, as part of the system install you could have polled if the disk was there, taken the answer, then actually spun up the drive and checked and bingo, your training is done1 damn what i could do with a shift key right now....

    5. Re:Um by coryking · · Score: 4, Insightful

      floppy device name is diff

      The only way the OS even knew your floppy drive existed was through the bios. If you told the BIOS you had a floppy drive and you didn't, the OS would be none the wiser. And if the OS didn't know if there really was a drive or not, I somehow doubt the technology could even support unique device ID's like modern stuff.

      In other words, your plan would work if floppy drives had device ids, but they dont, so your idea won't work either!

  2. Re:Where did I put that SlowNewsDay tag? by GuldKalle · · Score: 3, Insightful

    Hopefully far away.
    To ordinary people, this is indeed a non-story. But to a true nerd, a story about an undocumented feature in a (once) popular tech almost being implemented in a (once) popular OS is interesting reading.
    It may not be "news for nerds, stuff that matters" but it's definitely "stuff for nerds".

    --
    What?
  3. Big deal by AmigaMMC · · Score: 3, Insightful

    AmigaOS 1.0 did that

  4. Re:Detection via delta? by drsmithy · · Score: 3, Insightful

    Yes, and that's been a danger since day one. The removable media should _never_ have been the default: it should have been the fallthrough boot medium, to keep idiots from booting with floppies or later CD's and USB devices automatically to take control of your hardware.

    On "day one" the *ONLY* option was "removable media". If you were lucky, you might even have had drive A: _and_ drive B:.

  5. Re:Non-system disk or disk error anyone? by VGPowerlord · · Score: 4, Insightful

    Of course Windows damn well knows automatically when a floppy is inserted...
    The number of times I had to remove a floppy from my mom's non-booting PC is probably higher than the number of bytes in Wikipedia's servers.

    Congratulations on not reading the article or summary.

    First, this feature was talking about checking if a disk is present without spinning up the disk. To boot from a floppy, a computer spins up the disk and looks for a boot sector.
    Second, that would be the BIOS, not Windows, checking the floppy during the boot process. It checks the devices in the order it's set to. Back in the mid 90s, this was generally floppy, then IDE, then SCSI. A few people with good hardware had CD-ROM in there, too.

    --
    GLaDOS for President 2016! "Well here we are again. It's always such a pleasure." -- GLaDOS, 2011
  6. Microsoft by dereference · · Score: 3, Insightful
    Microsoft should ask this MSDN blogger to do some UI consulting for them.

    One could say that a feature that mysteriously turns itself on and off is worse than a feature that simply doesn't work. At least when it doesn't work, it predictably doesn't work. Human beings value predictability.

    Consistency in an operating is indeed a high priority, but the designers at Microsoft think they know better and suggest "Because Windows adapts to how you use your computer, the menu items you use most will be automatically displayed in the future. So the next time you open the menu, you might not need to expand it."

    Nobody wants floppy drives to spin up as soon as a disk is inserted. That just makes them think they've been attacked by a computer virus. It'd all just be a lot of work for a feature nobody wants.

    If only they had remembered this lesson. Some years later they considered it vastly different to spin up a CD upon insertion. Then they figured they'd not only do that, but also trust the media enough to blindly start executing code from it.