How to block OS from accessing a disk?

How to block OS from accessing a disk?

Not a good idea. Modern operating systems write logs permanently, loads libraries, acesses data etc.
Blocking this makes your OS unusable

In a multidisk boot system its usefull. One OS will not miss other OSs or Bootloaders.