All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: ST1000DM003-1CH162 - partial access
PostPosted: April 12th, 2024, 8:18 
Offline

Joined: July 17th, 2022, 13:26
Posts: 39
Location: Slovakia
I have a ST1000DM003-1CH162 drive (4K physical blocks, 512B logical = "Advanced Format"):
Code:
ata2.00: ATA-9: ST1000DM003-1CH162, CC47, max UDMA/133
ata2.00: 1953525168 sectors, multi 16: LBA48 NCQ (depth 0/32)
sd 1:0:0:0: [sdb] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
sd 1:0:0:0: [sdb] 4096-byte physical blocks

It apparently has the partial access problem - I can read the first 15GB (with one bad sector at 3.2GB) but nothing after that:
Code:
# dd if=/dev/sdb of=/dev/null bs=1M status=progress conv=noerror
3216535552 bytes (3.2 GB, 3.0 GiB) copied, 25 s, 129 MB/s
dd: error reading '/dev/sdb': Input/output error
3067+1 records in
3067+1 records out
3216535552 bytes (3.2 GB, 3.0 GiB) copied, 28.7733 s, 112 MB/s
15072272384 bytes (15 GB, 14 GiB) copied, 108 s, 139 MB/s
dd: error reading '/dev/sdb': Input/output error
14373+2 records in
14373+2 records out

This is the lone bad sector:
Code:
I/O error, dev sdb, sector 6282296 op 0x0:(READ) flags 0x80700 phys_seg 18 prio class 2

and this is the first unreadable sector due to partial access problem:
Code:
I/O error, dev sdb, sector 29439000 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 2

Corresponding messages from terminal:
Code:
ProcessRWError -Read-   at LBA 0000147D6C  Sense Code=40000087
InitiateMarkPendingReallocateRequest for disc_lba: 0000147D6C!
Unrecoverable Error Reported
Unrecoverable Read Verify Error Reported

LBA 147D6Ch = 1342828d. I wonder how does that relate to LBA number 6282296 as seen from ATA.
Code:
ProcessRWError -Read-   at LBA 000040A868  Sense Code=40000087
InitiateMarkPendingReallocateRequest for disc_lba: 000040A868
EDAC Value = 0000000000000000
EDAC Value = 0000000000000000!
Unrecoverable Error Reported
Unrecoverable Read Verify Error Reported

Same here: LBA 40A868h = 4237416d but it's 29439000 as seen from the ATA side.

The NRG list is not empty:
Code:
F3 T>V40
Nonresident GList                   5B entries returned
Total entries available: 5B
          PBA           Len  Flags  Phy Cyl Hd  PhySctr    SFI
      40AC18             1     20     13B9  1     2B    27F2C
      40ADBA             1     20     13BA  1      D    26DC1
     DE143BC             1     20    50E97  1     C7     CF9C
     DE1D253             1     20    50EED  1     16     DBA4
     DE2A205             1     20    50F64  1     D0     C40A
     DE2A2D0             1     20    50F65  1     C3     CDA1
     DE3F485             1     20    51024  1      8     B684
     DE409C9             1     20    5103D  1     34     BC6A
     DE40A8E             1     20    5103E  1     21     7AFD
     DEC786D             1     20    51525  1     88    A530A
     DECFC44             1     20    51573  1     1C    9D2F9
     DED4B0C             1     20    515AA  1     67      C24
     DF0DBBB             1     20    517C1  1     99     F29F
     DF0DC24             1     20    517C2  1     37    6B6BA
     DF0DCE5             1     20    517C3  1     2D    6DB63
     DF0DD24             1     20    517C3  1     6C      388
     DF0DD71             1     20    517C3  1     B9    3C728
     DF0DD75             1     20    517C3  1     BD    3F90A
     DF0DDA5             1     20    517C4  1     22    6F3C5
     DF0DEA0             1     20    517C5  1     52      241
     DF0DEF2             1     20    517C5  1     A4    4044C
     DF0DF5F             1     20    517C6  1     46      E1A
     DF0E01C             2     20    517C7  1     38       FA
     DF0E06F             1     20    517C7  1     8B    40F8E
     DF0E364             1     20    517CB  1     54    3E765
     DF0E367             1     20    517CB  1     57    40CE8
     DF0E71D             1     20    517D0  1     16    40980
     DF0E964             1     20    517D2  1     C7    40839
     DF0EB73             1     20    517D5  1     75    3F24C
     DF0EC32             1     20    517D6  1     69    3FE3E
     DF126FC             1     20    517F4  1     89    409ED
     DF12876             1     20    517F6  1     6D    3EF94
     DF129F4             1     20    517F8  1     55    4075F
     DF12B71             1     20    517FA  1     3C    41246
     DF12C2F             1     20    517FB  1     2F    411AF
     DF12CEC             1     20    517FC  1     21    40476
     DF12FC8             2     20    517FF  1     9C    407F6
     DF13086             1     20    51800  1     8F    4075F
     DF13144             2     20    51801  1     82    406AF
     DF13203             1     20    51802  1     76    41246
     DF134FA             2     20    51806  1     41    4032F
     DF13D33             1     20    51810  1     8C    4159C
     DF13DEF             1     20    51811  1     7D    3FBDA
     DF16259             1     20    51813  1     71    40151
     DF16318             1     20    51814  1     65    40D2A
     DF163D5             1     20    51815  1     57    3FFF2
     DF163D7             1     20    51815  1     59    418C1
     DF16495             1     20    51816  1     4C    4182A
     DF1707F             1     20    51825  1     51    3E8AC
     DF17081             1     20    51825  1     53    401BE
     DF17115             3     20    51826  1     1C    3F9FC
     DF171D5             1     20    51827  1     11    4121C
     DF17291             1     20    51828  1      2    3F85A
     DF17293             1     20    51828  1      4    4116C
     DF17654             1     20    5182C  1     99    3F5CC
     DF17712             4     20    5182D  1     8C    3F535
     DF17891             1     20    5182F  1     75    4192E
     DF1794D             1     20    51830  1     66    3FF85
     DF1794F             1     20    51830  1     68    41897
     DF17A0C             1     20    51831  1     5A    40B5E
     DF17AC9             1     20    51832  1     4C    3FE3E
     DF17ACB             1     20    51832  1     4E    41750
     DF17C46             1     20    51834  1     33    40980
     DF17D03             1     20    51835  1     25    3FC47
     DF17DC3             1     20    51836  1     1A    414C2
     DF17E80             1     20    51837  1      C    40789
     DF180C6             3     20    51839  1     BC    3F9B9
     DF1A471             1     20    5183A  1     BC    3F33E
     DF1A8E7             1     20    51840  1     70    40839
     DF1A9A6             1     20    51841  1     64    41412
     DF1B628             1     20    51851  1     36    40EB4
     DF1B6E4             1     20    51852  1     27    3F4F2
     DF1BB66             1     20    51857  1     B2    3FDFB
     DF1BDA2             1     20    5185A  1     8D    4152F
     DF1E7FB             1     20    51864  1     18    408A6
     DF204ED             1     20    51888  1     7E    40EDE
     DF20727             1     20    5188B  1     57    40CE8
     DF22AD1             1     20    5188C  1     56    3F9FC
     DF22AD3             1     20    5188C  1     58    412B3
     DF22B91             1     20    5188D  1     4B    4121C
     DF22E87             1     20    51891  1     15    3F67C
     DF22F45             1     20    51892  1      8    3F5CC
     DF22F48             1     20    51892  1      B    41B67
     DF244BD             1     20    518AD  1     17    3F5A2
     DF2457E             1     20    518AE  1      D    41A8D
     DF2493F             2     20    518B2  1     A2    3FEAB
     DF26F25             1     20    518B6  1     7C    402C2
     DF27456             1     20    518BD  1     20    3F172
     E994ABC             1     20    58182  1     32    5ACEA
     E994AC5             1     20    58182  1     3B    61DF3
     E994AC7             1     20    58182  1     3D    6374A


But this is more interesting:
Code:
F3 T>V1
User Slip Defect List   
                         log log   log     phys   phys
        LBA    span   cumm   cyl  hd  sctr zn   cyl   sctr     SFI      PBA
           0      0      0     0  0     0   0      0     0        9            0
      250F9D    1F0    1F0   BC7  1     0   0    BC7     0    C42A9       25118D
      25329D    1C0    3B0   BDC  1     0   0    BDC     0    27690       25364D
      40A868      1    3B1  13B9  1    2B   0   13B9    2C    28B7B       40AC19 <----------------
      40AA09      1    3B2  13BA  1     D   0   13BA     E    27A10       40ADBB
      94C4FA      1    3B3  275A  0    EF   0   275A    F0    7ED62       94C8AD
...
Head 0: entries    134        slips      74F
Head 1: entries    102        slips      801
  Total Entries    236  Total Slips      F50

The list contains LBA 40A868 which is the first inaccessible sector! Can this entry be deleted somehow?


Top
 Profile  
 
 Post subject: Re: ST1000DM003-1CH162 - partial access
PostPosted: April 12th, 2024, 8:40 
Offline

Joined: July 17th, 2022, 13:26
Posts: 39
Location: Slovakia
I can read system files (modules) using "r" command and Y-modem but don't know which module contains the P-list. This drive does not have module 03.


Top
 Profile  
 
 Post subject: Re: ST1000DM003-1CH162 - partial access
PostPosted: April 12th, 2024, 9:49 
Offline

Joined: July 17th, 2022, 13:26
Posts: 39
Location: Slovakia
Or maybe the P-list is OK but the first (PBA 40AC18) entry of the NRG list is wrong? PBA 40AC19 corresponds to LBA 40A868 (as seen in the Slip Defect List) and 40AC18 is the one sector before that.


Top
 Profile  
 
 Post subject: Re: ST1000DM003-1CH162 - partial access
PostPosted: April 12th, 2024, 14:54 
Offline

Joined: October 3rd, 2005, 0:40
Posts: 4335
Location: Hungary
this problem is caused by wrongly performed translator regeneration.

147d6c*8 = A3EB60 (10742624 dec)
10742624 - 4460328 = 6282296
where 4460328 is size of MC

pepe

_________________
Adatmentés - Data recovery


Top
 Profile  
 
 Post subject: Re: ST1000DM003-1CH162 - partial access
PostPosted: April 15th, 2024, 10:09 
Offline

Joined: July 17th, 2022, 13:26
Posts: 39
Location: Slovakia
Thank you for the hint about media cache.

When I rebuild the translator using "m0,6,3,,,,,22" command, additional entries appear in the V40 list and the partial access problem moves from 15GB down to the first bad sector at 3.2GB (LBA 6282296).
Code:
V40
Nonresident GList                   63 entries returned
Total entries available: 63
          PBA           Len  Flags  Phy Cyl Hd  PhySctr    SFI
      147D6C             1      0      6A1  1     79    CB579
      147D6E             1      0      6A1  1     7B    CCE07
      40AC18             1     20     13B9  1     2B    27F2C
      40AC19            5D      0     13B9  1     2C    28B7B
      40AC96             1      0     13B9  1     A9    887DE
      40ADBA             1     20     13BA  1      D    26DC1
     DE143BC             1     20    50E97  1     C7     CF9C
     DE1D253             1     20    50EED  1     16     DBA4
     DE2A205             1     20    50F64  1     D0     C40A
     DE2A2D0             1     20    50F65  1     C3     CDA1
     DE3F485             1     20    51024  1      8     B684
     DE409C9             1     20    5103D  1     34     BC6A
     DE40A8E             1     20    5103E  1     21     7AFD
     DEC786D             1     20    51525  1     88    A530A
     DECFC44             1     20    51573  1     1C    9D2F9
     DED4B0C             1     20    515AA  1     67      C24
     DF0DBBB             1     20    517C1  1     99     F29F
     DF0DC24             1     20    517C2  1     37    6B6BA
     DF0DCE5             1     20    517C3  1     2D    6DB63
     DF0DD24             1     20    517C3  1     6C      388
     DF0DD71             1     20    517C3  1     B9    3C728
     DF0DD75             1     20    517C3  1     BD    3F90A
     DF0DDA5             1     20    517C4  1     22    6F3C5
     DF0DEA0             1     20    517C5  1     52      241
     DF0DEF2             1     20    517C5  1     A4    4044C
     DF0DF5F             1     20    517C6  1     46      E1A
     DF0E01C             2     20    517C7  1     38       FA
     DF0E06F             1     20    517C7  1     8B    40F8E
     DF0E364             1     20    517CB  1     54    3E765
     DF0E367             1     20    517CB  1     57    40CE8
     DF0E71D             1     20    517D0  1     16    40980
     DF0E964             1     20    517D2  1     C7    40839
     DF0EB73             1     20    517D5  1     75    3F24C
     DF0EC32             1     20    517D6  1     69    3FE3E
     DF126FC             1     20    517F4  1     89    409ED
     DF12876             1     20    517F6  1     6D    3EF94
     DF129F4             1     20    517F8  1     55    4075F
     DF12B71             1     20    517FA  1     3C    41246
     DF12C2F             1     20    517FB  1     2F    411AF
     DF12CEC             1     20    517FC  1     21    40476
     DF12FC8             2     20    517FF  1     9C    407F6
     DF13086             1     20    51800  1     8F    4075F
     DF13144             2     20    51801  1     82    406AF
     DF13203             1     20    51802  1     76    41246
     DF134FA             2     20    51806  1     41    4032F
     DF13D33             1     20    51810  1     8C    4159C
     DF13DEF             1     20    51811  1     7D    3FBDA
     DF16259             1     20    51813  1     71    40151
     DF16318             1     20    51814  1     65    40D2A
     DF163D5             1     20    51815  1     57    3FFF2
     DF163D7             1     20    51815  1     59    418C1
     DF16495             1     20    51816  1     4C    4182A
     DF1707F             1     20    51825  1     51    3E8AC
     DF17081             1     20    51825  1     53    401BE
     DF17115             3     20    51826  1     1C    3F9FC
     DF171D5             1     20    51827  1     11    4121C
     DF17291             1     20    51828  1      2    3F85A
     DF17293             1     20    51828  1      4    4116C
     DF17654             1     20    5182C  1     99    3F5CC
     DF17712             4     20    5182D  1     8C    3F535
     DF17891             1     20    5182F  1     75    4192E
     DF1794D             1     20    51830  1     66    3FF85
     DF1794F             1     20    51830  1     68    41897
     DF17A0C             1     20    51831  1     5A    40B5E
     DF17AC9             1     20    51832  1     4C    3FE3E
     DF17ACB             1     20    51832  1     4E    41750
     DF17C46             1     20    51834  1     33    40980
     DF17D03             1     20    51835  1     25    3FC47
     DF17DC3             1     20    51836  1     1A    414C2
     DF17E80             1     20    51837  1      C    40789
     DF180C6             3     20    51839  1     BC    3F9B9
     DF1A471             1     20    5183A  1     BC    3F33E
     DF1A8E7             1     20    51840  1     70    40839
     DF1A9A6             1     20    51841  1     64    41412
     DF1B628             1     20    51851  1     36    40EB4
     DF1B6E4             1     20    51852  1     27    3F4F2
     DF1BB66             1     20    51857  1     B2    3FDFB
     DF1BDA2             1     20    5185A  1     8D    4152F
     DF1E7FB             1     20    51864  1     18    408A6
     DF204ED             1     20    51888  1     7E    40EDE
     DF20727             1     20    5188B  1     57    40CE8
     DF22AD1             1     20    5188C  1     56    3F9FC
     DF22AD3             1     20    5188C  1     58    412B3
     DF22B91             1     20    5188D  1     4B    4121C
     DF22E87             1     20    51891  1     15    3F67C
     DF22F45             1     20    51892  1      8    3F5CC
     DF22F48             1     20    51892  1      B    41B67
     DF244BD             1     20    518AD  1     17    3F5A2
     DF2457E             1     20    518AE  1      D    41A8D
     DF2493F             2     20    518B2  1     A2    3FEAB
     DF26F25             1     20    518B6  1     7C    402C2
     DF27456             1     20    518BD  1     20    3F172
     E969CC2             3      0    57FB5  1      D    49FE3
     E969D25             1      0    57FB5  1     70     65F5
     E969D35             4      0    57FB5  1     80    12F07
     E969ED5             1      0    57FB7  1     AE    49994
     E994ABC             1     20    58182  1     32    5ACEA
     E994AC5             1     20    58182  1     3B    61DF3
     E994AC7             1     20    58182  1     3D    6374A

Where the additional entries come from? The Resident GList is empty (probably shouldn't be).
Code:
V80
Resident GList                    0 entries returned
Total entries available: 0
          PBA           Len  Flags  Phy Cyl Hd  PhySctr    SFI


Top
 Profile  
 
 Post subject: Re: ST1000DM003-1CH162 - partial access
PostPosted: April 15th, 2024, 17:08 
Offline

Joined: October 3rd, 2005, 0:40
Posts: 4335
Location: Hungary
entries from altlist are moved to nrg...

_________________
Adatmentés - Data recovery


Top
 Profile  
 
 Post subject: Re: ST1000DM003-1CH162 - partial access
PostPosted: April 17th, 2024, 9:04 
Offline

Joined: July 17th, 2022, 13:26
Posts: 39
Location: Slovakia
You're right - Alt list contains 147D6C:
Code:
V4
Reassigned Sectors List Enabled
Entries: 0003, Alts: 0000, Removed: 4013,
Pending: 0003 Host Pending: 0018
Idx  LBA          PBA          LLLCHS of LBA Wdg PLPCHS of PBA SFI    Hours Msecs  Status   BBM Mask

0000 000000147D6C 000000147D6C 0006A1.1.0079 110 0006A1.1.0079 0CB579 00000 015E29 00000001 00000000
0001 00000E968DD5 00000E969D25 057C55.1.0070 011 057FB5.1.0070 0065F5 00000 00DA5C 00000021 00000000
0002 00000E968F85 00000E969ED5 057C57.1.00AE 0C6 057FB7.1.00AE 049994 00000 00C1FD 00000021 00000000

But there are also 147D6E, 40AC19, 40AC96, E969CC2 and E969D35 which are not in the Alt list.
Code:
diff -u nrg-orig.txt nrg-after.txt
--- nrg-orig.txt        2024-04-17 14:59:33.333496911 +0200
+++ nrg-after.txt       2024-04-17 15:00:05.508894135 +0200
@@ -1,4 +1,8 @@
+      147D6C             1      0      6A1  1     79    CB579
+      147D6E             1      0      6A1  1     7B    CCE07
       40AC18             1     20     13B9  1     2B    27F2C
+      40AC19            5D      0     13B9  1     2C    28B7B
+      40AC96             1      0     13B9  1     A9    887DE
       40ADBA             1     20     13BA  1      D    26DC1
      DE143BC             1     20    50E97  1     C7     CF9C
      DE1D253             1     20    50EED  1     16     DBA4
@@ -86,6 +90,10 @@
      DF2493F             2     20    518B2  1     A2    3FEAB
      DF26F25             1     20    518B6  1     7C    402C2
      DF27456             1     20    518BD  1     20    3F172
+     E969CC2             3      0    57FB5  1      D    49FE3
+     E969D25             1      0    57FB5  1     70     65F5
+     E969D35             4      0    57FB5  1     80    12F07
+     E969ED5             1      0    57FB7  1     AE    49994
      E994ABC             1     20    58182  1     32    5ACEA
      E994AC5             1     20    58182  1     3B    61DF3
      E994AC7             1     20    58182  1     3D    6374A


Top
 Profile  
 
 Post subject: Re: ST1000DM003-1CH162 - partial access
PostPosted: April 17th, 2024, 9:29 
Offline

Joined: July 17th, 2022, 13:26
Posts: 39
Location: Slovakia
Did "i4,1,22", confirmed that Alt list is empty and "m0,6,3,,,,,22".
Now the NRG-list has only 5B entries (as in the first post).
Partial access problem returned to 15GB (the same sector 29439000).


Top
 Profile  
 
 Post subject: Re: ST1000DM003-1CH162 - partial access
PostPosted: April 19th, 2024, 8:10 
Offline

Joined: July 17th, 2022, 13:26
Posts: 39
Location: Slovakia
The NRG-list is probably wrong so I'm trying to clear it and regenerate the translator.

Found empty file 35 (NRG list) for the same drive at https://files.hddguru.com/download/SeDi ... e/Grenada/. Uploaded FC35A035.bin to the drive as file 35, both copy 0 and copy 1.

Now V40 does not work:
Code:
F3 T>V40

DiagError 00005002
DiagError 00005002
Invalid Diag Cmd Parameter

And "m0,6,3,,,,,22" too:
Code:
F3 T>m0,6,3,,,,,22

SIM Error 2002 LBA 0000000000094434 FD FC35A035
RW Error 00000080
DiagError 0000500EProcess Defect List Error
R/W Sense 00000002, R/W Error 84190080, List Offset 00000000, List Index 00000001, File Error 00000000


Should I do something else to clear the NRG list?


Top
 Profile  
 
 Post subject: Re: ST1000DM003-1CH162 - partial access
PostPosted: April 19th, 2024, 8:30 
Offline

Joined: July 17th, 2022, 13:26
Posts: 39
Location: Slovakia
Changed the first byte in original 35 file to zero, uploaded back to the drive (only copy 0) - V40 now works and is empty!
Code:
F3 T>V40
Nonresident GList                    0 entries returned
Total entries available: 0
          PBA           Len  Flags  Phy Cyl Hd  PhySctr    SFI

V40 remained empty even after "m0,6,3,,,,,22".
I can now read past the 15GB boundary :D There are 3 bad sectors at 15GB.


Top
 Profile  
 
 Post subject: Re: ST1000DM003-1CH162 - partial access
PostPosted: April 22nd, 2024, 14:30 
Offline

Joined: July 17th, 2022, 13:26
Posts: 39
Location: Slovakia
ddrescue started at almost 200MB/s, decreased to 32MB/s after the 15GB boundary. Later, many slow and bad sectors appeared.

Then, the commands started timeouting, making kernel upset and ddrescue did silly things - marking every sector as bad.
Added -E 16384 parameter to ddrescue to exit when it's getting errors too fast.
Wrote a simple script that rescans the ATA channel (to make the drive available again), then removes everything after the last good read from the map file (and sets the current position there) and restarts ddrescue:
Code:
#!/bin/sh
while true; do
        ddrescue -E 16384 /dev/sdb rescue.bin rescue.map
        while ! dmesg | tail | grep -q sdb1; do
                echo -n "- - -" >/sys/devices/pci0000\:00/0000\:00\:1f.2/ata2/host1/scsi_host/host1/scan
                sleep 5
        done

        cp rescue.map rescue.map.$(date +%Y%m%d_%H%M%S)
        last_ok=$(grep +$ rescue.map | tail -n 1)
        last_line=$(grep -n +$ rescue.map | tail -n 1 | cut -d\: -f 1)
        pos=$(grep -A 1 "$last_ok" rescue.map | tail -n 1 | cut -d\  -f 1)
        head -n 6 rescue.map >rescue.map.new
        echo "$pos     ?               1" >>rescue.map.new
        head -n $last_line rescue.map | tail -n +8 >>rescue.map.new
        mv rescue.map.new rescue.map
done


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 135 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group