From owner-freebsd-questions@FreeBSD.ORG Fri Mar 18 18:54:22 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 0B9BA16A4CE; Fri, 18 Mar 2005 18:54:22 +0000 (GMT) Received: from smtp04.mrf.mail.rcn.net (smtp04.mrf.mail.rcn.net [207.172.4.63]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7303A43D58; Fri, 18 Mar 2005 18:54:21 +0000 (GMT) (envelope-from stuartb@4gh.net) Received: from 208-59-171-35.c3-0.slvr-ubr2.lnh-slvr.md.cable.rcn.com (HELO freeman.4gh.net) (208.59.171.35) by smtp04.mrf.mail.rcn.net with ESMTP; 18 Mar 2005 13:54:20 -0500 X-IronPort-AV: i="3.91,102,1110171600"; d="scan'208"; a="12305527:sNHT55825874" Received: by freeman.4gh.net (Postfix, from userid 1001) id 5C68070; Fri, 18 Mar 2005 13:54:20 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by freeman.4gh.net (Postfix) with ESMTP id 5862153; Fri, 18 Mar 2005 13:54:20 -0500 (EST) Date: Fri, 18 Mar 2005 13:54:20 -0500 (EST) From: Stuart Barkley To: Mikhail Teterin In-Reply-To: <200503171502.18784.mi+mx@aldan.algebra.com> Message-ID: <20050318133722.W6598@freeman.4gh.net> References: <200503171502.18784.mi+mx@aldan.algebra.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: questions@FreeBSD.org cc: multimedia@FreeBSD.org Subject: Re: adding a directory to a CD-image (.iso) 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: Fri, 18 Mar 2005 18:54:22 -0000 On Thu, 17 Mar 2005 at 15:02 -0500, Mikhail Teterin wrote: > I donwloaded an .iso-image (Solaris 10, actually), which is about > 2.7Gb. > > Before burning it to a DVD, I'd like to add a directory to the > image. Is there a way to do it with tools available on FreeBSD -- > mkisofs, growisofs, etc? > > I don't want to recreate the main image from scratch, as I'm sure, > I'll get the options wrong and it will not boot :-) Can I just add a > directory to the existing iso8859 filesystem? I have not done this but think you should be looking into making a multi-session DVD. This should be easy. Method 1 (should be easy and direct): Just burn the original DVD image with growisofs in multi-session mode (the default): growisofs -Z /dev/dvd=image.iso You should then be able to directly add your new files with: growisofs -M /dev/dvd -R -J /more/files Method 2 (probably more appropriate for a CD image): Use mkisofs to create a second session .iso file. Something like: mkisofs -o second.iso -C -M image.iso -R -J /more/files You might need to burn the first session and use burncd/cdrecord or something to get the magic numbers for the -C option. Stuart -- I've never been lost; I was once bewildered for three days, but never lost! -- Daniel Boone