LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1218|回复: 7

用rm删除的文件还能恢复么?

[复制链接]
发表于 2005-10-25 11:40:03 | 显示全部楼层 |阅读模式
今天不小心用rm删除了一个文件,有办法把他恢复么?
发表于 2005-10-25 12:34:32 | 显示全部楼层
听说debugfs可以
回复 支持 反对

使用道具 举报

发表于 2005-10-27 20:14:46 | 显示全部楼层
Post by hulifox007
今天不小心用rm删除了一个文件,有办法把他恢复么?

到精华区搜索一下,有一个解决方案可供参考。
回复 支持 反对

使用道具 举报

发表于 2005-10-28 00:10:49 | 显示全部楼层
debugfs在ext2中测试成功,
但是ext3文件系统中,执行lsdel未发现任何 可以恢复的inode



何故??????????????
回复 支持 反对

使用道具 举报

发表于 2005-10-28 17:06:33 | 显示全部楼层
期待。。。。。。。。。
回复 支持 反对

使用道具 举报

发表于 2005-10-28 22:12:47 | 显示全部楼层
没有人 知道,请知道的 给个地址 看看,或者说说,谢谢
回复 支持 反对

使用道具 举报

发表于 2005-11-1 17:42:59 | 显示全部楼层
我恢复过,记不清了
回复 支持 反对

使用道具 举报

发表于 2005-11-2 16:41:03 | 显示全部楼层

小结

ext2 可以恢复,ext3 不可以恢复,
因为ext2是 把inode标记为deleted,在未重新分配前 还是可以找回来的。而ext3是 把删除文件的inode数据清零。


How can I recover (undelete) deleted files from my ext3 partition?
Actually, you can't! This is what one of the developers, Andreas Dilger, said about it:
In order to ensure that ext3 can safely resume an unlink after a crash, it actually zeros out the block pointers in the inode, whereas
ext2 just marks these blocks as unused in the block bitmaps and marks the inode as "deleted" and leaves the block pointers alone.

Your only hope is to "grep" for parts of your files that have been deleted and hope for the best.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表