migrate detect_disk