I am trying to find the logical or physical offset of the first sector of a file on disk, I have searched a few sites already. Please does anyone know if this is possible in python? See if the code below gives you an idea of what I am trying to do.
with open(r'\\.\C:', 'rb') as disk:
offset = open(r'C:\path_to_file\file.txt')
disk.seek(offset)
disk.tell()