Created
March 16, 2012 20:24
-
-
Save djw8605/2052428 to your computer and use it in GitHub Desktop.
Script to burn multiple USB live images
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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