Author Topic: เมื่อต้องการไฟล์ที่ลบไปแล้วจากระบบ command photorec ช่วยคุณได้  (Read 3430 times)

golfreeze

  • Administrator
  • Hero Member
  • *****
  • Posts: 2140
    • View Profile
    • นั่งสมาธิ สติปัฏฐานสี่ พาเที่ยววัด แนะนำวัด แจกcd ธรรมะฟรี
    • Email
เมื่อต้องการไฟล์ที่ลบไปแล้วจากระบบ command photorec ช่วยคุณได้

ในระบบ unix หรือ linux ปัจจุบันนี้ถ้าคุณต้องการไฟล์ที่เผลอลบ ไป ให้กลับมานั้น
จะมี tool ตัวหนึ่งที่แนะนำครับคือ

photorec ถ้าเป็นไฟล์พวก file web หรือ รูปภาพ jpg จะสามารถทำงานได้ดีเลย

#photorec /dev/sda3
คือเราต้องการ recovery file ที่อยู่ใน /dev/sda3 ทุกไฟล์ที่สามารถทำการ recovery ได้

มาดู 10 ขั้นตอน (step) Recover files based on filetype using PhotoRec

1.Install testdisk from the Ubuntu Software Center.
sudo apt-get install testdisk

2.Launch PhotoRec.
Open a terminal and launch photorec (as root).
sudo photorec

3.Select hard disk.
4.Select partition type.
If your hard disk has Linux partitions, then select [sda_ที่ต้องการ].

5.Select filetype option.
Move to [File Opt] and press Enter. Here you can disable all file types by pressing s. Use space to toggle the check button. Select filetype(s) to recover. For Perl you can select pl for Perl script or pm for Perl module.

6.Select options.
Photorec also has a list of different options. Under normal circumstances you don’t need to modify them.

7.Select partition.
Move the selector up or down to the partition from which you have removed the file(s). Then select [Search] and press Enter.

8.Select filesystem type.
If you are using Linux, it's going to be ext2/ext3/ext4, so the default selection is ext2/ext3. Otherwise if you are recovering files from a partition formatted as FAT or NTFS select Other.

9.Select space for analysis.
Select Free if you didn’t write to that partition after removing the particular file, otherwise select Whole.

10.Select a directory for the recovered files
Select the path where the recovered files will be stored. Then press Y.
Photorec will show how many files it has recovered.

ลองดูเพิ่มเติมได้ที่
https://www.tecmint.com/photorec-recover-deleted-lost-files-in-linux/
« Last Edit: สิงหาคม 05, 2017, 10:31:30 PM by golfreeze »