- Joined
- Feb 22, 2019
- Messages
- 757 (0.40/day)
Hey guys,
Long story short: I need to format hundreds of drives from 520KB sectors to 512KB sectors. I used to do this by hand and type out the commands every time... but I know it can be done easier.
Can someone here with the knowledge write me a quick script? I am willing to float some $$$ your way if it works as intended!
What I used to have to type was this:
This was on every boot as I used a live drive, but will be changing this to a full install on my server when it arrives. I assume this will irradicate the need for this portion but I may be wrong.
►sudo apt-get update
►sudo apt-get upgrade
►sudo apt-get install software-properties-common
►sudo apt-get install sg3-utils
This is the format segment:
►sudo sg_format --format --size=512 /dev/sg* - where * indicates drive number from terminal
Basically, I need it to run on 12 drives simultaneously and with room to expand up to 24. I will most likely install on to a spare drive to make this easier, if possible.
Thank you for your assistance. I will be trying to figure something out myself, but I will no doubt get stuck somewhere.
Long story short: I need to format hundreds of drives from 520KB sectors to 512KB sectors. I used to do this by hand and type out the commands every time... but I know it can be done easier.
Can someone here with the knowledge write me a quick script? I am willing to float some $$$ your way if it works as intended!
What I used to have to type was this:
This was on every boot as I used a live drive, but will be changing this to a full install on my server when it arrives. I assume this will irradicate the need for this portion but I may be wrong.
►sudo apt-get update
►sudo apt-get upgrade
►sudo apt-get install software-properties-common
►sudo apt-get install sg3-utils
This is the format segment:
►sudo sg_format --format --size=512 /dev/sg* - where * indicates drive number from terminal
Basically, I need it to run on 12 drives simultaneously and with room to expand up to 24. I will most likely install on to a spare drive to make this easier, if possible.
Thank you for your assistance. I will be trying to figure something out myself, but I will no doubt get stuck somewhere.