在Ubuntu上运行extundelete时出现分段错误-怎么办? https://mlog.club/article/3397916
问题是:现在版本的编译工具,无法编译这个 app 了。
需要会退,麻烦。新版 os 直接从官方库里安装,出现段错误,无法运行,
或装一个旧版本的 os,哪个版本才合适呢?
apt-get remove extundelete
apt-get install build-essentials e2fslibs-dev
tar -xjf extundelete-VERSION.tar.bz2
cd extundelete
./configure
make
src/extundelete --restore-all image.raw
Linux下面误删除文件使用extundelete工具恢复介绍 (**)
https://www.cnblogs.com/bob-yanlibo/p/8412503.html
操作系统版本:CentOS release 6.4 (Final) 软件版本:extundelete-0.2.4.tar.bz2
PS:该软件恢复文件系统仅支持ext2/ext3/ext4
1.使用rz命令上传extundelete-0.2.4.tar.bz2到/tmp文件夹下并解压软件。
1 |
|
2.进入到extundelete解压的目录下面,执行编译安装。
1 2 3 4 5 6 7 8 9 10 11 |
|
1 2 3 4 5 6 |
|
3.新添加一块硬盘/dev/sdb1并划分区格式化挂载到/test,新建文件和目录如下。
[root@localhost /]# tree test
test
├── 1.txt
├── a
│ ├── a.txt
│ └── b
│ ├── a.txt
│ └── c
│ ├── a.txt
│ └── d
├── a.txt
├── hosts
├── kong.txt
├── lost+found
└── passwd
5 directories, 8 files
4.进入到挂载目录/test,然后删除挂载点里面的文件并卸载磁盘。
[root@localhost /]# rm -rf a a.txt 1.txt hosts kong.txt passwd
[root@localhost /]# ls /test
lost+found
[root@localhost /]# umount /test
5.使用extundelete查看/dev/sdb1目录和文件的inode号。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
|
6.使用extundelete命令进行文件和目录的恢复。
(1)通过inode号恢复(文件名会有变更);
1 2 3 4 5 6 7 8 9 10 11 |
|
(2)通过文件名恢复;
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
|
(3)通过目录名称恢复(空目录是不会被恢复的);
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
|
(4)恢复所有文件和目录,不包括空文件和空目录;
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
|
Stay hungry, stay foolish!!!