Re: mkisofs and growisofs

2005-01-09 Thread The FAQchest
Make ISO file system
Generates a file matching with ISO9660 specification and with various 
extensions, such as rock-ridge extensions to go beyond 9660 limitations 
(file names and folder nesting). I use mkisofs to create backups.

Such files can be mounted using the loop device.
See this script.
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.



create_an_ISO_backup-IMAP.sh
Description: Binary data
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: mkisofs and growisofs

2005-01-09 Thread The FAQchest
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 21
  logger -t $MENAME[$$] Creating ISOimage $IMAGFILE /dev/null 21
  rm -f $IMAGFILE 2- 11
  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 21

  if [ ! -s $IMAGFILE ]; then
date '+===done=== %c'  $LOGFILE 21
logger -t $MENAME[$$] Failed creating ISOimage $IMAGFILE  
/dev/null 21
  else
ls -al $IMAGFILE  $LOGFILE 21
chown nobody:nobody $IMAGFILE /dev/null 21
date '+===done=== %c'  $LOGFILE 21
logger -t $MENAME[$$] done /dev/null 21
  fi
  cd $memdir
  exit 0

) 
exit 0
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: mkisofs and growisofs

2005-01-09 Thread Fabian Keil
On Sunday 09 January 2005 14:46, 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.

/usr/ports/sysutils/dvd+rw-tools/ contains growisofs,
mkisofs is part of /usr/ports/sysutils/cdrtools.

Regards
Fabian
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: mkisofs and growisofs

2005-01-09 Thread Mike Jeays
On Sun, 2005-01-09 at 09:58, Fabian Keil wrote:
 On Sunday 09 January 2005 14:46, 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.
 
 /usr/ports/sysutils/dvd+rw-tools/ contains growisofs,
 mkisofs is part of /usr/ports/sysutils/cdrtools.
 
 Regards
 Fabian
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]

Thanks very much.  They both installed fine once I was told where they
are!


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: mkisofs and growisofs

2005-01-09 Thread Tom Vilot
Mike Jeays wrote:
Thanks very much.  They both installed fine once I was told where they
are!
My avenue of last resort is this:
cd /usr/ports
find . -type f -name pkg-descr | xargs grep -i name
where name is what I remember the program name to be (cdrecord, etc)
Also kinda handy if you have no idea what the name is but you know you 
want something like, say, audio compression:

cd /usr/ports/audio
find . -type f -name pkg-descr | xargs grep -i compres
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: mkisofs and growisofs

2005-01-09 Thread Mike Jeays
On Sun, 2005-01-09 at 11:35, Tom Vilot wrote:
 Mike Jeays wrote:
 
 Thanks very much.  They both installed fine once I was told where they
 are!
 
 
 My avenue of last resort is this:
 
 cd /usr/ports
 find . -type f -name pkg-descr | xargs grep -i name
 
 where name is what I remember the program name to be (cdrecord, etc)
 
 Also kinda handy if you have no idea what the name is but you know you 
 want something like, say, audio compression:
 
 cd /usr/ports/audio
 find . -type f -name pkg-descr | xargs grep -i compres
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]

I tried 'find /usr/ports -name mkiso*' before submitting my question.
It yielded nothing because mkisofs is 'hidden' inside cdrtools. I guess
I ought to have known this, as I have used if for a couple of years, but
I had forgotten.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: mkisofs and growisofs

2005-01-09 Thread John Conover
Mike Jeays writes:
 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.

They are in cdrtools:

pkg_add -r cdrtools

or on the third or forth disk of the bsdmall set.

John

-- 

John Conover, [EMAIL PROTECTED], http://www.johncon.com/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: mkisofs and growisofs

2005-01-09 Thread Louis LeBlanc
On 01/09/05 12:24 PM, Mike Jeays sat at the `puter and typed:
 On Sun, 2005-01-09 at 11:35, Tom Vilot wrote:
  Mike Jeays wrote:
  
  Thanks very much.  They both installed fine once I was told where they
  are!
  
  
  My avenue of last resort is this:
  
  cd /usr/ports
  find . -type f -name pkg-descr | xargs grep -i name
  
  where name is what I remember the program name to be (cdrecord, etc)
  
  Also kinda handy if you have no idea what the name is but you know you 
  want something like, say, audio compression:
  
  cd /usr/ports/audio
  find . -type f -name pkg-descr | xargs grep -i compres
  ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to [EMAIL PROTECTED]
 
 I tried 'find /usr/ports -name mkiso*' before submitting my question.
 It yielded nothing because mkisofs is 'hidden' inside cdrtools. I guess
 I ought to have known this, as I have used if for a couple of years, but
 I had forgotten.

A more typical search is:
cd /usr/ports
make search key=mkiso

This may or may not yield anything useful.  I tend to use the Jeffrey
Friedl search tool, which is a much faster implementation of the 
find . -type f -name pkg-descr | xargs grep -i name
method.

Many people will recognize his name.  He literally wrote the book on
regular expressions.  This tool is probably the one I use more than
any other when looking for something.  Second thing I use when I know
all or part of the file name is locate(1).

I found it some 5 or 6 years ago - Jeffrey wrote it in 1994, and I
have (fortunately) been able to hang on to it ever since.  The license
is open:
## Jeffrey Friedl ([EMAIL PROTECTED]), Dec 1994.
## Copyright 19 ah hell, just take it.

Good man, that Jeffrey.

I haven't been able to find any definitive update, but it hasn't
required any more modification than the perl path over the years.

I'll put my copy at the following URL for a while in case anyone wants
it: http://ww2.keyslapper.org/search

Lou
-- 
Louis LeBlanc   [EMAIL PROTECTED]
Fully Funded Hobbyist, KeySlapper Extrordinaire :)
http://www.keyslapper.org ԿԬ

It is fruitless:
  to attempt to indoctrinate a superannuated canine with
  innovative maneuvers.  (you can't teach an old dog new tricks)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: mkisofs and growisofs

2005-01-09 Thread Danny MacMillan
On Sun, Jan 09, 2005 at 01:52:16PM -0500, Louis LeBlanc wrote:
 
 [Jeffrey Friedl Search Tool]
 
 I'll put my copy at the following URL for a while in case anyone wants
 it: http://ww2.keyslapper.org/search

It appears that that should read:

http://www.keyslapper.org/search

or

http://ww2.keyslapper.org:8080/search

-- 
Danny
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: mkisofs and growisofs

2005-01-09 Thread Louis LeBlanc
On 01/09/05 05:02 PM, Danny MacMillan sat at the `puter and typed:
 On Sun, Jan 09, 2005 at 01:52:16PM -0500, Louis LeBlanc wrote:
  
  [Jeffrey Friedl Search Tool]
  
  I'll put my copy at the following URL for a while in case anyone wants
  it: http://ww2.keyslapper.org/search
 
 It appears that that should read:
 
 http://www.keyslapper.org/search
 
 or
 
 http://ww2.keyslapper.org:8080/search

Doh!  Thanks for the correction!  I hafta get an ISP that doesn't
block port 80.

Lou
-- 
Louis LeBlanc   [EMAIL PROTECTED]
Fully Funded Hobbyist, KeySlapper Extrordinaire :)
http://www.keyslapper.org ԿԬ

Bride, n.:
  A woman with a fine prospect of happiness behind her.
-- Ambrose Bierce, The Devil's Dictionary
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]