楼主:
raynoz (Rayoz)
2022-07-05 14:32:04最近再搞DKIM搞到头昏脑胀
所以一个不注意直接下了rm -rf /etc/postfix
本来是要删掉/etc/opendkim...
问题来了 上网找了很多档案复原
1.lsof 没有程式正在使用/etc/postfix下的档案 所以此方法失败
2.使用extundelete 出现错误Segmentation fault (core dumped)
爬文后不少人说extundelete utility has fallen out of maintenance and that it requires a
version of e2fsprogs that is too old for up to day system. 此方法失败again
3.爬文时有人推荐使用testdisk
其中有一步骤可以选择指定副档名..但我找不到只扫描目录的选项 似乎只能找档案类型
所以目前放著给他跑 预计要跑4小时 目前也只能指望这方法
因为不确定testdisk是否work
想问是否有大大可以指引其他解决方法