This code will allow you to directly read/write to the sectors of the hard disk with IRQL <= APC_LEVEL(1)
https://www.codeproject.com/Articles/28314/Reading-and-Writing-to-Raw-Disk-Sectors
The code in the article is non-working, has been completely rewritten. The concept has not changed.