1. 程式人生 > >extundelete恢復ext4的文件

extundelete恢復ext4的文件

dev store spro mkfs 創建 mkfs.ext4 inode node test

前提先新增一塊硬盤並創建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

extundelete恢復ext4的文件