I thought I would share a couple really quick scripts that I think are useful for making basic iso images easily. I made these mostly so I don't need to refer to the man pages for dd and mkisofs every time I used them for making a simple iso.
This one makes an iso image from any directory(s) on the hard drive that you want.
Code:
#! /bin/bash
echo -n "File name for iso image (ie. CdName.iso): "
read -e isoName
echo -n "What is(are) the directory path(s) you want use to make the iso (ie. IsoDir1 IsorDir2 ...):"
read -e dirName
mkisofs -o $isoName $dirName
Just copy this code into a blank text file with no extension, and save it as something like dir2iso. Then copy into your /usr/bin/ directory and finally do a "sudo chmod +x /usr/bin/dir2iso" to make it executable
to run, in a terminal "dir2iso" or whatever you decided to name it and follow the prompts.
The second script creates an iso from /dev/cdrom
Code:
#! /bin/bash
##Creates an iso image from /dev/cdrom
echo -n "File name for iso image (ie. CdName.iso): "
read -e isoName
echo "please wait, reading CD..."
dd if=/dev/cdrom of=$isoName
Again copy into an empty text file, and name it something like cd2iso. copy to /usr/bin and "sudo chmod +x /usr/bin/cd2iso"
Thats all, hopefully someone finds these useful beside myself.
Cheers.
Bookmarks