Ubuntu 恢复 ext4 误删除文件

凌晨的时候,小手一抖,格式化了一块历史备份磁盘,那就恢复一些重要数据吧:

aptitude install extundelete

#恢复/dev/sdc1中所有数据
extundelete /dev/sdc1 --restore-all 

#恢复/dev/sdc2中的归档目录
extundelete /dev/sdc2 --restore-directory /archive

#恢复/dev/sdc2中的密码文件
extundelete /dev/sdc2 --restore-files /oral/passwd
none
最后修改于:2022年04月24日 10:19

添加新评论