您的位置:首页 > 其它

在ubuntu 上使用TestDisk数据恢复

2010-04-03 16:36 423 查看

转自:http://www.howtoforge.com/data_recovery_with_testdisk 官方文档:http://www.cgsecurity.org/wiki/TestDisk

需求:

单系统ubuntu,想装windows,结果误删除了ubuntu下的一个分区(windows安装的时候明明看了好几遍,还是误删了),安装前,确认下分区状况,发现分区不对,立即停止安装系统,进入ubuntu(ubuntu启动不起来,将前512字节dd回MBR,也可以通过grub>命令修复),安装testdisk

testdisk简介

testdisk是一款强大并且免费的数据恢复的软件,软件的主要功能是当人为的错误(意外的删除你的分区表),软件出现问题,或者中毒的情况下,帮助用户找回丢失的分区,或者是将一个不能启动的盘让其启动起来。在很多的操作系统上,都可以使用testdisk,包括Linux,MacOS,Windows,并支持许多的文件系统

1 下载 TestDisk

TestDisk 在大多数linux的发行版上都有相应的软件包, 例如: Debian/Ubuntu, Fedora, Mandriva, 等 (完整的系统列表都在 http://www.cgsecurity.org/wiki/TestDisk_Livecd). 在 Debian/Ubuntu 上你可以运行testdisk /list可以列出你现有的分区表:
testdisk根据菜单提示去选择:TestDisk 6.5, Data Recovery Utility, October 2006
Christophe GRENIER <grenier@cgsecurity.org> http://www.cgsecurity.org
TestDisk is free software, and
comes with ABSOLUTELY NO WARRANTY.

Select a media (use Arrow keys, then press Enter):
Disk /dev/sda - 32 GB / 29 GiB

[Proceed ] [ Quit ]

Note: Disk capacity must be correctly detected for a successful recovery.
If a disk listed above has incorrect size, check HD jumper settings, BIOS
detection, and install the latest OS patches and disk drivers.<-- Intel<-- Analyse<-- Proceedto continue. On the next screen TestDisk will show you the partitions it has found:<-- ENTER现在将我们找回来的新分区表写回硬盘,选择write<-- Write键入Y确定写入:<-- YTestDisk 告诉你需要重启系统以生效:<-- Ok选择quit推出<-- Quit选择quit退出testdisk<-- Quit现在我们可以关闭testdisk然后重启系统,如果我们的运气不是很差的话,在新的分区表生效的情况下,我们的数据就可以找回来了,

3 Links

TestDisk: http://www.cgsecurity.org/wiki/TestDisk
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  Data Recovery With