Disk image issues

just in case that you would like to save some disk image from zip file without extracting it straight to the USB card reader and SD card.


#!/bin/bash

ARCH=$1

FN=$(unzip -l $ARCH | \
  awk -F" " '{print $4}'| \
  grep -v "^$"| \
  tail  -n+3 | \
  head -1)

echo "'$FN'"

unzip -p $ARCH $FN | dd of=/dev/sd-your-sdcard

In certain case you might feel that you would appreciate some progress info then these two might come handy


Eventually  you might need some tool to create usb bootable stick from ISO cd/dvd image
UNetBootin

Comments

Popular Posts