All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: all sectors on drive are errored
PostPosted: October 27th, 2021, 12:11 
Offline

Joined: February 18th, 2008, 13:33
Posts: 10
I have been trying to clean up a drive I removed from a NAS (ext4 format) - WD 2.0TB green - running on a USB port or connected as internal drive.
I thought I was almost successful and the drive showed one block error in HD Tune Pro
I attempted to run CHKDSK /r to clean it up and reallocation the block. That didn't work. It appeared to find a lot of other bad blocks that HD Tune Pro did not and quit. Now HD Tune Pro is labeling all sectors as errors.
I tried booting Windows repair and running CHKDSK in the CMD prompt, DISK MANAGEMENT, DISKPART, AOMEI, MHDD, SPINRITE, nothing has worked.
I tried cleaning, setting type to GPT and MBR, filling with 0s
I am currently looking at Disk Management and seeing a RAW disk E: but it will not format.
AOMEI says the bytes per sector is more than 512. I have no idea how that can occur since it is factory set by a VERY low level format in the sector header which can't be written to.
Everything else says there are too many errors.
Is there any way to fix this drive?


Top
 Profile  
 
 Post subject: Re: all sectors on drive are errored
PostPosted: October 27th, 2021, 18:21 
Offline
User avatar

Joined: September 8th, 2009, 18:21
Posts: 15461
Location: Australia
Can you show us a SMART report from CrystalDiskInfo?

_________________
A backup a day keeps DR away.


Top
 Profile  
 
 Post subject: Re: all sectors on drive are errored
PostPosted: October 28th, 2021, 5:37 
Offline

Joined: December 5th, 2011, 5:38
Posts: 1626
Location: Italy
Those drive can behave in very weird ways if HDA contacts are oxidized.
Check those contacts on the pcb and if necessary clean them by using a pencil eraser.
Don't be aggressive while cleaning the contacts!

_________________
My firmware database:
https://mega.nz/folder/O01DkBRI#MxP2J6ZNqXDcrX40I8MoQQ


Top
 Profile  
 
 Post subject: Re: all sectors on drive are errored
PostPosted: October 28th, 2021, 11:14 
Offline

Joined: February 18th, 2008, 13:33
Posts: 10
fzabkar wrote:
Can you show us a SMART report from CrystalDiskInfo?

How about HDTunePro?
The UDMA errors, as I understand them, are a result of intermittent data connections. The data has changed to 7012 since 3 days ago.
The sector size is being shown as 4096 bytes. That should be the BLOCK size, shouldn't it? Everything else I have shows 512 bytes.
How do I get it back to 512?


Attachments:
Health.png
Health.png [ 41.73 KiB | Viewed 6383 times ]
Top
 Profile  
 
 Post subject: Re: all sectors on drive are errored
PostPosted: October 28th, 2021, 15:24 
Offline
User avatar

Joined: September 8th, 2009, 18:21
Posts: 15461
Location: Australia
That drive is an Advanced Format model. It has a logical sector size of 512 bytes and a physical sector size of 4096 bytes.

There should be an OPT1 jumper which may limit the SATA transfer rate to 1.5Gbps (if this feature is configured in the firmware). Otherwise there was a WD supplied tool (wdsspeed.exe) which could do this.

_________________
A backup a day keeps DR away.


Top
 Profile  
 
 Post subject: Re: all sectors on drive are errored
PostPosted: October 28th, 2021, 21:53 
Offline

Joined: February 18th, 2008, 13:33
Posts: 10
what I found was sg_utils for Linux and Windows.
I currently have it open in both.
To do it properly for a Windows drive it says to use the Windows version.

The drive currently shows as RAW in Disk Management

I just want to verify the format command using Windows PowerShell

./sg_scan produces this

PD0 [EF] WDC WD2002FAEX-007BA0 05.01D05 WD-WMAY01622644
PD1 [VW] HGST HDS724040ALE640 MJAOA580 PK2301PCH3ETPB
PD2 [CD] Samsung SSD 980 PRO 500GB 2B2QGXA7 0025_38BB_0150_3DAA.
PD3 [G] AFT uSD PRO88 Reader 1616 000000001616
PD4 [H] AFT SD PRO88 Reader 1616 000000001616
PD5 [L] AFT CF PRO88 Reader 1616 000000001616
PD6 [I] Corsair Voyager 3.0 1.00 13150000000098051093
PD7 [J] WDC WD20 EARX-00PASB0 152D20337A0C



PD7 is the UUT



./sg_readcap pd7 produces this

Read Capacity results:
Last LBA=488378645 (0x1d1c1115), Number of logical blocks=488378646
Logical block length=4096 bytes
Hence:
Device size: 2000398934016 bytes, 1.90773e+06 MiB, 2000.4 GB, 2.0004 TB



therefore, the format command should be

./sg_format --format --size=512 pd7

That should reformat the drive to 512 bytes/sector.

Can you verify that command is correct b4 I screw something else up?


Top
 Profile  
 
 Post subject: Re: all sectors on drive are errored
PostPosted: October 28th, 2021, 22:15 
Offline

Joined: February 18th, 2008, 13:33
Posts: 10
well, that seems to produce and error and now I have no clue what to do.

./sg_format --format --size=512 -v pd7
WDC WD20 EARX-00PASB0 peripheral_type: disk [0x0]
PROTECT=0
VPD_SUPPORTED_VPDS gave res=5
mode sense(10) cdb: [5a 00 01 00 00 00 00 00 fc 00]
fetch_block_desc: MS response length truncated (20 < 22)


so I tried changing from 10 bit to 6 bit sense adding --six


./sg_format --format --size=512 --six -v pd7
WDC WD20 EARX-00PASB0 peripheral_type: disk [0x0]
PROTECT=0
VPD_SUPPORTED_VPDS gave res=5
mode sense(6) cdb: [1a 00 01 00 fc 00]
Mode Sense (block descriptor) data, prior to changes:
No block descriptors present
Need to perform MODE SELECT (to change number or blocks or block length)
but (single) block descriptor not found in earlier MODE SENSE

What do I do now?


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

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 76 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