I'd probably just try directly connecting it instead of using what to me appears to be you housing the drive inside an enclosure that also has some emulation firmware that runs on top of it for booting from ISOs stored on the disk. You'd even need a SAS backplane or a breakout cable that has the entire SAS interface (/w power) on it.HP/HGST 400 ГБ 2.5" 12Gb/s SAS SSD HUSML 4040ASS600 (520)
what should I do? I don't understand the code....
ubuntu@ubuntu:~$ sudo sg_scan -i
/dev/sg0: scsi9 channel=0 id=0 lun=0 [em]
iODD External HDD [rmb=0 cmdq=0 pqual=0 pdev=0x0]
/dev/sg1: scsi9 channel=0 id=0 lun=1 [em]
iODD Virtual CD-Rom [rmb=1 cmdq=0 pqual=0 pdev=0x5]
ubuntu@ubuntu:~$ sudo sg_format --format --size=512 --fmtpinfo=0 /dev/sd0
error opening device file: /dev/sd0: No such file or directory
ubuntu@ubuntu:~$ sudo sg_format --format --size=512 --fmtpinfo=0 /dev/sg0 -v
iODD External HDD peripheral_type: disk [0x0]
PROTECT=0
Unit serial number: S25WJ9CB612866
LU name: 60024e920573a2750000000000000000
mode sense (10) cdb: 5a 00 01 00 00 00 00 00 fc 00
Mode Sense (block descriptor) data, prior to changes:
Number of blocks=625142448 [0x2542eab0]
Block size=512 [0x200]
A FORMAT UNIT will commence in 5 seconds
ALL data on /dev/sg0 will be DESTROYED
Press control-C to abort
format unit cdb: 04 18 00 00 00 00
format unit:
Fixed format, current; Sense key: Illegal Request
Additional sense: Invalid command operation code
Format unit command: Illegal request, invalid opcode sense key
FORMAT UNIT failed
sg_scan -i
sg_scan: Error opening /dev/sg0 : Permission denied
/dev/sg1: scsi9 channel=0 id=0 lun=1 [em]
iODD Virtual CD-Rom [rmb=1 cmdq=0 pqual=0 pdev=0x5]
Just downloaded it and will see.What does a smart long test under parted magic's live cd do? pass or fail?
those may be psid locked? try seatools gui or try parted magic and use the unlocker tool. otherwise try a lsi sas3 raid card you can run a secure erase from there.Hello everyone, Im trying to format my disk from size 528 to 512 but can't succeed. I have not formatted many of my disks before, but I cannot change the size of the disk you see in the picture. here i will write the methods i tried.
the problem i faced : illegal request type sense key apart from invalid opcode
ı have a HP Qlogic QLE2562 - 489191-001 - PCIe 8GB Dual Port FC HBA
Home · ahouston/setblocksize Wiki (I tried, it didn't work)
sg_format --format --size=512 /dev/sg2 ( I tried, it didn't work)
GitHub - Drive-Trust-Alliance/sedutil: DTA sedutil Self encrypting drive software (I tried, it didn't work)
View attachment 22488
View attachment 22489
just one drive? or multiple? seems like you possibly have bad drives. the medium or hardware error usually is not good.I have a NetApp's samsung pm1635a 1714 6.4tb sas ssd (MZILS6T4HMLS)
Can't even read it capacity (seems due to firmware):
### smartctl --all /dev/sdb
smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.4.0-90-generic] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Vendor: SAMSUNG
Product: MZILS6T4HMLS-0G5
Revision: MS01
Compliance: SPC-4
LU is resource provisioned, LBPRZ=1
Rotation Rate: Solid State Device
Form Factor: 2.5 inches
Logical Unit id: 0x5002538a0740c8f0
Serial number: S3GXNA0J401111
Device type: disk
Transport protocol: SAS (SPL-3)
Local Time is: Fri May 13 13:56:53 2022 UTC
device Test Unit Ready [medium or hardware error (serious)]
A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options.
### sg_readcap /dev/sdb
read capacity(10):
Descriptor format, current; Sense key: Hardware Error
Additional sense: Logical unit failure
Descriptor type: Sense key specific: Actual retry count: 0
Descriptor type: Field replaceable unit code: 0x0
Descriptor type: Vendor specific [0x80]
00 24 3e 01
pass-through requested 8 bytes (data-in) but got 0 bytes
READ CAPACITY (10) failed: Medium or hardware error
sg_readcap failed: Medium or hardware error
### sg_format -v --format --size=512 /dev/sdb
SAMSUNG MZILS6T4HMLS-0G5 MS01 peripheral_type: disk [0x0]
PROTECT=1
<< supports protection information>>
Unit serial number: S3GXNA0J401111
LU name: 5002538a0740c8f0
mode sense(10) cdb: 5a 00 01 00 00 00 00 00 fc 00
mode sense(10):
Descriptor format, current; Sense key: Hardware Error
Additional sense: Logical unit failure
Descriptor type: Sense key specific: Actual retry count: 0
Descriptor type: Field replaceable unit code: 0x0
Descriptor type: Vendor specific [0x80]
00 24 3e 01
pass-through requested 252 bytes (data-in) but got 0 bytes
MODE SENSE (10) command: Medium or hardware error, type: sense key (plus blank check for tape)
--------------
Is anything can be made for use it with LSI 9300 controller ?
have two of thesejust one drive? or multiple? seems like you possibly have bad drives. the medium or hardware error usually is not good.
could try the https://semiconductor.samsung.com/resources/user-manual/Samsung_DCToolkit_V2.1_User_Guide.pdf
samsung dc toolkit and try to format with that.
Thank you!It's the same 3.84TB SAS SSD that we all know.
IF they come formatted in 520B, you will need a compatible HBA and sg_format to convert them.
MAYBE there is, but it's really difficulty (it was common on very old drives AFAIK)Thank you!
Oh brilliant. So there isn't some kind of firmware lock, then.
What would be a compatible HBA? Just a SAS one in IT mode or is there a known model that works well?
I might be getting 9 of them for about 300USD from a Netapp shelf.