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

22 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 jonbryce · · Score: 2, Insightful

      If you spin up the drive and find there isn't a disk there, that either means there isn't a disk there, or the disk is faulty.

    3. 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!
    4. Re:Um by glavenoid · · Score: 2, Insightful

      ...Or the drive is faulty, or the drive controller is faulty, or the drive's driver software is faulty, etc...

      --
      I, for one, am looking forward to the inevitable /. beta rollout fallout.
    5. 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.

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

    7. 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. How about veryslownewsday? by bigsexyjoe · · Score: 1, Insightful

    I mean this was "who cares?" ten years ago. Now it's well beyond that.

  3. Re:Detection via delta? by Antique+Geekmeister · · Score: 1, 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.

  4. ok, but... by yup2000 · · Score: 2, Insightful

    Why didn't they spin up the drive to check for a disk, run the routine that doesn't spin the drive up and based on the results, adapt the result to the computer...

  5. Re:I question this. by Jane+Q.+Public · · Score: 2, Insightful

    Yes, I had read the article, but I misunderstood it the first time through. I thought they were saying that the spin-up routine was giving ambiguous results.

    If the hardware switches did indeed report differently depending on the model, then yes I can see this. But the article makes it sound like the programmer was some kind of clever genius; rather, the insertion detection was right there in the specification to begin with.

  6. 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?
  7. Big deal by AmigaMMC · · Score: 3, Insightful

    AmigaOS 1.0 did that

    1. Re:Big deal by noidentity · · Score: 2, Insightful

      Oh yeah, I remember Amiga... the disk drive constantly clicking every few seconds. It made you always keep a disk inserted just to shut the damn thing up.

  8. 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:.

  9. 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
  10. Click by Dan+East · · Score: 2, Insightful

    AmigaOS 1.0 did that

    Click. Click. Click. Click. Click.

    --
    Better known as 318230.
  11. Re:Detection via delta? by adolf · · Score: 2, Insightful

    Because some of us elder geeks like learning about clever and functional hardware tricks, I suppose. It's always interesting to me when a piece of hardware learns a new trick which its designers never intended, with software alone. Using the PC speaker for digital audio is one. Data acquisition with a parallel port is another.

    Central Point's PC Tools Backup program used to do floppy detection, but it kept the motor spinning the whole time. So, doing this same trick without spinning the motor is interesting to me.

    If it's not interesting to you, then get off my lawn, kid, and go fuck with your water cooling rig some more and post the results on Twitter or something. Don't come whining here.

    K? Thx.

  12. Re:Obligatory Linux Comment by Anonymous Coward · · Score: 1, Insightful

    Or, being Apple, you happened to know the magic for each drive you shipped and didn't need to train.

    Controlling the whole system means knowing whatever you want about it.

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

  14. And what kept them from doing what's safe? by fadir · · Score: 2, Insightful

    What kept them from auto-detecting floppies during a Windows session?

    Example:
    1. insert floppy, do something, detect mechanism
    2. request disk2
    3. auto-detect that disk2 has been inserted
    4. keep auto-detection during the Windows session
    5. after Windows restart goto 1

    That sounds seamless to me, is easy to understand and doesn't cause any trouble. (I guess the few people that swapped their floppy drives during a Windows session are negligible.)