r/PowerShell • u/Aggravating_Coast285 • 28d ago
Question PRoblems formatting SAS Drive on Win10x64
Context: SAS drive was given to me years ago but haven't gone to using it until now.
I'm trying to format a ST4000NM0023 on a Blueendless U35KS SAS/SATA Mobile Hard Disk Enclosure. I use a Dell G3 laptop to do all this.
Seagate tools are no help FYI. I don't want this drive go to waste!
I try to format with sg_format and this is what i get:
PS C:\windows>
>> sg_format --format --size=512 --fmtpinfo=0 --six -v pd2
Generic External 0157 peripheral_type: disk [0x0]
PROTECT=0
Unit serial number: 00000000000000000001
LU name: 570b3d5000000000
mode sense(6) cdb: [1a 00 01 00 fc 00]
mode sense(6):
Fixed format, current; Sense key: Vendor specific(9)
vendor specific ASC=80, ASCQ=92 (hex)
MODE SENSE (6) command: Some other sense error, try '-v' option for more information
1
u/x86_64_ 28d ago
You have to do a low-level format of that drive first - it very likely came from an array and Windows can't make sense of the format.
Paste this whole thing into your search engine of choice, there's only a few steps to it but the format will take a few hours to complete.
1
u/Creative-Type9411 27d ago
use diskpart first run clean
after you select disk do a detail disk to make sure you picked the right one then do the clean
1
u/BlackV 27d ago
Do have to tell the caddy that's it's sas?
1
u/turnAsh 27d ago
usb enclosures usually strip out or block low-level scsi commands like that, especially with a 6-byte mode sense. you can try dropping the --six flag to see if 10-byte commands pass through the bridge chip, otherwise it really needs a proper HBA card.