Originally Posted by
DCB0
All 8 speed Shimano cassettes will fit on your hub. There was never any road/mtb difference for cassettes, except for the first generation of 10 speed cassettes.
]
This.
I don't know where you got the info that road cassettes will only work with road bikes and mtb cassettes will only work with mtbs, but that is not true in the least other than the 10 speed issue.