From owner-freebsd-questions@FreeBSD.ORG Wed Oct 31 10:10:47 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7DF1016A469 for ; Wed, 31 Oct 2007 10:10:47 +0000 (UTC) (envelope-from sonicy@otenet.gr) Received: from rosebud.otenet.gr (rosebud.otenet.gr [195.170.0.94]) by mx1.freebsd.org (Postfix) with ESMTP id F34A713C4B8 for ; Wed, 31 Oct 2007 10:10:46 +0000 (UTC) (envelope-from sonicy@otenet.gr) Received: from atlantis.dyndns.org (athedsl-319292.home.otenet.gr [85.72.102.218]) by rosebud.otenet.gr (8.13.8/8.13.8/Debian-3) with ESMTP id l9UMNHt9011083; Wed, 31 Oct 2007 00:23:18 +0200 Message-ID: <4727AED5.2080009@otenet.gr> Date: Wed, 31 Oct 2007 00:23:17 +0200 From: Manolis Kiagias User-Agent: Thunderbird 2.0.0.5 (X11/20070727) MIME-Version: 1.0 To: Martin McCormick References: <200710301402.l9UE21A2093919@dc.cis.okstate.edu> In-Reply-To: <200710301402.l9UE21A2093919@dc.cis.okstate.edu> Content-Type: text/plain; charset=ISO-8859-7 Content-Transfer-Encoding: 7bit Cc: "freebsd-questions@freebsd.org" Subject: Re: tar Ignoring out-of-order file What Does that Mean? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Oct 2007 10:10:47 -0000 Martin McCormick wrote: > I need to modify the first installation image for a > headless installation of Freebsd6.2. The file in question is: > > 6.2-RELEASE-i386-disc1.iso > > Thanks to a helpful member of the list, I found out that > tar works on unpacking these images and it mostly does on this > one, but there is a complaint I get from tar that I haven't > found on other images. If I do a > > tar tvf 6.2-RELEASE-i386-disc1.iso > > Here is what happens while looking at the contents list: > > 0 44232 Jan 12 2007 RELNOTES.HTM lr-xr-xr-x 1 0 0 > 0 Jan 12 2007 stand -> /rescue lr-xr-xr-x 1 0 0 0 > Jan 12 2007 sys -> usr/src/systar: Ignoring out-of-order file > > -r--r--r-- 1 0 0 22916 Jan 12 2007 RELNOTES.TXT > > It appears that the entire image unpacks except for the > ignored file. If one tries the extraction with > > tar xf 6.2-RELEASE-i386-disc1.iso > > The complaint about the out-of-order file is the only indication > that anything is wrong. > > In looking at the man page for tar, nothing jumps out at > me as to how to end up with the proper file structure that > mkisofs can put back in to an image to put on a CDROM. > > My thanks for any suggestions as I may be needing to do > one of these installs in a day or so and it would be nice to > know that all the image is there. > > Martin McCormick WB5AGZ Stillwater, OK > Systems Engineer > OSU Information Technology Department Network Operations Group > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > > This is probably not a direct answer to your question, but might be helpful: ISO images can be mounted as filesystems. In linux you would do something like mount -o loop /path/to/your.iso /path/to/mnt In FreeBSD, you would need to create a memory disk and mount it, i.e. mdconfig -a -f /path/to/your.iso (response) md0 mount -t cd9660 /dev/md0 /path/to/mnt you can then copy the files, and modify what you need. In order to make boot CDs again, you would need to use cdrecord with suitable options, which I don't remember by heart. BUT, you may look at the instructions on the following page: http://www.pa.msu.edu/~tigner/bsddvd.html there are instructions to create a bootable DVD from FreeBSD cdroms, and I can confirm the procedure works perfectly.