当前位置

首页 > IT科技 > liunx误删文件的恢复步骤

liunx误删文件的恢复步骤

推荐人: 来源: 秒知社 阅读: 5.64K 次

1、在终端窗口中输入命令 touch demo.txt创建一个演示文稿。

liunx误删文件的恢复步骤

2、执行命令rm -rf demo.txt 删除该文件。

liunx误删文件的恢复步骤 第2张

3、执行 debugfs命令。

liunx误删文件的恢复步骤 第3张

4、执行命令 dd if=/dev/mapper/vg_root-lv_root of=/home/demo.txt bs=640 count=1 skip=1089 来恢复文件。

liunx误删文件的恢复步骤 第4张