标签: hdd

在Vista Ultimate 64位上获取HDD(和非卷)序列号

我曾经在寻找获取硬盘序列号而不使用WMI,我找到了它.我在StackOverFlow.com上找到并发布的代码在32位Windows(XP和Vista)上运行良好.只有当我尝试在64位操作系统(特别是Vista Ultimate 64)上获取序列号时才会出现问题.代码一直返回String.Empty或Space.

任何人都知道如何解决这个问题?

编辑:

我使用了Dave Cluderay建议的工具,结果很有趣:

这是来自DiskId32的输出,在Windows XP SP2 32位上:

To get all details use "diskid32 /d"
Trying to read the drive IDs using physical access with admin rights
Drive 0 - Primary Controller -  - Master drive
Drive Model Number________________: [MAXTOR STM3160215AS]
Drive Serial Number_______________: [            6RA26XK3]
Drive Controller Revision Number__: [3.AAD]
Controller Buffer Size on Drive___: 2097152 bytes
Drive Type________________________: Fixed
Drive Size________________________: 160041885696 bytes

Trying to read the drive IDs using the SCSI back …
Run Code Online (Sandbox Code Playgroud)

hdd serial-number windows-vista

10
推荐指数
2
解决办法
2万
查看次数

NTFS/GPT Mount退出,退出代码为13

这是一个重复的帖子,因为我在askubuntu.com上没有得到任何帮助.

我有一个1TB外置硬盘,我最近格式化为NTFS.直到现在,我的Ubuntu 11.10罚款一直在增加.我没有做任何改变来影响我的操作系统或我的exhdd.

我得到的错误是:

Error mounting: mount exited with exit code 13: $MFTMirr does not match $MFT (record 0).
Failed to mount '/dev/sdb2': Input/output error
NTFS is either inconsistent, or there is a hardware fault, or it's a
SoftRAID/FakeRAID hardware. In the first case run chkdsk /f on Windows
then reboot into Windows twice. The usage of the /f parameter is very
important! If the device is a SoftRAID/FakeRAID then first activate
it and mount a different device under the …
Run Code Online (Sandbox Code Playgroud)

hdd mount ntfs external ubuntu-11.10

4
推荐指数
1
解决办法
7969
查看次数

使用DD递归写入特定文件

我有一个我要覆盖的硬盘驱动器,不是使用空字节,而是使用消息.

48 69 64 64 65 6e 20 ="隐藏"

到目前为止,这是我的命令:

echo "Hidden " > /myfile
dd if=/myfile of=/dev/sdb bs=1M
Run Code Online (Sandbox Code Playgroud)

注意:我也尝试过诸如count和conv之类的参数,但无济于事

现在,这很好.当我跑:

dd if=/dev/sdb | hexdump -C | less
Run Code Online (Sandbox Code Playgroud)

我可以看到写过的前几个字节,但其余的都没有改变.我想以递归方式将"隐藏"写入驱动器.

linux hdd computer-forensics dd drive

3
推荐指数
1
解决办法
2864
查看次数

逐行读取文件 - 对磁盘的影响?

我目前正在编写一个处理非常大(> 10GB)文件的python脚本.由于将整个文件加载到内存中不是一种选择,我现在正在逐行阅读和处理它:

for line in f:
....
Run Code Online (Sandbox Code Playgroud)

一旦脚本完成,它将经常运行,所以我开始考虑这种读取对我的磁盘寿命有什么影响.

脚本是否会逐行读取或者是否存在某种由OS驱动的缓冲?如果没有,我应该自己实现某种中间缓冲区吗?击中通常实际上有害的磁盘?我记得读过一些关于BitTorrent快速磨损磁盘的东西正是因为这种按位读/写而不是使用更大块的数据.

我在我的测试环境中同时使用HDD和SSD,因此两个系统的答案都很有趣.

python filesystems hdd operating-system solid-state-drive

3
推荐指数
1
解决办法
89
查看次数