如何在Windows中打开磁盘并以低级别读取数据? [英] How to open disks in windows and read data at low level?

查看:93
本文介绍了如何在Windows中打开磁盘并以低级别读取数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道在Linux中它就像/ dev / sda一样简单,但是在Windows中如何打开磁盘并开始以较低级别读取数据?

I know in linux it is as simple as /dev/sda but in Windows how do you open a disk and start reading data at the low level?

在python我试过了:

In python I've tried:

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


打开物理硬盘要在基于Win32的
应用程序中进行
直接磁盘访问(原始I / O),请使用设备

$ b形式的
名称
$ b

\\.\PhysicalDriveN




其中N为0、1、2,依此类推,
代表系统中每个物理
驱动器。

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: 




其中X:是
硬盘驱动器分区字母,软盘
磁盘驱动器或CD-ROM驱动器。

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

这篇关于如何在Windows中打开磁盘并以低级别读取数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆