Skip to content

Instantly share code, notes, and snippets.

@djw8605
Created March 16, 2012 20:24
Show Gist options
  • Save djw8605/2052428 to your computer and use it in GitHub Desktop.
Save djw8605/2052428 to your computer and use it in GitHub Desktop.
Script to burn multiple USB live images
#!/bin/bash -x
device="sdb sdc sdd sde"
for dev in $device; do
fdisk /dev/$dev << EOF
d
n
p
1
t
c
w
EOF
#parted /dev/$dev rm 1
#parted -s -- /dev/$dev mkpart primary fat32 1 1588
parted /dev/$dev set 1 boot on
done;
for dev in $device; do
part=$dev""1
mkfs -t vfat /dev/$part
livecd-iso-to-disk --overlay-size-mb 300 OSG-SL6.2-x86_64-LiveUSB.iso /dev/$part &
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment