Friday, March 16, 2012

Burning the LiveUSBs

In my last post, I talked about the OSG LiveUSBs.  Now that the conference is next week, I have started burning the USB with the image.

USB Key Piles

I burned 4 USBs at a time, using the script below.  Parted didn't work, never really found out why.  The symptoms where that the USB would not boot, but they where readable by Macs.  So I scripted fdisk.
#!/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
view raw run-all.sh hosted with ❤ by GitHub

No comments:

Post a Comment