[K12OSN] bash scripting request

Sergio Chaves sergio.chaves at gmail.com
Wed Feb 13 01:34:20 UTC 2013


Barry, I do not code much at all but it seems rather simple.
First, make sure you know the name the devices when mounted.
Then you check for it with an if statement: if device is mounted , do
dd..... fi.

This link can point you in the right direction:
http://superuser.com/questions/193437/how-do-i-write-a-bash-script-to-detect-a-mounted-usb-drive

On Sat, Feb 9, 2013 at 5:13 PM, Barry R Cisna <brcisna at eazylivin.net> wrote:
> Hello All,
>
> Can someone here that is into bash scripts give me some insight on how
> to accomplish the following?
> Our school is in talks of possibly at least partially going to Chromium
> os for the next school year. I have built a few 32-bit and 64-bit dev
> images and have done several hours of testing at this point.
> When using the dd if=myimage of=/dev/sd# bs=4MB  the images are taking
> almost 15 mins to build on to each usb stick.
>
> Can someone post here,,possibly how to run a shell script that would
> contiguously write dd to say all of the inserted usb sticks,in each of
> the 8 usb ports of my build bot host machine,with omitting of
> course,,the actual hard disk of the build bot machine?
>
> Thank You,
> Barry
>
>
>
> _______________________________________________
> K12OSN mailing list
> K12OSN at redhat.com
> https://www.redhat.com/mailman/listinfo/k12osn
> For more info see <http://www.k12os.org>




More information about the K12OSN mailing list