I want to prevent the Operating System from accessing the hard drive for short period of time.
You can't prevent the OS from using the disk.