From owner-freebsd-questions@FreeBSD.ORG Sun Jan 9 14:09:23 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2BE6D16A4CE for ; Sun, 9 Jan 2005 14:09:23 +0000 (GMT) Received: from smtp1.wanadoo.fr (smtp1.wanadoo.fr [193.252.22.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id 84D8D43D2F for ; Sun, 9 Jan 2005 14:09:22 +0000 (GMT) (envelope-from genefaq@abac.com) Received: from me-wanadoo.net (mail.domain.com [127.0.0.1]) by mwinf0102.wanadoo.fr (SMTP Server) with ESMTP id E53921FFFCE2; Sun, 9 Jan 2005 15:09:21 +0100 (CET) Received: from [192.168.1.3] (AMarseille-151-1-12-209.w82-122.abo.wanadoo.fr [82.122.202.209]) by mwinf0102.wanadoo.fr (SMTP Server) with ESMTP id 667101FFFD3C; Sun, 9 Jan 2005 15:09:21 +0100 (CET) In-Reply-To: <1105278401.624.21.camel@chaucer> References: <1105278401.624.21.camel@chaucer> Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <17922C6C-6248-11D9-A23B-000393932C94@abac.com> Content-Transfer-Encoding: 7bit From: The FAQchest Date: Sun, 9 Jan 2005 15:09:35 +0100 To: Mike Jeays X-Mailer: Apple Mail (2.619) cc: freebsd-questions@freebsd.org Subject: Re: mkisofs and growisofs X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Jan 2005 14:09:23 -0000 Oops, forgot ... along the time, command line switches have changed from one version of mkisofs to another. And you can burn the ISO image onto a CD, provided it doesn't get bigger than the capacity of your CD-R media. The mount command is: #> mount myisoimagefile.iso /mnt/test -t iso9660 -o loop #> unmount /mnt/test Rgds, Thierry On Jan 9, 2005, at 2:46 PM, Mike Jeays wrote: > Where are they? They don't seem to exist on my 5.3 system, and I can't > find any trace of them in /usr/ports. pkg_add -r doesn't find them > either. > #!/bin/bash # # Backup utility created by Thierry de Villeneuve to # generate an ISO9660 image to be burned on a CD-ROM # # Not Copyrighted material # # This software is provided "as is" without warranty of any kind, whether # express or implied, including but not limited to any implied warranty of # satisfactory quality or fitness for a particular purpose, or of non- # infringement of any third party's proprietary rights. # # ########################### TVN standard CVS header ######################### # # $Id: create_an_ISO_backup-IMAP.sh,v 1.2 2002/06/07 21:51:27 thierry Exp $ # # $Revision: 1.2 $ # # $Source: /extra/cvs/thierrys/Shell/create_an_ISO_backup-IMAP.sh,v $ # # $Log: create_an_ISO_backup-IMAP.sh,v $ # Revision 1.2 2002/06/07 21:51:27 thierry # Tracked in CVS # # ######################################################################## ##### # # # Created TVN, 24-Sep-99 # Upated TVN, 20-Mar-01 # # mkisofs version 1.13 minimum is required for this script. # GOODUSER=root MENAME=`basename $0` export DATESTMP=`date '+%Y%m%d'` export HOSTLONG=`hostname` export OSNAME=`uname -s` export MENAME=${MENAME%%.*} export HOSTSHRT=${HOSTLONG%%.*} export LOCKFILE=/var/tmp/$MENAME.lock export LOGFILE=/tmp/$MENAME.log export IMAGFILE=${1:-/extra/isoimages/$OSNAME"-"$HOSTSHRT"- IMAP-"$DATESTMP.iso} whoiam=$(whoami) if [ $whoiam != $GOODUSER ]; then echo Needs to be run only by the user $GOODUSER exit 1 fi basedir=${IMAGFILE%/*} if [ ! -d $basedir ]; then echo "Error: Non existent $basedir. Quitting" exit 1 fi if [ -f $LOCKFILE ]; then echo "Error: Lock file found." echo " $MENAME is already running." echo " if you believe it's not true: delete $LOCKFILE" exit 1 fi if ( tty -s ); then echo "Job is detaching and running in background." fi # Detaching to background ( trap "cd /tmp; rm -f $LOCKFILE 1>&- 2>&-; exit" 0 1 2 3 15 umask 022 touch $LOCKFILE 1>&- 2>&- memdir=$(pwd) cd / # On this machine is loaded mkisofs v 1.13 date "+===start=== Creating `basename $IMAGFILE` on today %c" > $LOGFILE 2>&1 logger -t "$MENAME[$$]" "Creating ISOimage $IMAGFILE" >/dev/null 2>&1 rm -f $IMAGFILE 2>&- 1>&1 mkisofs -A "Backup system of $HOSTSHRT: $DATESTMP" \ -l -L -J -R -graft-points -hide-rr-moved -hide-joliet-trans-tbl \ -o $IMAGFILE -m core -m lost+found \ -x /var/spool/mail/thierryv -x /extra/imap/thierryv \ $HOSTSHRT/etc/=/etc \ $HOSTSHRT/var/spool/mail/=/var/spool/mail \ $HOSTSHRT/extra/imap/=/extra/imap >> $LOGFILE 2>&1 if [ ! -s $IMAGFILE ]; then date '+===done=== %c' >> $LOGFILE 2>&1 logger -t "$MENAME[$$]" "Failed creating ISOimage $IMAGFILE" >/dev/null 2>&1 else ls -al $IMAGFILE >> $LOGFILE 2>&1 chown nobody:nobody $IMAGFILE >/dev/null 2>&1 date '+===done=== %c' >> $LOGFILE 2>&1 logger -t "$MENAME[$$]" "done" >/dev/null 2>&1 fi cd $memdir exit 0 ) & exit 0