前提先新增一块硬盘并创建ext4文件系统:fdisk /dev/sdb----->mkfs.ext4
[root@192 ~]# tar -jxf extundelete-0.2.4.tar.bz2
[root@192 ~]# cd extundelete-0.2.4/
[root@192 extundelete-0.2.4]# yum -y install e2fsprogs-devel
[root@192 extundelete-0.2.4]# ./configure
[root@192 extundelete-0.2.4]# make && make install
[root@192 extundelete-0.2.4]# umount /sdb/
[root@192 extundelete-0.2.4]# mkdir test && cd test
[root@192 extundelete-0.2.4]# extundelete /dev/sdb1 --inode 2
[root@192 extundelete-0.2.4]# extundelete /dev/sdb1 --restore-file passwd