加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

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

发布时间:2020-12-13 20:33:51 所属栏目:Windows 来源:网络整理
导读:我知道在linux中它就像/ dev / sda一样简单但在Windows中如何打开磁盘并开始在低级读取数据? 在python我尝试过: f = open("K:","r") 我收到此错误: Traceback (most recent call last): File "stdin",line 1,in moduleIOError: [Errno 13] Permission den
我知道在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.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读