re: trying to write iso images to cd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I found -data worked with earlier versions of Linux but lately generated lots of coasters. What I did find was -sao works and if -sao is used -data is also assumed as being used. I don't normally put a speed parameter in either. Maybe this will help some on this list.
Cut here.


#!/bin/sh
# General purpose CD burner script using crecord and mkisofs
notes() {
echo "0) edit dev on line 35 to point to cdrom"
echo "1) recursive copying copies all of typed directory and everything"
echo "below that typed directory into an iso image you have been warned."
echo "2) before choosing 2 on menu put disk in burner."
echo "works better that way."
echo "3) tab key works in script same as at bash prompt."
echo "4) enter anything but (1, 2, n, or x) on menu gets immediate bash prompt."
echo -e "\a\c"
echo "hit enter to return to menu->"
read
CHOICE=""
}

make_iso1() {
echo
echo -n "Enter name of top directory for recursive copying: "
read -e INPUT
echo -n "Enter name of ISO file image: "
read -e ISOFILE
echo -n "Enter volume label: "
read -e VOLID
mkisofs -v -r -J -V $VOLID -o $ISOFILE $INPUT
echo -e "\a\c"
echo "hit enter to return to menu->"
read
CHOICE=""
}

write_data1() {
echo -n "Enter name of ISO file: "
read -e ISOFILE
cdrecord -v dev=/dev/hdd -eject -sao fs=8m $ISOFILE
echo -e "\a\c"
echo "hit enter to return to menu->"
read
CHOICE=""
}
bail() {
    echo ""
        echo "Exitting CD burner script!"
exit 0
}
# Main portion
CHOICE=""
while [ "$CHOICE" = "" ] ; do
    clear
    echo "CD Burner Main Menu"
    echo ""
    echo "1 - Build ISO image for single session CD"
    echo "2 - Burn a single session data CD"
echo "n - read notes"
    echo "X - Exit"
    echo ""
    echo -n "Enter choice: "
    read CHOICE
    case "$CHOICE" in
    1)
        make_iso1
    ;;
    2)
        write_data1
    ;;
n)
notes
;;
    x)
bail
    ;;
    esac
done

cut here.



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux