Chris Allen wrote: > > > On Mon, Jun 26, 2006 at 11:13:17AM -0500, Rex Dieter wrote: >> Chris Allen wrote: >> >> > The script below locks the machine solid about 40% of the time that I >> > run it. >> ... >> > Ideas anyone?? >> > >> > >> > #!/bin/bash >> > for i in b c d e f g h i j k l m n o p q >> > do >> > parted -s /dev/sd$i rm 1 >> + sync; sleep 2; >> > parted -s /dev/sd$i mkpart primary ext2 0 250GB >> + sync; sleep 2; >> > done >> > > Thanks, but can you explain why that works, and why > sleep 2 rather than 1 or 3? I just picked a number to emulate the case where you said it worked if you typed it by hand... 1 or 3 would probably work too. (: -- Rex