Skip to content

bash - enhanced burn

Since we are dealing more with usb devices, the good old optical burning is not used that often. I created a simple function with an alias of "burn" to write a iso file as quick as possible to my optical storage device.

####
# burns given iso file
#
# @author stev leibelt
# @since 2013-02-12
####
function net_bazzline_burn ()
{
  if [[ $# -lt 1 ]]; then
    echo 'No valid argument supplied.'
    echo 'Try net_bazzline_burn $isoFile [$opticalDevice]'

    exit 1
  fi

  if [[ $# -eq 1 ]]; then
    sudo wodim -v dev=/dev/cdrom "$1"
  else
    sudo wodim -v dev=/dev/"$2" "$1"
  fi
}
This is available to my shell function on github.com.

Trackbacks

No Trackbacks

Comments

Display comments as Linear | Threaded

No comments

Add Comment

E-Mail addresses will not be displayed and will only be used for E-Mail notifications.
To leave a comment you must approve it via e-mail, which will be sent to your address after submission.

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA

Markdown format allowed
Form options