Testdisk Partition Structure [Blank Result] - PCIe SSD 2TB Linux - read err: read after end of file

How to use TestDisk to recover lost partition
Forum rules
When asking for technical support:
- Search for posts on the same topic before posting a new question.
- Give clear, specific information in the title of your post.
- Include as many details as you can, MOST POSTS WILL GET ONLY ONE OR TWO ANSWERS.
- Post a follow up with a "Thank you" or "This worked!"
- When you learn something, use that knowledge to HELP ANOTHER USER LATER.
Before posting, please read https://www.cgsecurity.org/testdisk.pdf
Locked
Message
Author
RioLuna
Posts: 4
Joined: 23 Jun 2022, 07:37

Testdisk Partition Structure [Blank Result] - PCIe SSD 2TB Linux - read err: read after end of file

#1 Post by RioLuna »

Drive: PCIe SSD - 2TB
OS: Linux Mint
Event: Hard reboot required after system freeze. Unable to access drive following.

SmartLog shows no critical warnings
Overall Health Assessment: PASSED

Solution Attempted: Run Testdisk to recover system partitions

TestDisk currently does not show option to create test log. (starts with drive selection screen)
(therefore I cannot present entire log below)

Previous TestDisk test log was available and primarily contained the following repeated error types:

Code: Select all

read err: read after end of file
and no partitions were found after the 'Analyze' step. [Choosing either 'Intel' or 'EFI GPT' for partition table type]
no specific alerts in terminal

Please advise. Thank you.

Code: Select all

mint@mint:~$ sudo smartctl -x /dev/nvme0n1
smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.15.0-20-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Number:                       INTEL SSDPEKNW020T8
Serial Number:                      
Firmware Version:                   002C
PCI Vendor/Subsystem ID:            0x8086
IEEE OUI Identifier:                0x5cd2e4
Controller ID:                      1
Number of Namespaces:               1
Namespace 1 Size/Capacity:          2,048,408,248,320 [2.04 TB]
Namespace 1 Formatted LBA Size:     512
Local Time is:                      Fri Jun 17 23:18:22 2022 UTC
Firmware Updates (0x14):            2 Slots, no Reset required
Optional Admin Commands (0x0017):   Security Format Frmw_DL *Other*
Optional NVM Commands (0x005f):     Comp Wr_Unc DS_Mngmt Wr_Zero Sav/Sel_Feat *Other*
Maximum Data Transfer Size:         32 Pages
Warning  Comp. Temp. Threshold:     77 Celsius
Critical Comp. Temp. Threshold:     80 Celsius

Supported Power States
St Op     Max   Active     Idle   RL RT WL WT  Ent_Lat  Ex_Lat
 0 +     5.50W       -        -    0  0  0  0        0       0
 1 +     3.60W       -        -    1  1  1  1        0       0
 2 +     2.60W       -        -    2  2  2  2        0       0
 3 -   0.0300W       -        -    3  3  3  3     5000    5000
 4 -   0.0040W       -        -    4  4  4  4     5000    9000

Supported LBA Sizes (NSID 0x1)
Id Fmt  Data  Metadt  Rel_Perf
 0 +     512       0         0

=== START OF SMART DATA SECTION ===
[b]SMART overall-health self-assessment test result: PASSED[/b]

SMART/Health Information (NVMe Log 0x02, NSID 0x1)
Critical Warning:                   0x00
Temperature:                        28 Celsius
Available Spare:                    100%
Available Spare Threshold:          10%
Percentage Used:                    0%
Data Units Read:                    3,830,697 [1.96 TB]
Data Units Written:                 3,092,128 [1.58 TB]
Host Read Commands:                 127,751,101
Host Write Commands:                52,250,246
Controller Busy Time:               1,016
Power Cycles:                       157
Power On Hours:                     5,523
Unsafe Shutdowns:                   75
Media and Data Integrity Errors:    9,077
Error Information Log Entries:      9,077
Warning  Comp. Temperature Time:    0
Critical Comp. Temperature Time:    0

[b]Read Error Information Log failed: NVMe Status 0x02[/b]
recuperation
Posts: 3036
Joined: 04 Jan 2019, 09:48
Location: Hannover, Deutschland (Germany, Allemagne)

Re: Testdisk Partition Structure [Blank Result] - PCIe SSD 2TB Linux - read err: read after end of file

#2 Post by recuperation »

I can't see the "previous log file".

Code: Select all

mint@mint:~$ sudo smartctl -x /dev/nvme0n1

...
=== START OF SMART DATA SECTION ===
[b]SMART overall-health self-assessment test result: PASSED[/b]

SMART/Health Information (NVMe Log 0x02, NSID 0x1)
...
Power Cycles:                       157
Power On Hours:                     5,523
Unsafe Shutdowns:                   75
Media and Data Integrity Errors:    9,077
Error Information Log Entries:      9,077
...
[b]Read Error Information Log failed: NVMe Status 0x02[/b]
I don't consider your drive as healthy.
Either your way of cutting power to your drive ( 75 times) caused 9077 errors or an already broken drive made you cutting down power.
It may be that you never have shut down your drive in an ordinarily manner.

Try duplicating the drive using ddrescue as described in the manual. If that fails contact a professional recover service.
Locked