Fixed segfault is disk_device is read-only
