<div dir="ltr">For aligned disks I general do:<div>mkpart primary 1 -0 </div><div>I suspect that is sector aligned and not cylinder aligned?</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jul 29, 2014 at 12:51 PM, David L. Willson <span dir="ltr">&lt;<a href="mailto:DLWillson@thegeek.nu" target="_blank">DLWillson@thegeek.nu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">How can I quickly and simply wipe and re-partition a disk from a script?<br>
<br>
Here&#39;s a proposal, using sdc as the example.<br>
<br>
# Quickly wipe the head of the disk.<br>
sudo dd if=/dev/zero of=/dev/sdc bs=16MB count=1<br>
<br>
# Create a new, basic partition table. Good for up to 2TB.<br>
sudo parted /dev/sdc mklabel msdos<br>
<br>
# If you have a disk larger than 2TB, use this instead.<br>
# sudo parted /dev/sdc mklabel gpt<br>
<br>
# Create a new, cylinder-aligned, primary partition, the full size of the disk<br>
sudo parted --align cylinder /dev/sdc mkpart primary 0% 100%<br>
<br>
The most interesting part might be that last line. I found many posts by people looking for a way to create a partition using parted non-interactively that is the full size of the disk and &quot;properly aligned for best performance&quot;, but I didn&#39;t find anyone giving the answer. So... So that.<br>

<br>
--<br>
David L. Willson<br>
Teacher, Engineer, Evangelist<br>
RHCE+Satellite CCAH Network+ A+ Linux+ LPIC-1 UbuntuCP NovellCLA<br>
Mobile 720-333-LANS(5267)<br>
<a href="http://sofree.us" target="_blank">http://sofree.us</a><br>
<br>
This is a good time for a r3VOLution.<br>
_______________________________________________<br>
clue mailing list: <a href="mailto:clue@cluedenver.org">clue@cluedenver.org</a><br>
For information, account preferences, or to unsubscribe see:<br>
<a href="http://cluedenver.org/mailman/listinfo/clue" target="_blank">http://cluedenver.org/mailman/listinfo/clue</a><br>
</blockquote></div><br></div>