sg_format installation to remove type 2 protection on SAS drives.

daves_nt_here

Member
Dec 27, 2021
13
0
6
49
I've bought some SAS drives off ebay but they have type 2 protection on them. Doing some googling, it looks like I need sg_format to remove the protection but I can't figure out how to install sg_format.
apt-get install -y sg3_utils does not want to work. (Unable to locate package)
How do I get sg_format on my system or is their something else out their that will work that I didn't see in any google searches.
 
OMG! I think my brain was just too overwhelmed with google results to remember to remove the hyphens. I knew that but was just copy/pasting everything hoping something would stick.

Got the app and started wiping the one of the 8-2tb disks. If it works, then I'll do the rest. Looks like it's going to take hours though. Taken about 15min to do the first 2%

sg_format -v -F /dev/sdc

Fingers crossed, this removes the protection and I can finally add the drives to a ZFS raid pool.
Thanks wbk for the slap in the face to wake me up ;)
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!