Copying files to multiple USB flash drives

2

Does anyone know of any software or hardware (or both) that will copy a certain set of files to multiple USB flash drives?

We have a project where there are some PDF's that need to be copied to about 200 USB flash drives and I am not sure what the fastest way to that would be.

I work on a Mac OSX, but I do have access to a Windows machine as well.

Any help is greatly appreciated. Thanks!

ultraloveninja

Posted 2013-03-04T16:00:01.863

Reputation: 206

Question was closed 2014-08-06T19:40:37.843

Sounds like a job for scripts. If you're sure that the Drive letter for the flash drives will be constant, you can have someone write up a script so now your workflow will become like this; Plug flash drive, run script, unplug flash drive. Same thing but saves a few steps and a little bit of time. – Subaru Tashiro – 2013-03-04T16:08:01.667

1>

  • Please rephrase your question in a way that asks how to accomplish those tasks. Software and hardware recommendations are off topic on SU, and your question might get closed as is. 2. If you have N USB ports, you can process N drives at once. Is this what you're looking for? 3. Macs are PCs since Mac OS X. Your other OS is Windows?
  • < – Dennis – 2013-03-04T16:13:38.313

    Answers

    2

    Under Linux (e.g., Mac OS X), this is pretty easy with a shell script.

    Assuming that your USB drives (and only your USB drives) are mounted in /media, you can use a simple for loop:

    for device in /media/*; do
        // copy instructions here
        // e.g., cp file "$device"
    done
    

    If you have 10 USB slots, this will allow you to process 10 drives at once.

    The above for loop will copy the files sequentially, i.e., it will process the first flash drive, then start with the second one. If you have to copy a large amount of data, you can also copy the files in parallel:

    unset PIDS
    
    for device in /media/*; do
        // a single copy instruction here
        // e.g., cp file1 file2 file 3 "$device" &
    done
    
    wait
    

    The ampersand after the copy instruction makes it execute in the background, i.e., the rest of the for loop is executed immediately. The command wait delays the script until all background processes have finished.

    Dennis

    Posted 2013-03-04T16:00:01.863

    Reputation: 42 934

    I don't know much about OS X's default mount points. If the above doesn't work for you, please tell me where the drives get mounted. – Dennis – 2013-03-04T16:20:30.847

    1Oooh, thanks! Yeah, I was just doing some more digging and I did find an Aleratec 1:10 device as well. So maybe that might help. Thanks, I'll try this out! – ultraloveninja – 2013-03-04T16:20:36.933