使用 C C++ 删除文件恢复程序 [英] Deleted file recovery program using C C++

查看:19
本文介绍了使用 C C++ 删除文件恢复程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想编写一个可以从硬盘驱动器(FAT32/NTFS 分区 Windows)恢复已删除文件的程序.我不知道从哪里开始.这应该是什么出发点?我应该读什么来追求这个?需要帮助.我应该学习哪些系统级结构?

I want to write a program that can recover deleted files from hard drive ( FAT32/NTFS partition Windows). I don't know where to start from. What should be the starting point of this? What should i read to pursue this? Help is required. Which system level structs should i study?

推荐答案

这完全是文件系统布局、文件"在磁盘上的实际外观以及删除文件后剩下的内容的问题.因此,几乎所有您需要了解的是文件系统规范(对于您想要支持的每个文件系统),以及如何获得对 HD 数据的直接块级访问.可能可以重用现有文件系统驱动程序中的一些代码,但需要对其进行修改以处理从文件系统的角度来看已经不复存在的结构.

It's entirely a matter of the filesystem layout, how a "file" actually looks on disk, and what remains when a file is deleted. As such, pretty much all you need to understand is the filesystem spec (for each and every filesystem you want to support), and how to get direct block-level access to the HD data. It might be possible to reuse some code from existing filesystem drivers, but it will need to be modified to process structures that, from the point of view of the filesystem, are gone.

这篇关于使用 C C++ 删除文件恢复程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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