前提先新增一块硬盘并创建ext4文件系统:fdisk /dev/sdb----->mkfs.ext4
[[email protected] ~]# tar -jxf extundelete-0.2.4.tar.bz2
[[email protected] ~]# cd extundelete-0.2.4/
[[email protected] extundelete-0.2.4]# yum -y install e2fsprogs-devel
[[email protected] extundelete-0.2.4]# ./configure
[[email protected] extundelete-0.2.4]# make && make install
[[email protected] extundelete-0.2.4]# umount /sdb/
[[email protected] extundelete-0.2.4]# mkdir test && cd test
[[email protected] extundelete-0.2.4]# extundelete /dev/sdb1 --inode 2
[[email protected] extundelete-0.2.4]# extundelete /dev/sdb1 --restore-file passwd
原文地址:https://blog.51cto.com/popli3/2388552
时间: 2024-10-29 02:47:46