Linux testdisk源码编译

testdisk作为一个开源工具,主要提供三大工具进行数据的测试和恢复。

源码下载

github地址:https://github.com/cgsecurity/testdisk

下载地址:https://github.com/cgsecurity/testdisk.git

下载命令:git clone https://github.com/cgsecurity/testdisk.git

源码编译

查看安装配置说明文件:INSTALL

运行命令进行自动配置如下: 

[yubo.wang@localhost testdisk]$ mkdir config
[yubo.wang@localhost testdisk]$ autoreconf --install -W all -I config

configure.ac:13: installing 'config/config.guess'
configure.ac:13: installing 'config/config.sub'
configure.ac:17: installing 'config/install-sh'
configure.ac:17: installing 'config/missing'
src/Makefile.am:415: warning: <F: non-POSIX variable name
src/Makefile.am:434: warning: '%'-style pattern rules are a GNU make extension
src/Makefile.am: installing 'config/depcomp'
[yubo.wang@localhost testdisk]$ 

运行compile.sh脚本进行自动编译,打印如下:

[yubo.wang@localhost testdisk]$ ./compile.sh 
This script will try to compile e2fsprogs progsreiserfs ntfsprogs libraries
Try to compile TestDisk
make  all-recursive
make[1]: Entering directory `/home/yubo.wang/testdisk/testdisk'
Making all in icons
make[2]: Entering directory `/home/yubo.wang/testdisk/testdisk/icons'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/yubo.wang/testdisk/testdisk/icons'
Making all in man
make[2]: Entering directory `/home/yubo.wang/testdisk/testdisk/man'

编译出3个工具可执行文件:fidentify    photorec    testdisk

[yubo.wang@localhost testdisk]$ file src/fidentify
src/fidentify: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=2546ca7c6416a10873c829996eeb58704f7be9fe, not stripped
[yubo.wang@localhost testdisk]$ file src/testdisk
src/testdisk: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=4f528e24094ef626af73e52dae08c3fe6dc9d6a8, not stripped
[yubo.wang@localhost testdisk]$ file src/photorec
src/photorec: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=0280f9eba7fb89204714998c10ba3aa1b9396c16, not stripped

扩展:使用sudo yum install testdisk自动安装工具效果也是一样的。

 

TestDisk 是一款强大 的免费数据恢复软件。主要用于病毒或人为误操作(如不小心删除分区表)导致的分区丢失,帮助用户恢复丢失分区,或修复不能启动的磁盘。 支持 DOS, Win32, MacOSX 及 Linux 平台。 TestDisk支持以下功能: 修复分区表, 恢复已删除分区 用FAT32备份表恢复启动扇区 重建FAT12/FAT16/FAT32启动扇区 修复FAT表 重建NTFS启动扇区 用备份表恢复NTFS启动扇区 用MFT镜像表(MFT Mirror)修复MFT表 查找ext2/ext3/ext4备份的SuperBlock 从FAT,NTFS及ext2文件系统恢复删除文件 从已删除的FAT,NTFS及ext2/ext3/ext4分区复制文件. TestDisk拥有两种模式:新手模式和专家模式。对于那些对数据恢复技巧了解很少,甚至完全一无所知的人来说,Testdisk可用于收集非启 动分区的详细信息,后续再发送给专业数据恢复人员进一步分析。 对于那些对数据恢复较为熟悉的人员来说, Testdisk是一款现场非常容易操作的数据恢复工具。 TestDisk 可恢复以下文件系统的丢失分区: BeFS ( BeOS ) BSD disklabel ( FreeBSD/OpenBSD/NetBSD ) CramFS, 压缩文件系统 DOS/Windows FAT12, FAT16 和 FAT32 Windows exFAT HFS, HFS+ 和 HFSX (Hierarchical File System) JFS (IBM’s Journaled File System) Linux ext2, ext3 和ext4 Linux LUKS 加密分区 Linux RAID md 0.9/1.0/1.1/1.2 RAID 1: 镜像(Mirror) RAID 4: 带容错的条带阵列 RAID 5: 带分布式冗余信息的条带阵列 RAID 6: 带分布式双冗余信息的条带阵列 Linux Swap (版本1 和 2) LVM 和 LVM2, Linux逻辑卷管理器(Linux Logical Volume Manager) Mac partition map Novel NSS (Novell Storage Services) NTFS ( Windows NT/2000/XP/2003/Vista/2008 ) ReiserFS 3.5, 3.6 和 4 Sun Solaris i386 disklabel Unix文件系统-UFS and UFS2 (Sun/BSD/…) XFS, SGI’s Journaled File System
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值