From owner-freebsd-questions@FreeBSD.ORG Sat Aug 11 00:23:57 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 5535416A419 for ; Sat, 11 Aug 2007 00:23:57 +0000 (UTC) (envelope-from doug@fledge.watson.org) Received: from fledge.watson.org (fledge.watson.org [209.31.154.41]) by mx1.freebsd.org (Postfix) with ESMTP id D977F13C46B for ; Sat, 11 Aug 2007 00:23:56 +0000 (UTC) (envelope-from doug@fledge.watson.org) Received: from fledge.watson.org (localhost.watson.org [127.0.0.1]) by fledge.watson.org (8.14.1/8.14.1) with ESMTP id l7B0Ntlp001732; Fri, 10 Aug 2007 20:23:55 -0400 (EDT) (envelope-from doug@fledge.watson.org) Received: from localhost (doug@localhost) by fledge.watson.org (8.14.1/8.14.1/Submit) with ESMTP id l7B0NsPj001729; Fri, 10 Aug 2007 20:23:54 -0400 (EDT) (envelope-from doug@fledge.watson.org) Date: Fri, 10 Aug 2007 20:23:54 -0400 (EDT) From: doug To: Sergio Lenzi In-Reply-To: <1186785980.71492.6.camel@localhost> Message-ID: <20070810200339.K99473@fledge.watson.org> References: <20070810133045.B99453@fledge.watson.org> <1186785980.71492.6.camel@localhost> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: questions Subject: Re: Can not make a 6.2 ISO image X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: doug@safeport.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Aug 2007 00:23:57 -0000 On Fri, 10 Aug 2007, Sergio Lenzi wrote: > The problem is in the rescue directory of the CD/DVD the directory have hard > links that when copied with tar, transforms in full files without the > links.... I think the problem is in libarchive.. as the old 5.4 FreeBSD does > copy the rescue as expected.... > > a small script fix the rescue links is: assume that your freebsd directory is > in /mnt > > > ========================== > #!/bin/sh > > cd /mnt/rescue > lista=`ls | grep -v \\\[` > for i in $lista > do > ln -f [ $i > done > echo done > ======================== > > Sergio > Sergio: Thanks - your script works perfectly. I also found a post from Alexander Anderson: Date: Wed, 4 Apr 2007 07:03:45 -0500 From: Alexander Anderson To: freebsd-questions@freebsd.org Subject: Re: ISO Image Size Increasing with a perl script that seems to do what your shell script, which worked perfectly, does. Your script reduced the iso size to about 625MB which makes things work nicely. I also found a guide to making a custom installation iso: http://romana.now.ie/writing/customfreebsdiso.html. This would be a great addition to the handbook. Alexander's post has a clear explanation of the problem: "Hmm, the problem is that there is no good way to know that two files are hardlinks on a 9660 filesystem. 9660 doesn't have a concept of inodes as is common in standard unix filesystems. Instead, the information about the file is stored in the directory entry. This means that the two directory entries pointing to the same data blocks may in fact describe two different files (e.g. the may have different owner or permission, or they may even differ in size!). Currently, the inode number shown by 9660 is just the offset of the directory entry of the file relative to the disk/partition, with the special case for directories, where we use the start of the directory itself, i.e. the offset of the '.' entry. This way, it's quite easy to determine the file attributes given the inode number." Hence my misunderstanding / confusion. Thanks to all who replied.