[OHAI-504] test if drive is magnetic/rotational or an SSD/flash drive

patch for OHAI-504 which I suggested.