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

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 28 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: 224
Location: Canada
I wonder if you are aware that the hard disks in this topic are SAS

_________________
USB 3.5" enclosures are $19 USD postage paid from China, I own several


Top
 Profile  
 
 Post subject: Re: ST6000NM0034 DKS2F-H6R0SS 7FA6
PostPosted: September 17th, 2026, 19:07 
Offline

Joined: January 25th, 2022, 8:02
Posts: 4
Location: United Kingdom
I am going to add that the information in this tread is very close to being complete.

What you need to do in general is set bit 1 of byte 0x14 in mode page 0x38 to make the drives usage on ordinary systems after reformatting to a normal physical 512/4096 block size as appropriate.

On a Seagate drive this would appear to be changing 0x00 to 0x01 as detailed here. However on an HGST drive this is changing 0x02 to 0x03. I have only seen Seagate and HGST drives from a VSP system. Well not strictly true I have a number of SAS, SSD but these just work when reformatted to a normal block size, no extra steps required. For spinning disks it is Seagate and HGST only.

I have verified that this works across a number of different drive models from both Seagate and HGST.

I have also deduced that the product ID returned by the drive tells you the manufacturer, the physical size rotational speed and the capacity of the drive. So take the model format of

DKX#@-YZZZSS

Then
    X is R for HGST and S for Seagate drives
    # is either a 5 for a 2.5" drive or 2 for a 3.5" drive
    @ is an uppercase letter exact meaning unknown
    Y is H for a 7200 RPM drive, J for a 10k RPM drive and K for a 15k RPM drive
    ZZZ indicates the capacity of the drive. If it is three digits then the capacity is in GB. If there is an R it is a decimal point and the capacity is in TB

so some examples for the last second part after the dash

    K300SS is a 15k RPM drive with a capacity of 300GB
    J900SS is a 10k RPM drive with a capacity of 900GB
    J1R2SS is a 10k RPM drive with a capacity of 1.2TB
    H4R0SS is a 7200 RPM drive with a capacity of 4.0TB
    H10RSS is a 7200 RPM drive with a capacity of 10TB

The @ uppercase letter seems to indicate a drive series and is increasing over time. That is newer drives have a higher letter in the alphabet. Presumably you need to use a lookup table to work out what they refer to.


Top
 Profile  
 
 Post subject: Re: ST6000NM0034 DKS2F-H6R0SS 7FA6
PostPosted: September 17th, 2026, 23:14 
Offline

Joined: November 24th, 2011, 21:48
Posts: 261
Location: Canada
We have done these VSP drives before.

Formatting them from 520 to 512 is only half the job. The drive can format correctly, report 512-byte sectors, and still refuse normal writes because the VSP configuration is still present in Mode Page 0x38.
The change is byte 0x14.

For the drives we have seen:
Seagate: 0x00 -> 0x01
HGST: 0x02 -> 0x03

So the actual change is simple:
byte_0x14 |= 0x01;
That is bit 0, not bit 1.

For HGST 0x02 becomes 0x03. Setting the byte directly to 0x01 would clear the existing 0x02 flag.

Read Mode Page 0x38 from the drive you are working on:
sg_modes -p 0x38 /dev/sgX

Check what is changeable:
sg_modes -p 0x38 -c 1 /dev/sgX
Change byte 0x14, write the page back, save it, power-cycle the drive, then verify it again.

The process is basically:
Format 520 -> 512.
Read Mode Page 0x38.
Set bit 0 of byte 0x14.
Write and save it.
Power-cycle.
Confirm normal read/write operation.


Top
 Profile  
 
 Post subject: Re: ST6000NM0034 DKS2F-H6R0SS 7FA6
PostPosted: September 17th, 2026, 23:21 
Offline

Joined: November 24th, 2011, 21:48
Posts: 261
Location: Canada
Without altering my initial post - One thing I should add.

sg_wr_mode supports a mask, so alter only bit 0 of byte 0x14 and leave the rest of the drive's mode page untouched.
sg_wr_mode --page=0x38 \
--contents=0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1 \
--mask=0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1 \
--save /dev/sgX
That changes only 0x14 & 0x01.

WebClaw wrote:
We have done these VSP drives before.

Formatting them from 520 to 512 is only half the job. The drive can format correctly, report 512-byte sectors, and still refuse normal writes because the VSP configuration is still present in Mode Page 0x38.
The change is byte 0x14.

For the drives we have seen:
Seagate: 0x00 -> 0x01
HGST: 0x02 -> 0x03

So the actual change is simple:
byte_0x14 |= 0x01;
That is bit 0, not bit 1.

For HGST 0x02 becomes 0x03. Setting the byte directly to 0x01 would clear the existing 0x02 flag.

Read Mode Page 0x38 from the drive you are working on:
sg_modes -p 0x38 /dev/sgX

Check what is changeable:
sg_modes -p 0x38 -c 1 /dev/sgX
Change byte 0x14, write the page back, save it, power-cycle the drive, then verify it again.

The process is basically:
Format 520 -> 512.
Read Mode Page 0x38.
Set bit 0 of byte 0x14.
Write and save it.
Power-cycle.
Confirm normal read/write operation.


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

All times are UTC - 5 hours [ DST ]


Who is online

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