#查看可恢复的文件
lsof |grep deleted

sudo apt-get install extundelete
# 卸载分区(以/dev/sda1为例)
sudo umount /dev/sda1

# 运行extundelete,恢复分区上所有被删除的文件
sudo extundelete /dev/sda1 --restore-all

# 如果要恢复特定文件,使用--restore-file或--restore-directory
sudo extundelete /dev/sda1 --restore-file my_deleted_file.txt