This one makes an iso image from any directory(s) on the hard drive that you want.
代码: 全选
#! /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
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
代码: 全选
#! /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
Thats all, hopefully someone finds these useful beside myself.
Cheers.