微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

如何在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.

原文地址:https://www.jb51.cc/windows/371845.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐