国产一级a片免费看高清,亚洲熟女中文字幕在线视频,黄三级高清在线播放,免费黄色视频在线看

打開APP
userphoto
未登錄

開通VIP,暢享免費(fèi)電子書等14項(xiàng)超值服

開通VIP
最新分享
在ubuntu 上使用TestDisk數(shù)據(jù)恢復(fù)

轉(zhuǎn)自:http://www.360doc.com/   官方文檔:http://www.360doc.com/

需求:

單系統(tǒng)ubuntu,想裝windows,結(jié)果誤刪除了ubuntu下的一個(gè)分區(qū)(windows安裝的時(shí)候明明看了好幾遍,還是誤刪了),安裝前,確認(rèn)下分區(qū)狀況,發(fā)現(xiàn)分區(qū)不對(duì),立即停止安裝系統(tǒng),進(jìn)入ubuntu(ubuntu啟動(dòng)不起來,將前512字節(jié)dd回MBR,也可以通過grub>命令修復(fù)),安裝testdisk


testdisk簡(jiǎn)介

testdisk是一款強(qiáng)大并且免費(fèi)的數(shù)據(jù)恢復(fù)的軟件,軟件的主要功能是當(dāng)人為的錯(cuò)誤(意外的刪除你的分區(qū)表),軟件出現(xiàn)問題,或者中毒的情況下,幫助用戶找回丟失的分區(qū),或者是將一個(gè)不能啟動(dòng)的盤讓其啟動(dòng)起來。在很多的操作系統(tǒng)上,都可以使用testdisk,包括Linux,MacOS,Windows,并支持許多的文件系統(tǒng)

1 下載 TestDisk

TestDisk 在大多數(shù)linux的發(fā)行版上都有相應(yīng)的軟件包, 例如: Debian/Ubuntu, Fedora, Mandriva, 等 (完整的系統(tǒng)列表都在  http://www.360doc.com/). 在 Debian/Ubuntu 上你可以運(yùn)行
apt-get install testdisk
來安裝它

2 使用TestDisk

TestDisk 在ubuntu上可以用以下的命令運(yùn)行
testdisk /list
可以列出你現(xiàn)有的分區(qū)表:
server1:~# testdisk /list
TestDisk 6.5, Data Recovery Utility, October 2006
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
Please wait...
Disk /dev/sda - 32 GB / 29 GiB - CHS 3916 255 63, sector size=512

Disk /dev/sda - 32 GB / 29 GiB - CHS 3916 255 63
      Partition                   Start         End     Size in sectors
1 * Linux                     0    1   1   3869 254 63    62171487
2 E extended               3870    0   1   3915 254 63      738990
5 L Linux Swap             3870    1   1   3915 254 63      738927
現(xiàn)在假設(shè)你誤刪分區(qū)表,現(xiàn)在需要修復(fù),我們開始使用testdisk工具

testdisk
根據(jù)菜單提示去選擇:
TestDisk 6.5, Data Recovery Utility, October 2006
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org


TestDisk is a data recovery designed to help recover lost partitions
and/or make non-booting disks bootable again when these symptoms
are caused by faulty software, certain types of viruses or human error.
It can also be used to repair some filesystem errors.

Information gathered during TestDisk use can be recorded for later
review. If you choose to create the text file, testdisk.log , it
will contain TestDisk options, technical information and various
outputs; including any folder/file names TestDisk was used to find and
list onscreen.

Use arrow keys to select, then press Enter key:
[ Create ]   Create a new log file
[ Append ]   Append information to log file
[ No Log ]   Don't record anything
<-- Create
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.
<-- Proceed
TestDisk 6.5, Data Recovery Utility, October 2006
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org


Disk /dev/sda - 32 GB / 29 GiB

Please select the partition table type, press Enter when done.
[Intel   ]   Intel/PC partition
[Mac     ]   Apple partition map
[None    ]   Non partioned media
[Sun     ]   Sun Solaris partition
[XBox    ]   XBox partition
[Return ]   Return to disk selection






Note: Do NOT select 'None' for media with only a single partition. It's very
rare for a drive to be 'Non-partitioned'.
選擇你的分區(qū)表類型
<-- Intel
TestDisk 6.5, Data Recovery Utility, October 2006
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org


Disk /dev/sda - 32 GB / 29 GiB - CHS 3916 255 63

[ Analyse   ]   Analyse current partition structure and search for lost partitions
[ Advanced ]   Filesystem Utils
[ Geometry ]   Change disk geometry
[ Options   ]   Modify options
[ MBR Code ]   Write TestDisk MBR code to first sector
[ Delete    ]   Delete all data in the partition table
[ Quit      ]   Return to disk selection






Note: Correct disk geometry is required for a successful recovery. 'Analyse'
process may give some warnings if it thinks the logical geometry is mismatched.
<-- Analyse
TestDisk 6.5, Data Recovery Utility, October 2006
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org

Disk /dev/sda - 32 GB / 29 GiB - CHS 3916 255 63
Current partition structure:
      Partition                   Start         End     Size in sectors
No partition is bootable













*=Primary bootable   P=Primary   L=Logical   E=Extended   D=Deleted

[Proceed ]
                             Try to locate partition
As you see, no bootable partitions have been found. Select
<-- Proceed
to continue. On the next screen TestDisk will show you the partitions it has found:
TestDisk 6.5, Data Recovery Utility, October 2006
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org

Disk /dev/sda - 32 GB / 29 GiB - CHS 3916 255 63
      Partition                Start         End     Size in sectors
* Linux                     0    1   1   3869 254 63    62171487
L Linux Swap             3870    1   1   3915 254 63      738927











Structure: Ok.   Use Up/Down Arrow keys to select partition.
Use Left/Right Arrow keys to CHANGE partition characteristics:
*=Primary bootable   P=Primary   L=Logical   E=Extended   D=Deleted
Keys A: add partition, L: load backup, T: change type, P: list files,
      Enter: to continue
EXT3 Large file Sparse superblock Recover, 31 GB / 29 GiB
<-- ENTER
現(xiàn)在將我們找回來的新分區(qū)表寫回硬盤,選擇write
TestDisk 6.5, Data Recovery Utility, October 2006
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org

Disk /dev/sda - 32 GB / 29 GiB - CHS 3916 255 63

      Partition                   Start         End     Size in sectors
1 * Linux                     0    1   1   3869 254 63    62171487
2 E extended LBA           3870    0   1   3915 254 63      738990
5 L Linux Swap             3870    1   1   3915 254 63      738927













[   Quit   ]   [Search! ]   [ Write   ]
                        Write partition structure to disk
<-- Write
鍵入Y確定寫入:
TestDisk 6.5, Data Recovery Utility, October 2006
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org

Write partition table, confirm ? (Y/N)
<-- Y
TestDisk 告訴你需要重啟系統(tǒng)以生效:
TestDisk 6.5, Data Recovery Utility, October 2006
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org


You will have to reboot for the change to take effect.












[Ok]
<-- Ok
選擇quit推出
TestDisk 6.5, Data Recovery Utility, October 2006
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org


Disk /dev/sda - 32 GB / 29 GiB - CHS 3916 255 63

[ Analyse   ]   Analyse current partition structure and search for lost partitions
[ Advanced ]   Filesystem Utils
[ Geometry ]   Change disk geometry
[ Options   ]   Modify options
[ MBR Code ]   Write TestDisk MBR code to first sector
[ Delete    ]   Delete all data in the partition table
[ Quit      ]   Return to disk selection






Note: Correct disk geometry is required for a successful recovery. 'Analyse'
process may give some warnings if it thinks the logical geometry is mismatched.
<-- Quit
選擇quit退出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.

                                   Quit program
<-- Quit
現(xiàn)在我們可以關(guān)閉testdisk然后重啟系統(tǒng),如果我們的運(yùn)氣不是很差的話,在新的分區(qū)表生效的情況下,我們的數(shù)據(jù)就可以找回來了,
本站僅提供存儲(chǔ)服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊舉報(bào)。
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
用 testdisk 恢復(fù) Linux 上已刪除的文件
TestDisk & PhotoRec——兩個(gè)數(shù)據(jù)恢復(fù)軟件
TestDisk使用積累
誤Ghost分區(qū)丟失數(shù)據(jù)恢復(fù)故障還原
電腦數(shù)據(jù)回復(fù)常用技巧大全!
在 Windows Vista 電腦上增加磁盤分區(qū)空間 - 惠普網(wǎng)上貼心服務(wù) (中國 - ...
更多類似文章 >>
生活服務(wù)
分享 收藏 導(dǎo)長圖 關(guān)注 下載文章
綁定賬號(hào)成功
后續(xù)可登錄賬號(hào)暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服