Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

SAS Drive 520 sector size

Featured Replies

Hi i just got a  lsi 9271-8i and i tryed everything to get it to format 512 bytes, and i cant get i to se drives in SG_scan so cant format, tryed to flash the controller to 2308 IT mode, cuz i read somewhere some ppl do that, but i failed, i am giving up on my projekt and trashing 12 3TB sas 520bytes drives soon..

writing here in hopes there are someone who can point me in a diriction of a controller that is sure to be able to format the drives.. 

will this work ?  https://www.ebay.de/itm/Fujitsu-Raid-Controller-D2507-C11-GS-1-SAS-SATA-PCIe-D2507-C11-LSI-SAS-1068E/251981232440?epid=2254415229&hash=item3aab407938:g:w-MAAOSwNSxVbdrT

 

hope there is someone out there who can help.. 
 

do we have a list of confirmed controllers that can do the 520 to 512 format ? ?

  • 3 weeks later...

I am having some issues using this command for some reason it appears to stop as soon as it trys to format. 

 

root@PlexServer:~# sg_format --format --size=512 -v /dev/sg9
    inquiry cdb: 12 00 00 00 24 00 
    HGST      HUS724040ALS640   A152   peripheral_type: disk [0x0]
      PROTECT=1
      << supports protection information>>
    mode sense (10) cdb: 5a 00 01 00 00 00 00 00 fc 00 
    mode sense (10): pass-through requested 252 bytes but got 28 bytes
Mode Sense (block descriptor) data, prior to changes:
Mode sense number of blocks maxed out, set longlba
    mode sense (10) cdb: 5a 10 01 00 00 00 00 00 fc 00 
    mode sense (10): pass-through requested 252 bytes but got 36 bytes
Mode Sense (block descriptor) data, prior to changes:
  <<< longlba flag set (64 bit lba) >>>
  Number of blocks=7814037168 [0x1d1c0beb0]
  Block size=512 [0x200]

A FORMAT will commence in 10 seconds
    ALL data on /dev/sg9 will be DESTROYED
        Press control-C to abort
A FORMAT will commence in 5 seconds
    ALL data on /dev/sg9 will be DESTROYED
        Press control-C to abort
    format cdb: 04 18 00 00 00 00 
format unit:  Descriptor format, current;  Sense key: Not Ready
 Additional sense: Logical unit not ready, initializing command required
  Descriptor type: Information
   >> descriptor too short
    00 00 00 00 00 00 00 00 00 00 
  Descriptor type: Command specific
    0x0000000000000000
  Descriptor type: Sense key specific: Progress indication: 0.00%
  Descriptor type: Field replaceable unit
    code=0x0
  Descriptor type: Block commands
    Incorrect Length Indicator (ILI) clear
  Descriptor type: VendoFormat command, device not ready

not exactly sure why you're bothering with the -v flag, as it won't do anything.

also, did you try the command again a couple minutes later?

also try: scsi_ready -v /dev/sg9

 

it should come back with:

test unit ready cdb: 00 00 00 00 00 00 
ready

 

If not, the drive isn't playing nice with something, or has other issues.

11 hours ago, sota said:

also try: scsi_ready -v /dev/sg9

 

it should come back with:

test unit ready cdb: 00 00 00 00 00 00 
ready

 

If not, the drive isn't playing nice with something, or has other issues.

Thanks for the reply soto. This is what comes back with that command. I even tried the format drive command after that and I get the same message as before. 

 

root@PlexServer:~# scsi_ready -v /dev/sg9
sg_turs -v /dev/sg9
        test unit ready cdb: 00 00 00 00 00 00 
test unit ready:  Descriptor format, current;  Sense key: Not Ready
 Additional sense: Logical unit not ready, initializing command required
  Descriptor type: Information
   >> descriptor too short
    00 00 00 00 00 00 00 00 00 00 
  Descriptor type: Command specific
    0x0000000000000000
  Descriptor type: Sense key specific: Progress indication: 0.00%
  Descriptor type: Field replaceable unit
    code=0x0
  Descriptor type: Block commands
    Incorrect Length Indicator (ILI) clear
  Descriptor type: Vdevice not ready

What does the actual label on the disk say?

HUS724040ALS640?

or

HUS72404CLAR4000?

 

I've got a bad feeling you have "branded" and firmware locked disks.

It shows HUS724040ALS640

15822268280173022145781123047782.jpg

  • 3 months later...
On 1/30/2020 at 11:58 AM, Jayroller said:

I'm having some problem trying to convert HP SAS drive from 520 to 512 block size using sg_format, Make:HP Model:HMRP4000S

can anyone see where I'm going wrong?


root@Tower:~# sg_format -v --fmtpinfo=0 --format --size=512 /dev/sg3
    HGST      HMRP4000S5xnN7.2  3P00   peripheral_type: disk [0x0]
      PROTECT=1
      << supports protection information>>
      Unit serial number:         PBHR336X
      LU name: 5000cca03b608d44
    mode sense (10) cdb: 5a 00 01 00 00 00 00 00 fc 00 
Mode Sense (block descriptor) data, prior to changes:
Mode sense number of blocks maxed out, set longlba
    mode sense (10) cdb: 5a 10 01 00 00 00 00 00 fc 00 
Mode Sense (block descriptor) data, prior to changes:
  <<< longlba flag set (64 bit lba) >>>
  Number of blocks=7814037168 [0x1d1c0beb0]
  Block size=520 [0x208]
    mode select (10) cdb: 55 11 00 00 00 00 00 00 22 00 
mode select (10): transport: Host_status=0x03 [DID_TIME_OUT]
Driver_status=0x00 [DRIVER_OK]

MODE SELECT command: Sense category: -1
root@Tower:~#

any help would be great.

try this command 

sg_format --format --size=512 -v /dev/sg3

 

On 2/2/2020 at 10:38 PM, MadZoul said:

Hi i just got a  lsi 9271-8i and i tryed everything to get it to format 512 bytes, and i cant get i to se drives in SG_scan so cant format, tryed to flash the controller to 2308 IT mode, cuz i read somewhere some ppl do that, but i failed, i am giving up on my projekt and trashing 12 3TB sas 520bytes drives soon..

writing here in hopes there are someone who can point me in a diriction of a controller that is sure to be able to format the drives.. 

will this work ?  https://www.ebay.de/itm/Fujitsu-Raid-Controller-D2507-C11-GS-1-SAS-SATA-PCIe-D2507-C11-LSI-SAS-1068E/251981232440?epid=2254415229&hash=item3aab407938:g:w-MAAOSwNSxVbdrT

 

hope there is someone out there who can help.. 
 

do we have a list of confirmed controllers that can do the 520 to 512 format ? ?

https://www.ebay.com.au/itm/LSI-6Gbps-SAS-HBA-LSI-9200-8i-9211-8i-IT-Mode-ZFS-FreeNAS-unRAID-AU-seller/143058624384

you cant use RAID cards happily with URAID OS

Edited by SundarNET
info addition

  • 2 years later...
On 1/30/2020 at 11:58 AM, Jayroller said:

I'm having some problem trying to convert HP SAS drive from 520 to 512 block size using sg_format, Make:HP Model:HMRP4000S

can anyone see where I'm going wrong?

root@Tower:~# sg_format -v --fmtpinfo=0 --format --size=512 /dev/sg3
    HGST      HMRP4000S5xnN7.2  3P00   peripheral_type: disk [0x0]
      PROTECT=1
      << supports protection information>>
      Unit serial number:         PBHR336X
      LU name: 5000cca03b608d44
    mode sense (10) cdb: 5a 00 01 00 00 00 00 00 fc 00 
Mode Sense (block descriptor) data, prior to changes:
Mode sense number of blocks maxed out, set longlba
    mode sense (10) cdb: 5a 10 01 00 00 00 00 00 fc 00 
Mode Sense (block descriptor) data, prior to changes:
  <<< longlba flag set (64 bit lba) >>>
  Number of blocks=7814037168 [0x1d1c0beb0]
  Block size=520 [0x208]
    mode select (10) cdb: 55 11 00 00 00 00 00 00 22 00 
mode select (10): transport: Host_status=0x03 [DID_TIME_OUT]
Driver_status=0x00 [DRIVER_OK]

MODE SELECT command: Sense category: -1
root@Tower:~#

any help would be great.

i think i found out this one its obviosly very late but i just got a bunch of drives and they are protected as well 

the new command is : sg_format --format --fmtpinfo=0 --size=512 -v /dev/sgXXXX

8 minutes ago, SundarNET said:

i think i found out this one its obviosly very late but i just got a bunch of drives and they are protected as well 

the new command is : sg_format --format --fmtpinfo=0 --size=512 -v /dev/sgXXXX

and if that doesnt work add --six after size=512

  • 1 year later...

Sorry to necro but I have 3 drives that seem to be unable to format. Tried the following command:
 

sg_format --format --size=512 --fmtpinfo=0 --six -v /dev/sdp

 

Out put is as follows:
 

root@Tower:/tmp/sg# sudo sg_format --format --size=512 --fmtpinfo=0 --six -v /dev/sdp
    HGST      HUH721212AL4200   A640   peripheral_type: disk [0x0]
      PROTECT=1
      << supports protection information>>
      Unit serial number:         8DGT3DPH
      LU name: 5000cca2532bd6d0
    mode sense(6) cdb: [1a 00 01 00 fc 00]
Mode Sense (block descriptor) data, prior to changes:
block count maxed out, set <<longlba>>
    mode sense(10) cdb: [5a 10 01 00 00 00 00 00 fc 00]
  <<< longlba flag set (64 bit lba) >>>
  Number of blocks=23437770752 [0x575000000]
  Block size=512 [0x200]

A FORMAT UNIT command will commence in 15 seconds
    ALL data on /dev/sdp will be DESTROYED
        Press control-C to abort

A FORMAT UNIT command will commence in 10 seconds
    ALL data on /dev/sdp will be DESTROYED
        Press control-C to abort

A FORMAT UNIT command will commence in 5 seconds
    ALL data on /dev/sdp will be DESTROYED
        Press control-C to abort
    Format unit cdb: [04 18 00 00 00 00]
Format unit:
Descriptor format, current; Sense key: Not Ready
Additional sense: Logical unit not ready, initializing command required
  Descriptor type: Field replaceable unit code: 0x0
  Descriptor type: Vendor specific [0x80]
    f5 03 
Format unit command: Device not ready, type: sense key
FORMAT UNIT failed

 

Not sure what else to try. Unraid sees them as 0 size and such so I figure it's the block size but not sure what else to try at this point short of returning them.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.