Flashdrive损坏的文件系统上的文本文件恢复

编程入门 行业动态 更新时间:2024-10-17 23:22:15
本文介绍了Flashdrive损坏的文件系统上的文本文件恢复的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我能够读取USB驱动器损坏的文件系统的原始数据。有没有简单的方法让我通过使用这些十六进制值来恢复文本和docx文件? (编程语言:C ++)

I am able to read raw data of the corrupted file system of USB drive. Is there any simple way for me to recover only text and docx files by using these Hexadecimal value? (Programming Language: C++)

推荐答案

不是真的 - 这是一个复杂的过程,我唯一一次做过它是在软盘时代 - 而且它在FAT死亡后,每兆字节需要大约一个小时才能恢复。闪存驱动器的问题更严重,因为它们不会覆盖使用过的块 - 而是写入一个新块并在内部放置一个可删除列表的旧块(因为它们磨损的越多,你写入它们) - 所以你结束了多个块看起来非常非常相似,因此您必须确切地确定每个块所需的版本。如果你很幸运,你可以从向后开始工作,直到闪光灯满了,早期的积木不能回收。 我想做什么从 Recuva [ ^ ] - 我过去曾经有过一些很好的成功,它是免费的! Not really - it's a complicated process, and the only time I've ever done it was in the floppy disk days - and it took about an hour per megabyte to restore after the FAT died. The problem is worse with flash drives, because they don't overwrite used blocks - instead they write to a new block and put the old one of a deletable list internally (because they wear out the more you write to them) - so you end up with multiple blocks that look very, very similar, so you have to work out exactly which version is the one you need for each block. If you are lucky, you can get away with working from the "end backwards" as until the flash is full the early blocks aren't recycled. What I would do is start with solthing like Recuva[^] - I've had some good sucess with it in the past, and it's free!

另一个解决方案有点复杂但功能是,用MS-DOS或FREEDOS创建一个虚拟机,将你的磁盘作为模拟的本地硬盘附加。 那么你可以使用DOS的任何恢复/修复工具: - ) Another solution a little bit complicate, but functional, is to create a virtual machine with MS-DOS or FREEDOS, attach your disk as an emulated local hard disk. Then you can use any restore/repair tool for DOS :-)

首先,您需要解析文件系统(我假设它是标签中的fat32)。实际上你需要解析文件分配表(如果它已经损坏并且在你的驱动器上启用了FAT的镜像副本,那么你可以尝试使用它。) First of all you will need to parse the file system (i assume it's fat32 from the tags). In fact you will need to parse File Allocation Table (if it's corrupted and mirror copy of FAT was enabled on your drive, then you can try with it).

更多推荐

Flashdrive损坏的文件系统上的文本文件恢复

本文发布于:2023-06-06 01:39:09,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/531173.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文件系统   文本文件   Flashdrive

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!