LSX-blog

Feed Rss

【原创】浅谈ext3下的数据恢复

05.29.2012, Linux, 系统, by .

       闲来无事,独身于网络闲逛,无暇之时偶于关于Linux文件系统删除文件的恢复文章,仔细研究,今天就把成果分享一下。

       ext2,ext3 文件格式相关知识

        ext3grep 软件一个    http://code.google.com/p/ext3grep/

       ext3grep 是Carlo Wood 这位牛人写的,背景在你他在2008年的一次误删除自己的系统home目录,造成超过3GB的数据丢失,并开始学习ext3文件系统,三个星期后,这位牛人用近5000行代码,成就了ext3grep这个程序,这也是下面我们要介绍这个工具的使用方法。

       这里就不介绍如何安装这个程序了,比较简单,默认安装就行

Debian GNU/Linux 6.0

LVM 多卷管理方式

       1、列出本机的文件系统

image

这里我们拿 /dev/mapper/debian-var 开刀

切换到 root@debian:~# cd /var/log/ 并删除目录所有文件

并新建一个test.txt文件随便写入点东西保存

image

然后删除这个目录下面的所有目录

image

已经没有文件了

详细操作可见作者文章

http://carlo17.home.xs4all.nl/howto/undelete_ext3.html

下面是我的操作部分,记住这个程序只能用于ext3文件系统,你在恢复的时候记得挂载成只读,因为我这里是在虚拟机上面操作,所以我不怕有问题,就直接不挂载只读模式了

root@debian:~# ext3grep /dev/mapper/debian-var –restore-all

一条命令搞定,这样会在当前目录产生三个

image

那个文件夹里面就是包含恢复后的文件

image

image

当然这个程序可不是简单的就这几个功能,这里我恢复的是所有的文件,我们这里还可以指写一个时间段,这样恢复起来更精确,还可以手动恢复单个单个的文件,更精确,这个软件值得去研究下,我研究了两三天,感觉收获还是很大的,起码可以了解Linux文件存储方面的知识。

【原创】浅谈ext3下的数据恢复 有 426 条回应

  1. Excellent weblog here! Also your site rather a lot
    up very fast! What host are you using? Can I get your associate hyperlink in your host?
    I want my web site loaded up as quickly as yours lol

    回复
  2. Hi, I do think this is a great blog. I stumbledupon it
    😉 I will revisit yet again since I book-marked it.
    Money and freedom is the greatest way to change, may you be rich and continue to help
    other people.

    回复
  3. These are genuinely great ideas in concerning blogging.
    You have touched some good points here. Any way keep up wrinting.

    回复
  4. You’ve made some good points there. I checked on the web
    for more information about the issue and found most individuals will go
    along with your views on this web site.

    回复
  5. Great article, just what I was looking for.

    回复
  6. This excellent website certainly has all the information I wanted about
    this subject and didn’t know who to ask.

    回复
  7. Hurrah! Finally I got a webpage from where I know how to actually obtain helpful
    information concerning my study and knowledge.

    回复
  8. Hello There. I discovered your blog the usage of msn. That is a really neatly written article.
    I will make sure to bookmark it and come back to learn extra of your helpful information. Thanks for the post.
    I’ll definitely comeback.

    回复
  9. Thanks for sharing your thoughts about ext2.

    Regards

    回复
  10. Simply want to say your article is as amazing.
    The clarity in your post is simply cool and i could assume you’re an expert on this
    subject. Well with your permission allow me to grab your feed to
    keep up to date with forthcoming post. Thanks a million and
    please carry on the enjoyable work.

    回复
  11. Hey I am so happy I found your weblog, I really found you by accident,
    while I was browsing on Digg for something else, Anyhow I
    am here now and would just like to say thanks for a remarkable post and
    a all round interesting blog (I also love the theme/design), I don’t have time to look over it
    all at the moment but I have book-marked it and also added your RSS
    feeds, so when I have time I will be back to read a lot more, Please do keep up the excellent work.

    回复
  12. Amazing! Its actually remarkable paragraph, I have got much clear
    idea on the topic of from this article.

    回复
  13. You can definitely see your enthusiasm in the work you write.

    The world hopes for more passionate writers like you who aren’t afraid to say how they believe.
    Always follow your heart.

    回复
  14. You actually make it appear really easy with your presentation but I in finding this matter to be really something
    which I believe I would never understand. It kind of feels too complex and extremely vast for me.

    I am having a look ahead for your subsequent submit, I’ll try
    to get the cling of it!

    回复
  15. Hello There. I discovered your weblog the use of msn. That is a very
    well written article. I will be sure to bookmark it
    and come back to read extra of your helpful info. Thank you for
    the post. I’ll certainly return.

    回复
  16. I am really loving the theme/design of your web site. Do you ever run into any web browser compatibility issues?
    A handful of my blog readers have complained about my blog not operating correctly in Explorer
    but looks great in Safari. Do you have any ideas to help fix this problem?

    回复
  17. If you are going for best contents like I do, just pay a quick visit this web site every day
    because it offers quality contents, thanks

    回复
  18. is canada online at

    回复
  19. is versand ohne rezept

    4a82 is tablete 20 mg

    回复
  20. is acheter belgiqu

    4a82 is 5mg con ricetta

    回复
  21. best sites be is online

    回复
  22. google low price is

    回复
  23. link for you female is uk

    回复
  24. at is from china

    回复

发表评论

电子邮件地址不会被公开。 必填项已用*标注