From owner-freebsd-questions@FreeBSD.ORG Wed May 19 06:09:19 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 1EE5716A4CE for ; Wed, 19 May 2004 06:09:19 -0700 (PDT) Received: from smtp3.adl2.internode.on.net (smtp3.adl2.internode.on.net [203.16.214.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id 55FC243D41 for ; Wed, 19 May 2004 06:09:18 -0700 (PDT) (envelope-from malcolm.kay@internode.on.net) Received: from beta.home (ppp33-50.lns1.adl1.internode.on.net [150.101.33.50]) i4JD8Jk2050902; Wed, 19 May 2004 22:38:19 +0930 (CST) From: Malcolm Kay Organization: at home To: Stephen Liu , freebsd-questions@freebsd.org Date: Wed, 19 May 2004 22:38:18 +0930 User-Agent: KMail/1.5.4 References: <20040517112834.47743.qmail@web40306.mail.yahoo.com> In-Reply-To: <20040517112834.47743.qmail@web40306.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200405192238.18517.malcolm.kay@internode.on.net> Subject: Re: Creating ISO image question 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 13:09:19 -0000 On Monday 17 May 2004 20:58, Stephen Liu wrote: > HI folks, > > I tried to solve following questions on creating ISO > image with reference to 'man mkisofs' but could not > resolve; > > Tree of diectories e.g. > > /usr/home/user-A/document-AAA/subdirectories > > 1) To include the complete tree starting from > /user-A/document-AAA/subdirectories > > 2) To include the complete tree starting from > /document-AAA/subdirectories > You have many responses but I think thay have not really understood your difficulty; or maybe it is I who has not understood. 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 You might be able to avoid this copying using the mkisofs option -graft-points ; but I have no experience with this. Good luck Malcolm