<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Times New Roman; font-size: 12pt; color: #000000'>Tried that. No dice. Actually what you said is how I used to do it, but I was always annoyed by having to go interactive. If I'm going to go interactive, I'm using cfdisk, because the interface is more pretty / less suckful.<br><br>I always wanted non-interactive and *perfect*. I finally figured out how to get it today.<br><span><br><span name="x"></span>--<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>http://sofree.us<br><br>This is a good time for a r3VOLution.<span name="x"></span><br></span><br><hr id="zwchr"><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><div dir="ltr">Oh, I do this from the parted command line, not as an argument to parted directly. &nbsp;I wonder if you surround it with quotes?</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jul 29, 2014 at 1:19 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"><div><div style="font-family:Times New Roman;font-size:12pt;color:#000000">Interesting. Trying your switches, I'm getting that 0 is an invalid argument. It seems to think that by "-0" I mean to specify a switch, not a parameter to the mkpart.<div>
<div class="h5"><span><br><br><span></span>--<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.<span></span><br></span><br><hr><blockquote style="border-left:2px solid rgb(16,16,255);margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt">
<div dir="ltr">For aligned disks I general do:<div>mkpart primary 1 -0&nbsp;</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'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 "properly aligned for best performance", but I didn'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" target="_blank">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>
<br>_______________________________________________<br>clue mailing list: <a href="mailto:clue@cluedenver.org" target="_blank">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></blockquote>
<br></div></div></div></div><br>_______________________________________________<br>
clue mailing list: <a href="mailto:clue@cluedenver.org" target="_blank">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>
<br>_______________________________________________<br>clue mailing list: clue@cluedenver.org<br>For information, account preferences, or to unsubscribe see:<br>http://cluedenver.org/mailman/listinfo/clue</blockquote><br></div></body></html>