MultiDrive – free backup, clone & wipe disk utility from Atola Technology

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 25 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: ST6000NM0034 DKS2F-H6R0SS 7FA6
PostPosted: December 15th, 2023, 19:12 
Offline
User avatar

Joined: May 29th, 2023, 13:54
Posts: 62
Location: /home/mr44er
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


Top
 Profile  
 
 Post subject: Re: ST6000NM0034 DKS2F-H6R0SS 7FA6
PostPosted: September 15th, 2024, 12:36 
Offline

Joined: September 15th, 2024, 12:24
Posts: 1
Location: Croatia
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


Top
 Profile  
 
 Post subject: Re: ST6000NM0034 DKS2F-H6R0SS 7FA6
PostPosted: November 10th, 2025, 3:38 
Offline

Joined: October 31st, 2025, 16:47
Posts: 2
Location: United Kingdom
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.


Top
 Profile  
 
 Post subject: Re: ST6000NM0034 DKS2F-H6R0SS 7FA6
PostPosted: November 22nd, 2025, 17:47 
Offline

Joined: October 31st, 2025, 16:47
Posts: 2
Location: United Kingdom
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


Top
 Profile  
 
 Post subject: Re: ST6000NM0034 DKS2F-H6R0SS 7FA6
PostPosted: November 22nd, 2025, 19:02 
Offline

Joined: March 8th, 2025, 18:07
Posts: 109
Location: Canada
I wonder if you are aware that the hard disks in this topic are SAS

_________________
Orico DS500C3-US-BK 5-disk 3.5" SATA, iTGZ 4x M.2 2280 Thunderbolt enclosure NVMe/SATA, etc. etc.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 25 posts ]  Go to page Previous  1, 2

All times are UTC - 5 hours [ DST ]


Who is online

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