From owner-freebsd-questions@FreeBSD.ORG Wed May 19 07:12:21 2004 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 A4ECC16A4CE for ; Wed, 19 May 2004 07:12:21 -0700 (PDT) Received: from web40312.mail.yahoo.com (web40312.mail.yahoo.com [66.218.78.91]) by mx1.FreeBSD.org (Postfix) with SMTP id 8244643D2D for ; Wed, 19 May 2004 07:12:21 -0700 (PDT) (envelope-from satimis@yahoo.com) Message-ID: <20040519141221.82309.qmail@web40312.mail.yahoo.com> Received: from [203.88.168.100] by web40312.mail.yahoo.com via HTTP; Wed, 19 May 2004 22:12:21 CST Date: Wed, 19 May 2004 22:12:21 +0800 (CST) From: =?iso-8859-1?q?Stephen=20Liu?= To: Malcolm Kay , freebsd-questions@freebsd.org In-Reply-To: <200405192238.18517.malcolm.kay@internode.on.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Subject: Re: Creating ISO image question (PROBLEM SOLVED) 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: Wed, 19 May 2004 14:12:21 -0000 Hi Malcolm, Tks for your advice. You understand my need completely. Problem is now solved as stated at the bottom of this posting. > I believe that in case 1) you want to see the > directory usr on the final CD containing > subdirectory home etc. > > And in instance 2) you want to see the > directory user-A on the final CD containing > document-AAA etc. > > In the command > mkisofs -r -J -o cd_image.iso dir/ > the directory 'dir' does not actually appear on the > CD. At the top level the CD would contain the files > and subdirectories appearing in 'dir/'. > > To get the full sequence > 'user-A/document-AAA/subdirectories/..' > to appear on the CD you would need > mkisofs -r -J -o cd_image.iso /usr/home/ > But unfortaunately this will include all under home; > not > just user-A/document-AAA. The simplest way to > achieve what I > believe you want in instance 2) is to create a > temporary tree of > what you want to see on the CD: > mkdir tree > mkdir tree/user-A > cp -Rp /usr/home/user-A/document-AAA tree/user-A > mkisofs -r -J -o cd_image.iso tree > (The mkisofs options are just an example -- probably > not what you > want) > Now you can remove the temporary tree: > rm -R tree I don't expect it would be so complicate on FreeBSD. It is rather simple on Linux. > You might be able to avoid this copying using the > mkisofs > option -graft-points ; but I have no experience with > this. SOLUTION; $ mkisofs -U -R -o cdimage.raw -graft-points \ usr/home/user-A/document-AAA/=/usr/home/user-A/document-AAA 2 (two) folders then created; 1) user. Under this folder usr/home/user-A/document-AAA/subdirectories+files (full path) 2) rr_remove This is an empty folder I don't know how to get rid of the empty folder 'rr_remove'. If no solution I will burn a CD to test Lot of thanks for your HINT B.R. Stephen _______________________________________________________________________ Do You Yahoo!? Get your free @yahoo.com.hk address at http://mail.english.yahoo.com.hk