cgsecurity / testdisk

TestDisk & PhotoRec
https://www.cgsecurity.org/
GNU General Public License v2.0
1.69k stars 205 forks source link

TestDisk closed unexpectedly during log-out #128

Closed Bushido1 closed 1 year ago

Bushido1 commented 1 year ago

I use Ubuntu 22.04.1 LTS 64-bit and GNOME Terminal Version 3.44.0 for GNOME 42. I left the deep scan on. Ubuntu logged out automatically. After log-in, terminal was closed. I have attached the log. testdisk.log

cgsecurity commented 1 year ago

The log file contains read error messages. You should clone the disk to a new empty disk using ddrescue as explained in https://www.cgsecurity.org/testdisk.pdf

Bushido1 commented 1 year ago

What to do if I do not have a new empty disk?

Parimat soovides Best Regards,


From: Christophe GRENIER @.> Sent: Monday, January 2, 2023 7:52:59 PM To: cgsecurity/testdisk @.> Cc: Bushido1 @.>; Author @.> Subject: Re: [cgsecurity/testdisk] TestDisk closed unexpectedly during log-out (Issue #128)

The log file contains read error messages. You should clone the disk to a new empty disk using ddrescue as explained in https://www.cgsecurity.org/testdisk.pdf

— Reply to this email directly, view it on GitHubhttps://github.com/cgsecurity/testdisk/issues/128#issuecomment-1369118893, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACXBRQNLWBUBY3E3EGW4PILWQMIXXANCNFSM6AAAAAATO5MWAI. You are receiving this because you authored the thread.Message ID: @.***>

cgsecurity commented 1 year ago

You really need another disk as the current disk contains bad sector, a physical problem that can not be fixed. In the meantime, you can always use TestDisk to try to copy the files you want (TestDisk, Advanced, List...)

Bushido1 commented 1 year ago

By copying and cloning you mean I cannot recover the deleted files? I can just back-up the undeleted files? Best Regards, Olav

On T, jaan 3 2023 at 02:13:26 -0800, Christophe GRENIER @.***> wrote:

You really need another disk as the current disk contains bad sector, a physical problem that can not be fixed. In the meantime, you can always use TestDisk to try to copy the files you want (TestDisk, Advanced, List...)

— Reply to this email directly, view it on GitHub https://github.com/cgsecurity/testdisk/issues/128#issuecomment-1369592571, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACXBRQJJF2SXE3JJIN4R6STWQP3UNANCNFSM6AAAAAATO5MWAI. You are receiving this because you authored the thread.Message ID: @.***>

Bushido1 commented 1 year ago

You really need another disk as the current disk contains bad sector, a physical problem that can not be fixed. In the meantime, you can always use TestDisk to try to copy the files you want (TestDisk, Advanced, List...)

How long I can use a disk containing bad sector(s)? After a laptop fall Windows did not start normally and I installed Ubuntu instead and the latter is working fine regarding disk.

cgsecurity commented 1 year ago

Cloning will copy both deleted and non-deleted data. So if there are few bad sectors, you should be able to recover both deleted and non-deleted files. A bad sector can not be corrected. Reinstalling or changing OS will at best hide the problem for a moment.

Bushido1 commented 1 year ago

Does cloning copies the bad sector to the healthy disk?

On T, jaan 17 2023 at 22:30:05 -0800, Christophe GRENIER @.***> wrote:

Cloning will copy both deleted and non-deleted data. So if there are few bad sectors, you should be able to recover both deleted and non-deleted files. A bad sector can not be corrected. Reinstalling or changing OS will at best hide the problem for a moment.

— Reply to this email directly, view it on GitHub https://github.com/cgsecurity/testdisk/issues/128#issuecomment-1386555828, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACXBRQNIRPT4TRVNO2NYFQ3WS6EW3ANCNFSM6AAAAAATO5MWAI. You are receiving this because you authored the thread.Message ID: @.***>

cgsecurity commented 1 year ago

By definition, bad sectors are sectors that failed to be read. So a bad sector can not be copied. When cloning a disk to a healthy disk, the destination disk will remain healthy. There is no way to recreate the missing content (content that was stored in the sector that now failed to be read), so if the file that was using this sector is "recovered", it will be damaged/corrupted.