我知道在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起
原文链接:https://www.f2er.com/windows/371845.htmlTo 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.