문제

I would ask about the possibility of determining which operating system is installed in a hard drive using direct read of sectors information? If, what sector should I read and how can I specify a sector and then read data from it programatically (useful APIs)?

Also, can I write a code works to do that even if its host system is working in a virtual machine?

도움이 되었습니까?

해결책

You can get a pretty good guess by reading the master boot record and looking at the partition type.

See the question Direct access to harddrive? for pointers to information about reading raw sectors directly.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top