Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linux误删文件恢复 #3

Open
clms2 opened this issue Jun 13, 2018 · 0 comments
Open

linux误删文件恢复 #3

clms2 opened this issue Jun 13, 2018 · 0 comments

Comments

@clms2
Copy link
Owner

clms2 commented Jun 13, 2018

  1. 需先确保磁盘不再有过多的读写,新的写入会把之前删除的节点覆盖掉,文件就没法恢复了
  2. 使用extundelete

简要说明:

  1. 首先执行 df 被删的目录 , 找到被删文件所在的磁盘,如:/dev/vdb1
  2. debugfs => open /dev/vdb1 => ls -d => 显示的内容中找到删除的文件夹,后面会包含一个<>包裹的信息,即是inode节点
  3. 然后可以--restore-inode指定节点或者extundelete /dev/vdb1 --restore-all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant