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

Re: Burning CD's



Brune, Charlie said:
> How would I make burn a CD with a copy of a "directory tree", like /fred and
> everything under it?

mkisofs -o fred.iso -v -J -r /fred

> Do I *have* to make a .iso first?

There's probably a way around it, but I've honestly never bothered to
figure out what.  The various front-ends to mkisofs and cdrecord
probably have some way to do that.

If all else fails, I suppose you could run a script like this:

#!/bin/sh

if [ -z "$*" ] ; then
    echo "Usage: $0 <directory> [ <directory> [ <directory> [...] ] ]"
fi

out=`mktemp /tmp/XXXXXX.iso`

trap "rm -f $out" EXIT

mkisofs -o $out -v -J -r $* || echo "mkisofs failed" >&2 && exit 1

cdrecord -v -eject dev=0,0,0 speed=12 driveropts=burnproof $out

### END

That way the iso is created & deleted automagically.

Steve
-- 
steve@silug.org           | Southern Illinois Linux Users Group
(618)398-7360             | See web site for meeting details.
Steven Pritchard          | http://www.silug.org/
-
To unsubscribe, send email to majordomo@silug.org with
"unsubscribe silug-discuss" in the body.