Linux删除文件之后恢复(ext3grep)

某天,不小心误删了 $HOME 路径下的数据。

网上找到了ext3grep尝试恢复;

安装

1
2
sudo pacman -S ext3grep

查看版本

1
ext3grep -v

输出下面信息

1
2
3
4
5
Running ext3grep version 0.10.2
ext3grep v0.10.2, Copyright (C) 2008 Carlo Wood.
ext3grep comes with ABSOLUTELY NO WARRANTY;
This program is free software; your freedom to use, change
and distribute this program is protected by the GPL.

查看命令

1
ext3grep --help 

查询要恢复文件的 inode 号

1
ext3grep /dev/sda5 --ls --inode 10092546

查询最大 inode

1
ls -id

失败

本文地址: https://github.com/maxzhao-it/blog/post/23026/