Protecting disks from being written or overwritten