nativised detect_disk on linux