The story
Either from a + whole + nother (“different, other”), where nother is a variant of other, rebracketed from an other, or from whole + another, with whole having been inserted by tmesis. Compare also dialectal tother from Middle English þe toþer (“the other”).
Etymology from Wiktionary, CC BY-SA 4.0.