fixed detect_disk for systems with low storage