Sg_format, drives putting up a fight

I’ve good history formatting 520 byte drives to 512, have done over 100

thinking it’s time to upgrade my 4tb drives I bought a bunch of 20tb drives (and a few 24tb because I’m an idiot)

not all of the drives needed formatting, but I figured it was easiest to load them all into the disk shelves and format them all than to figure out whcih ones did/didn;t need formatting

I’m not a linux guy, went with ubuntu live boot, then…

sudo -i
apt install sg3-utils
apt install parallel

parallel -j0 sg_format --format --size=512 -e ::: /dev/sg{0..28}

which was going great… but there was a 5 second power cut mid way through… this server/disk shelf wasn’t on the ups (ups being saved for critical stuff)

now some of the drives are dead and nothing I’m trying is working

anyone have any ideas?

seagate drives?

there were a few in there… bit of a mix

in the end I cheated.. used ai to do it (gemini cli)

set it going and forgot about it… it did make a couple of mistakes - thought drives that were already formatted weren’t etc. but it got the job done