如何在Windows中打开磁盘并以低级别读取数据?

前端之家收集整理的这篇文章主要介绍了如何在Windows中打开磁盘并以低级别读取数据?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我知道在linux中它就像/ dev / sda一样简单但在Windows中如何打开磁盘并开始在低级读取数据?

在python我尝试过:

f = open("K:","r")

我收到此错误

Traceback (most recent call last):
  File "<stdin>",line 1,in <module>
IOError: [Errno 13] Permission denied: 'K:'

即使是管理员,我也会收到此错误.

http://support.microsoft.com/kb/100027

To open a physical hard drive for
direct disk access (raw I/O) in a
Win32-based application,use a device
name of the form

\\.\PhysicalDriveN

where N is 0,1,2,and so forth,
representing each of the physical
drives in the system.

To open a logical drive,direct access
is of the form

\\.\X:

where X: is a hard-drive partition letter,floppy disk drive,or CD-ROM drive.

猜你在找的Windows相关文章