Some earlier PS/2s (including some or all Model 50s, 60s, 70s and 80s) used diskette drives with 40 way card edge connectors. These fitted into a frame which contained the female connector. Later machines used a 34 way 2 row header instead.
There is an adapter cable that connects the 40 pin card edge connector to the newer 34 pin header connector. It is used (for example) when installing the Internal Tape Backup Unit (ITBU) or the External Diskette Drive adapter (the dummy drive cage) to machines that do not use the edge connector interface. It might also be useful in extremis if it were necessary to fit an older drive to one of the newer Model 80s (the actual drive retention cage is the same).
The IBM version of this cable uses about 3cm of 34 way ribbon cable, with the (female) edge connector on one end and a (male) header connector on the other. However, wiring is not 'straight through'; the power connections differ between the two interfaces.
Diskette Drive 34-Pin to ITBU 40-Pin Connector (Adapter Cable 34F2717)
Included in Internal Tape Backup Unit Installation Kit B
This is from the EPRM (agrees with the table in 64F7470 / G571-0204-00):
For completeness, here are all of the connections required:
NOTE: This goes to a header on a Model 80, and I would heartily recommend checking the pinout for the 40 or 44 pin header used on the later systems BEFORE you wire this up...
In practice, manufacture of this cable is fairly straightforward. Cut a short piece of 34 way ribbon cable (about 6cm). Fit the 34 way header connector in the normal way, remembering that the edge with the red stripe goes to pin 1. Separate out wires 3 and 6 for most of the length of the cable, leaving about 1cm intact nearest the header connector. Cut the three main parts of the cable (wires 1-2, 4-5, and 7-34) back to about 3cm in length. Trail wires 3 and 6 across the surface of the rest, and hold temporarily in place with a small piece of sticky tape. Fit the edge connector loosely, making sure that the wires all go in the right connectors (a gap of one wire between each of the first three sections, counting from pin 1, a 3 wire gap to the single wire from pin 3 on the header, and a 1 wire gap between that and the final wire (from pin 6 on the header). When all is in place, crimp it all home.
It may be worth winding some wide tape round the cable, transversely, to avoid the two single wires snagging on something when the cable is fitted.