Photorec ile Veri Kurtarma

I – Qnap’tan Yanlışlıkla Silinen Veriyi Photorec İle Nasıl Kurtarabilirsiniz?

II – “photorec_static ermission denied” Hatası Alıyorsanız Bunu Nasıl Düzeltebilirsiniz?

.

I – Qnap’tan Yanlışlıkla Silinen Veriyi Photorec İle Nasıl Kurtarabilirsiniz?

Dosya kurtarma konusunda aşağıdaki link’i görmüş olabilirsiniz, fakat neyazıkki bu dökümanı takip ettiğinizde Kullanıcı hakları problemi yüzünden işlemler yapılamıyor. Dökümanın düzeltilmiş ve basite indirgenmiş halini tekrar yazıyorum.

.

1 – Öncelikle verilerinizi kurtarmak için yeterli kapasitede Harici bir diske ihtiyacınız var. Bu diski Qnap’ın USB portlarından birisine -benim tavsiyem USB 3.0 destekleyen portuna- takın ve Qnap’ın external drives kısmında bu diski gördüğüne emin olun.

Qnap-NAS-1

.

2 – Aşağıdaki link’ten Qnap’ınıza uygun olan testdik programını indirin;

(örneğin “Linux, kernel 2.6.x i386/x86_64) http://www.cgsecurity.org/wiki/TestDisk_Download

photorec download

.

3 – İndirdiğiniz bu dosyayı direk Qnap’ın içerisinde Public klasörüne çıkartın.

unzip file qnap public folder

.

4 – Putty programını indirin ve Qnap’a admin olarak login olun. aşağıdaki mavi renkli satırı yazın (satırı kopyala dedikten sonra putty’e sağ tıklayarak otomatik olarak yapıştırabilirsiniz

# cd /share/Public

ls yazarak dosylarınızın orada olduğuna emin olun.

putty testdisk login

.

5 – Klasör haklarını tam yetkiye çekmek için aşağıdaki komutu girin;

chmod 777 *

chmod 777

 

.

6 – Programı çalıştırmak için aşağıdaki komutu girin;

# /share/Public/photorec_static

Bütün bu komut satırlarını sonunda aşağıdaki gibi sonuç elde etmeniz gerekiyor;

execute photorec

.

7 -Eğer Photorec size log kaydı tutup tutmak istemediğinizi sorarsa buna evet deyin.

Disk /dev/md0 satırı sizin RAID yapısındaki HDD’iniz. buraya gelip ok tuşlarıyla Proceed’e gelin ve enter’a basın.

Image

8 – Size Partition’ınızın tipi sorulduğunda “None’ı işaretleyerek sonraki adıma geçin.

Image

9 – bu adımda eğer dahaönceki yapınız ext4′ü seçin, SAKIN ENTER’A BASMAYIN DAHA.

Image

10 – Ok tuşlarını kullanarak sağ alt taraftaki “File Opt”‘a gelin ve hangi dosya türlerini kurtarmak istiyorsanız bunları x işareti ile seçin. eğer S harfine basarsanız hepsini toplu iptal edebilir veya toplu seçebilirsiniz; (belirli dosyları kurtar demek çok ciddi zaman kazandıyor. Bizzat denedim.)

Image

11 – Sonraki adımda ext2/ext3/ext4 ‘ü seçin ve devam edin. (Bu bizim harici diskimizin yolu olacak)

Image

12 – ve en önemli adım. Eğer Qnap’ı tamamen sıfırdan kurdysanız “Whole”‘u,

eğer yanlışlıkla silinen dosyalarınızı geri getirmeye çalışıyorsanız “Free”‘yi işaretleyin. Whole dediğinizde tarama zamanı 320 saate kadar çıkabilirken, free’de ise sadece 8 saat kadar sürebiliyor.

Image

13 – Bu noktada dikkatli olun, çünkü size nereye kaydetmek istediğinizi soracak. yukarı ok tuşuna basın ve /share/ klasörüne düşün. dahasonra /share/external/ diske yine ok tuşları ile gelin  ve “Y” tuşuna basarak işlemi başlatın.

Image

son olarak neyazıkki bu yöntem gerçek klasörlerinde getirmiyor dosyaları ama öenmli / kritik dosylarınızı bu şekilde geri getirebilirsiniz. yukarıda örneği yazan arkadaş 66.000 dosya kurtarmayı başarmış bu yöntemle.

Eğer herhangi bir noktada takılırsanız Qnap Teknik destekten benimle temasa geçin -tabiki bu noktada benden başka kimse yardım edemeyecektir- herhangi bir ücret talep etmeden size yardımcı olurum.

.

II – “photorec_static ermission denied” Hatası Alıyorsanız Bunu Nasıl Düzeltebilirsiniz?

Yetkilendirme Hatasını Aşağıdaki Yöntemle de Çözebilirsiniz;

1 – Winscp ile Qnap’a Bağlanın;

photorec access deny

.

2 –  “photorec static” dosyasına sağ tıklayın ve özelliklerine girin

photorec access deny 2

.

3 – varolan 0666 yetkilerini 0777′ye çekin. Artık girebiliyor olmanız gerekiyor;

photorec access deny 3

 

VN:F [1.9.22_1171]
Rating: 8.8/10 (4 votes cast)
VN:F [1.9.22_1171]
Rating: +1 (from 1 vote)
Photorec ile Veri KurtarmaData Recovery with Photorec, 8.8 out of 10 based on 4 ratings

18 Responses to Photorec ile Veri Kurtarma

  1. ozgur says:

    hi, i want to try this method

    I think I deleted my files or have trouble making raid5

    Could you help me?

  2. burado51 says:

    Hi,

    In Turkey our company doesnt allow us to help this kind of recovery process, so If you are not good at Linux commands I advice you to use R-Stuio.

    Its really easy to use and you can easly find lots of document with a little google search!

  3. Sergey says:

    Thank you very much, it really helped!
    Ran it on TS-869 Pro with 8 x 3Tb in RAID 6 – worked perfectly, but took almost 3 days.

  4. Kiko says:

    First of all excuse my english :)
    Thanx for this guide, i followed step by step and i recovered folders and files deleted by error.
    I just wanted to make a aportacion: in step three, when I execute photorec or testdisk, i get a permission denied message, so you will need to chmod the testdisk folder before execute it.

  5. burado51 says:

    Dear Kiko;

    Your definetly right, so I fix this document once again.

  6. Mike says:

    I tried to run photorec on my QNAP TS212P but got this error: cannot execute binary file

    Do I need to use this version instead of the x86_64 version (from the TestDisk/PhotoRec downloads page):
    Marvell 88F628x Linux 2.6.32 Synology DS111, DS211, DS212+ NAS, Seagate BlackArmor NAS 220, QNAP ARM based including TS-410

  7. burado51 says:

    Hey;

    +Before trying to recovery, can you check if your files still in your NAS or not?
    http://qnapsupport.net/?page_id=440

    +For photorec, try to install “Linux, kernel 2.6.x i386 version and it should work!”

    +Also no need to panic; you can easly restore datas with recovery softwares on 1 or 2 HDD models. If you have RAID 1 or single HDD, just plugin HDD to a PC and follow my “I Accidently Delete a file, so is there a Chance to Recover Datas?” R-Studio Recovery document;
    http://qnapsupport.net/?page_id=318

    +If you have RAID 0, you should plug both HDD’s on PC.
    http://qnapsupport.net/?page_id=596

    Ps: Plug out HDD when Qnap power is off, and before power on your NAS again, plugin back HDDs back again to the same slots;

  8. Pingback: how to recover deleted photos from android - android firmware download | android firmware download

  9. ylsf says:

    Hi, do you have a way to submit questions? I had typed up a comment/question earlier here but I think it got lost or didn’t submit correctly. I typed up my question on the QNAP forums but I haven’t gotten any response.

    http://forum.qnap.com/viewtopic.php?f=25&t=119724

    I am trying to figure out what has happened to my drive and the best way to recover it. I am running Test Disk partition recovery on it now to see what it finds. It does show some partitions on it but only the “qnap” files show in the first partition so that is why I am running a deep analysis but it will probably take until the end of the weekend to finish..

  10. Kyle says:

    Hi, will this process overwrite the contents of my external drive?

  11. Twas says:

    So I went through everything you mentioned here and read all the comments. Nothing worked. I even tried installing all of this into the sbin folder. I tried the 64 bit, and the NAS one for Synology and Qnap. Still nothing. The file would not execute. Then I tried the 32 bit version because I have the same exact Qnap TS-695 Pro. Picked it up on Ebay.
    The 32 bit version of this app worked perfect, just perfect.
    There is more to this story. Recovering 3 gig takes 20 days on a slow system and 10 days on a kick ass I7. The issue is who wants to leave their computer running for 20 days straight? Well guess what? The Qnap mentioned above has a VGA port and it displays console/terminal ssh. So all you have to do is plug in a USB keyboard, connect the VGA port to a monitor, and do all this from the Qnap device. That way you don’t sacrifice 20 days of your PC/server to recover the files. Let the NAS device do it for you. When you disconnect the VGA monitor and keyboard the NAS continues extracting. When you reconnect and touch any button but the Enter key, it refreshes and your session is still running. Nothing shy of awesome in my book. I spent four days trying to figure out how not to tie up my PC’s to accomplish this.

    • Joe Haynes says:

      20 Days for 3GB , wow thats a long time

      I had unintentionally sent around 600GB to the Qnap Recycle bin and for some weird reason the NAS screwed my Data , so to recover this data , based on what your saying (in theory) I would have to let in run for 4000 Days or 10 Years to recover it all

      Shall I post back in 10 years to tell you how I get on ?

    • Mr J R Haynes says:

      So my deleted 600GB would take 10 years in theory ?

  12. Julien Geneyne says:

    Hello,

    does photorec work on a QNAP based on ARM ?

    Thanks for your reply.
    Julien

  13. David Hall says:

    For anyone who needs to recover files on an ARM based Qnap (TS212 for example), download the “Marvell 88F628x Linux 2.6.32″ version from the Testdisk page.

    After you have copied the folder to the QNAP and carried out the chmod function you will probably encounter an error like “Terminfo file is missing” when trying to run photorec.

    If you run these two commands and try running photorec after, it should work…

    export TERM=linux
    export TERMINFO_DIRS=./

    ./photorec

    Hope this helps!

  14. Murat TURAN says:

    Sürekli olarak bu hatayı alıyorum. Linx sistemlere ve Putty kullanımına yabancı değilim..

    -sh: /share/Public/photorec_static: cannot execute binary file
    [/share/Public] #

  15. Chipong Wong says:

    Hi. I get stuck at [Run PhotoRec (photorec_static) in the shell by issuing a ./photorec_static command] with an error of cannot execute binary file. Can you give a hint?

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>