Data recovery and disk repair questions and discussions related to old-fashioned SATA, SAS, SCSI, IDE, MFM hard drives - any type of storage device that has moving parts
Post a reply

Re: ST6000NM0034 DKS2F-H6R0SS 7FA6

December 15th, 2023, 19:12

Check out sdparm.
Show everything with details and explanation:
Code:
sdparm -a /dev/sdX --long


I am very, very curious if you have
Code:
[cha: y,
@WCE secion now for all of your disks.

Write cache off and save (-s=set,-S=Save)
Code:
sdparm -s WCE=0 -S /dev/sdX


Write cache on and save:
Code:
sdparm -s WCE=1 -S /dev/sdX

Re: ST6000NM0034 DKS2F-H6R0SS 7FA6

September 15th, 2024, 12:36

stefan wrote:
fzabkar wrote:What differences have you found?


Code:
[0:0:0:0]    disk    SEAGATE  DKS2F-H6R0SS     7FA6  /dev/sdc   /dev/sg2
[0:0:1:0]    disk    SEAGATE  DKS2F-H6R0SS     7FA6  /dev/sdd   /dev/sg3
[0:0:2:0]    disk    SEAGATE  DKS2F-H6R0SS     7FA6  /dev/sdg   /dev/sg6
[0:0:3:0]    disk    SEAGATE  DKS2F-H6R0SS     7FA6  /dev/sdh   /dev/sg7
[5:0:0:0]    disk    ATA      Samsung SSD 870  3B6Q  /dev/sda   /dev/sg0
[6:0:0:0]    disk    ATA      Samsung SSD 870  3B6Q  /dev/sdb   /dev/sg1
[15:0:0:0]   disk    SEAGATE  DKS2F-H6R0SS     7FA6  /dev/sde   /dev/sg4
[15:0:1:0]   disk    SEAGATE  DKS2F-H6R0SS     7FA6  /dev/sdf   /dev/sg5
[15:0:2:0]   disk    SEAGATE  DKS2F-H6R0SS     7FA6  /dev/sdi   /dev/sg8
[15:0:3:0]   disk    SEAGATE  DKS2F-H6R0SS     7FA6  /dev/sdj   /dev/sg9


See attached. First 4 drives highlighted green (sg2-sg5) are the ones that work (allowed writing GPT and data), last 4 highlighted red (sg6-sg9) are the ones that throw write error. Out of 4 non-working ones 3 have Write Cache Enabled (I can disable it with smartctl but it is a volatile change: as soon as drive is pulled out, it goes back to enabled). So I believe most of the diffs are related to this option enabled. Each working - non-working pair uses separate sff cable between the backplane and HBA and I have 2 HBAs to eliminate any connectivity questions.

HOWEVER, there is one difference that matches the working - non-working pattern: Mode Page 0x38, line 0x14. I need to see if I can change it and if it helps.

BTW the thing that I find unusual is every drive has a different number of cylinders. Not sure if this is normal.


Hi,
Any chance someone could help with changing the mode Page 0x38, line 0x14 as mentioned above.
I'm not that experienced with sg_wr_mode and hex editing.
Also have a few disks laying around, same model, firmware and control page output;
Code:
root@temp:~# sg_modes -p 0x38 -c 1 /dev/sg1
    SEAGATE   DKS2F-H6R0SS      7FA6   peripheral_type: disk [0x0]
Mode parameter header from MODE SENSE(10):
  Mode data length=88, medium type=0x00, WP=0, DpoFua=1, longlba=0
  Block descriptor length=8
> Direct access device block descriptors:
   Density code=0x0
00     ff ff ff ff 00 00 02 00

>> page_code: 0x38, page_control: changeable
00     b8 46 ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
10     ff 00 00 1b 01 00 00 00  ff ff ff ff ff ff ff ff
20     00 01 00 00 00 00 00 00  00 00 00 00 00 00 00 00
30     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
40     00 00 00 00 00 00 00 00

Re: ST6000NM0034 DKS2F-H6R0SS 7FA6

November 10th, 2025, 3:38

Using this thread, I finally managed to format a Hitachi VSP 5560075-A / ST6000NM0034 drive from 520B to 512B and create a working partition.
I used an LSI 9211 controller flashed in IT mode and formatted the drive to 512B using sg3-utils — the process took about 20 hours.

Afterward, I tried to modify Mode Page 0x38, byte 0x14, as mentioned above, but the command didn’t go through.
Then I switched from the LSI 9211 to a Dell PERC H730. The controller recognized the formatted HDD but couldn’t create a partition.

I set all HDDs to JBOD mode, and only then was I able to successfully change Mode Page 0x38, byte 0x14.
I checked my Mode Page 0x38 dump using:
sudo sg_modes -p 0x38 /dev/sgX # mode page 0x38 dump
And change byte 0x14 (the 21st byte) from 00 to 01.
sudo sg_wr_mode --page=0x38 --contents="B8,46,00,02,00,03,74,08,00,00,00,02,BA,A0,F4,B0,02,00,00,12,01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00" /dev/sda
Essentially, this changes 21st byte from 00 to 01.
After that, I was able to successfully create a partition.
Thank you to everyone in this thread for providing valuable information.

Re: ST6000NM0034 DKS2F-H6R0SS 7FA6

November 22nd, 2025, 17:47

Add -s to save.
sudo sg_wr_mode --page=0x38 --contents="B8,46,00,02,00,03,74,08,00,00,00,02,BA,A0,F4,B0,02,00,00,12,01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00" -s /dev/sdX

Re: ST6000NM0034 DKS2F-H6R0SS 7FA6

November 22nd, 2025, 19:02

I wonder if you are aware that the hard disks in this topic are SAS
Post a reply