Floppy drive failed (40) Error on startup

By dhuber ·
I was replaced a couple of optical drives on an older computer and now I get this error message upon boot-up, "Floppy drive failed (40) Error on startup" Once I got it to show up in the device manager and it gave an error code of 31 which is it needs another device/connection to run but I have no idea what it wants. I have tried four different floppy drives and two different cables but still get the same result. It worked fine before so I don't understand. Have also checked the BIOS to make sure the drive was set correctly but no change. Thanks for any help you can give.
Dawn Huber

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Answers

Collapse -

You mean a Code 40 during POST? (or in device manager?)

by robo_dev In reply to Floppy drive failed (40) ...

Does the floppy drive initialize at power-on?

Do you see the floppy drive motor spinning?

If it's a Compaq there were proprietary cables/drives, so swapping drive may not work unless it's the exact same part number.

I have given up having floppies in several old Compaqs due to their weird cables/drives.

Collapse -

Error Code 40 during Post

by dhuber In reply to You mean a Code 40 during ...

The error code 40 is what I get during the boot up post process. Error 31 is what I get in device manager when it actually sees the drive. No it doesn't initialize or seem to spin. Like it doesn't exit. No it is not a Compaq but thanks for the information as I work on a lot of Compaq's and HP's. I too have given up on floppy's, a USB flash drive is the best thing since sliced bread. But I have some clients who still have old ones and need to be able to read them. I can just give them an external floppy drive but would really like to understand what is going on here. Thanks for your help!

Collapse -

Microsoft's Knowledge Base bulletin:

by nepenthe0 In reply to Floppy drive failed (40) ...

For Windows XP, Device Mgr trouble code #40 is:

Windows cannot access this hardware because its service key information in the registry is missing or recorded incorrectly.

The solution posted is:

Uninstall the driver, then click scan for hardware changes to load the driver again.

Please post back if this doesn't work for you.

Rick/Portland, OR


Collapse -

Windows 2000 PRO instead of XP

by dhuber In reply to Microsoft's [i]Knowledge ...

The error message 40 occurs during the boot up post process, error 31 is what I get in device manager. Thanks for the info from Microsoft, I tried finding something on this problem the other day and got lost in their archives and gave up. Thanks for any further help you can give!

Collapse -

If the light is constantly on

by Jacky Howe In reply to Floppy drive failed (40) ...

on the Floppy Drive you have the Cable on the wrong way.
Insert the flat end to the Motherboard and the end of the Cable with the twist to the Floppy Drive. Pin one is normally next to the drive motor on the Floppy Drive.
Also check on the Motherboard to see if you have pin 1 on pin 1 if the connector is free standing. :)

Collapse -

Must not be the cable

by dhuber In reply to If the light is constantl ...

the light wasn't even coming on but I checked the cabling and did in fact have it on wrong. I so appreciate your information. The pins on the MOB are enclosed so you can't get them shifted, so are the ones on the drive itself. Any other ideas?

Collapse -

You say

by Jacky Howe In reply to Must not be the cable

that you replaced a couple of drives. How many 1.44 floppys does this PC support.
Have you tried reconnecting the original drives to make sure that the onboard port is still functioning. Are these drives new or used.
This error generally means that the unit has died.
Error code 31: ERROR_GEN_FAILURE - A device attached to the system is not functioning.

Collapse -

All of the above ?

by dhuber In reply to You say

One floppy and 2 optical drives. I had several used floppy drives that I tried it with and one of them was new. But what are the odds 4 out of 4 drives failed? I did try putting the original back in as you suggest but no luck there either. I have swapped one end of the cable with the other. Also tried a flip. I have tried a new cable and nothing. Any other ideas are welcome!

Collapse -

Follow these steps

by Jacky Howe In reply to All of the above ? :(

It could also mean that it is a problem with the Floppy connector on the Motherboard.

Troubleshooting Floppy Drives
These are some common problems experienced with Floppy Drives:

Diskette is damaged.
The system's CMOS settings may be incorrect.
The ribbon cable that goes from the back of the floppy drive to the system board or controller may be bad or the connection may be loose.
The power connector to the floppy may be loose or disconnected.
Conflict within the system with some newly added hardware or software.
The drive may be damaged.

Check your CMOS settings
If the problem is still there and it does not recognize the floppy, then it could be configured wrong in your CMOS (Setup). If the floppy drive is identified incorrectly in CMOS, you will probably be unable to boot to or format a floppy diskette.

Reboot and when you see the first boot screen called POST, you will see a line telling you what key to hit to get into your SETUP (CMOS) - generally the DELETE key. Once in SETUP you need to check that CMOS is identifying your Floppy Drive and that it is the correct one (i.e., 3.5 in., 1.44MB is the current standard for diskette drive 0 or diskette drive A). Note: If you have a Pentium or PCI system, check the security section of the CMOS and remove the supervisor password if one has been set. The supervisor password causes the floppy drive to display error messages identical to those usually associated with a defective floppy drive or cable.
In CMOS use the arrow key to highlight Standard CMOS Setup and press [ENTER].
Be sure the options for Drive A; and Drive B: You can modify the settings by highlighting them with the arrow key and using the [PAGE UP] or [PAGE DOWN] keys. The current standard setup is:

Drive A : 1.44, 3.5 in.
Drive B : None (unless you have two Floppy Drives)

Press [ESCAPE] to exit Standard CMOS setup.
Highlight Save settings and exit and press [ENTER].
Checking the cables
If you have checked the CMOS settings and the settings are correct, the problem may be a poor connection between the floppy drive and the system board or controller. Check Loose or Poorly Connected Cables. To do this:

When performing this test, make sure you pull the connectors, not the cable and disconnect the POWER Cord to the Computer.

Power down the system and remove the system case.
Orient yourself with the back of the floppy drive inside the system.
Find the back of the Floppy drive inside of the case. On the back of the floppy drive you will find a red, yellow, and black cable and a flat, gray ribbon cable. The red, yellow and black cable is the power lead.
The flat, gray ribbon cable (or Round) is the data cable that needs to be reseated first.
Firmly pull the cable straight off the back of the floppy drive (pull the connector, not the cable) and press it firmly back in place the same way you took it off. If it has become completely disconnected you will need to re-connect it. Make sure the end of the ribbon cable with the red stripe is towards the floppy power connector.
Follow the ribbon cable down to where it connects to the system board. Note how it is oriented and firmly pull the cable straight off and push it back on the same way that you took it off. If it has become completely disconnected you will need to re-connect it. A good general rule to follow is to make sure the end of the ribbon cable with the red stripe is oriented the same way as the other large ribbon cables connecting to the motherboard.
Plug the Power Cord in and Power up the system, try to boot to a floppy diskette and format a floppy diskette as mentioned above in (6). If your problem is solved, power down system and put the system case back on and you are done. If you are still unable to do access your floppy drive then try:
Power down the system again and pull the red, yellow, and black power lead off the back of the drive (pull the connector, not the cable). Replace it with another available power lead that appears similar to the one originally on the drive. Power up the system, and try to boot to a floppy diskette and format a floppy diskette as mentioned on the previously.
Recently added New Hardware?
If you have such as a tape backup unit, sound card, scanner, network card, etc. to the system, try removing these items from the system one at a time. Each time you remove an item, try to boot to a floppy diskette and format a diskette. If the floppy works, it is possible the hardware that was added may be conflicting with the floppy drive.

Re-configure the new hardware, and try replacing it to see if the problem persists.

Floppy Drive Light Stays On Continuously
If the light on the floppy drive(s) stays on constantly from the time the system is powered up, the data cable on the system board or controller card may be on backwards. Power down the system and locate where the data cable is attached to the system board. Once you have located it, pull the cable off gently (pull the connector, not the cable). Turn the cable around 180 degrees and put it back onto the system board. Power up the system to see if the lights stay on continuously.

If you started experiencing floppy drive problems after adding a tape backup unit, try using the additional floppy cable that came with the tape backup unit kit. Instructions for this operation are usually included with most tape backup unit kits.

Error Messages
You may receive some of the following error messages when trying to access your floppy drive. The error messages can often pinpoint a specific problem.

Diskette Drive 0 Failure

This error is usually seen as the system boots up. Check the CMOS to make sure that the drive(s) are identified correctly. If that does not correct the error, open the system and reseat the floppy drive cable. If that still does not correct the error, try another floppy cable.

Not ready reading drive A

This error may be caused by incorrect drive identification in CMOS. Check to make sure that the drive(s) are identified correctly. This error can be caused by not having a diskette in the floppy drive(s) when you try to access it. If the floppy cable is poorly seated, this error will often occur. If you have a Pentium or PCI system, this error may occur if you have the supervisor password enabled in the CMOS.

Invalid drive specification

This error can be caused by incorrect CMOS settings including the floppy drive not being identified at all.

Invalid media type

This error may occur if you are trying to format a diskette that is defective or of a media type that is incompatible with your floppy drive.

Error selecting drive

This error occurs primarily in Windows when you attempt to access the floppy drive without a diskette inserted. This error can occur with some operating systems such as Norton Desktop or PC Tools; often these programs have updates to correct the problem.

Non system disk or disk error

This error occurs if you have a diskette other than a bootable floppy diskette or the #1 MS-DOS setup diskette in the floppy drive as you boot up the system. If you have a bootable diskette in the drive and still receive this error, the cable to the floppy cable is loose or defective.

Related Discussions

Related Forums