Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想问一下是否可以通过直接读取扇区信息来确定硬盘中安装了哪个操作系统?如果,我应该读取哪个扇区以及如何指定一个扇区,然后以编程方式从中读取数据(有用的 API)?
另外,即使它的主机系统在虚拟机中工作,我是否可以编写代码来做到这一点?
通过阅读主引导记录并查看分区类型,您可以得到一个很好的猜测。
请参阅问题直接访问硬盘?指向有关直接读取原始扇区的信息的指针。