From owner-freebsd-questions@FreeBSD.ORG Tue Jan 12 19:56:48 2010 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 086E01065692 for ; Tue, 12 Jan 2010 19:56:48 +0000 (UTC) (envelope-from caugar@gmail.com) Received: from mail-iw0-f177.google.com (mail-iw0-f177.google.com [209.85.223.177]) by mx1.freebsd.org (Postfix) with ESMTP id C4A878FC17 for ; Tue, 12 Jan 2010 19:56:47 +0000 (UTC) Received: by iwn7 with SMTP id 7so7397247iwn.7 for ; Tue, 12 Jan 2010 11:56:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=Kz/m9Zc9AV1uFNlL08LNRnCMH51ZyD/DHYCqyUi9Fbg=; b=XPqux25rX0OB/1b8Spsmr/Wb7OToOK2XYKURmlSue6HO9wZzA1/KoOJpP04CclgMEv YCda/p9LcmnYUVH9vaKB0Z+2pKJJQBxuCzYyiaqC/WUKNQJVX8+9hertah4ohEkAut26 CEjqT+n5kpmwnRhjCeX95KWA1DStEHiXFstUw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=NaEf4Sb2570AOWzWiFOvF+hTRwmG97OiguxIzkS1POMQUUUbxlZ+ddvwSuF6yHL5mB VyGtoP/QmOSolp5p4zUyOileAwptlUfdURwqW/6YhR35bewNCsM1r7nSIyAjOQgorSTV dtbrPxWI8Iz/zHJZ8Gu8n8p9plMSfb4OpkUBk= MIME-Version: 1.0 Received: by 10.231.156.205 with SMTP id y13mr285023ibw.27.1263326198598; Tue, 12 Jan 2010 11:56:38 -0800 (PST) In-Reply-To: <20100110000633.G8593@sola.nimnet.asn.au> References: <20100109074733.9E5EA106574A@hub.freebsd.org> <20100110000633.G8593@sola.nimnet.asn.au> Date: Tue, 12 Jan 2010 11:56:38 -0800 Message-ID: <69fec4521001121156m2f85f06eqc530547cbb6b3479@mail.gmail.com> From: Knight Tiger To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: ISO image size -regarding 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: Tue, 12 Jan 2010 19:56:48 -0000 Hi, To update all, I followed Roland's suggestion and installed isomaster and just opened the iso file (1GB) and saved it again and it 'magically' shrank to 570 MB. The new ISO was burned and tested on a physical machine and it works fine. Thanks Roland ! I tried Ian's suggestion and copied from the ISO file and can confirm that his recommended changes did the trick and the ripped files only measure 570 MB making it easier to use mkisofs . Thanks Ian ! Cheers Scott On Sat, Jan 9, 2010 at 6:04 AM, Ian Smith wrote: > In freebsd-questions Digest, Vol 292, Issue 14, Message: 12 > On Fri, 8 Jan 2010 16:41:24 -0800 Knight Tiger wrote: > =A0> Hi, > =A0> > =A0> I am trying to create a custom ISO image of FreeBSD 6.4. The only > =A0> difference between the release ISO and this custom image is a modifi= ed > =A0> driver (amdsmb.ko). I did not create the new driver. I believe it wa= s > =A0> backported from a later release. > =A0> > =A0> I understand that this is not a backport of the driver =A0but a hack= but > =A0> the ISO size surprises me. > =A0> > =A0> The steps I had followed (listed below) resulted in an ISO image of > =A0> around 1 GB while the original ISO image is around 600 MB. The new > =A0> image work boots fine but I am not sure why it is huge > =A0> > =A0> Steps: > =A0> > =A0> // mount the release ISO > =A0> # mdconfig -a -t vnode -f 6.4-RELEASE-i386-disc1.iso -u 0 > =A0> # mount_cd9660 /dev/acd0 /mnt > =A0> > =A0> # pwd > =A0> /usr/home/scott > =A0> > =A0> # mkdir custom > =A0> # cd custom > =A0> > =A0> // copy iso files to custom > =A0> # rsync =A0-a /mnt . > > Hi Scott, > > nearly all in /rescue are hardlinks to one big executable, and there are > also hardlinks in /bin and /sbin, hence your size difference. =A0rsync(1)= : > > =A0 =A0 =A0 =A0 =A0 =A0 =A0Note that -a does not preserve hardlinks, beca= use finding multi- > =A0 =A0 =A0 =A0 =A0 =A0 =A0ply-linked =A0files is expensive. =A0You must = separately specify -H. > =A0 =A0 =A0 =A0 =A0 =A0 =A0Note also that for compatibility, -a currently= does not =A0include > =A0 =A0 =A0 =A0 =A0 =A0 =A0--flags =A0(see there) to include preserving c= hange file flags (if > =A0 =A0 =A0 =A0 =A0 =A0 =A0supported by the OS). > > =A0> # scp scott@remote:/boot/kernel/amdsmb.ko boot/kernel/. > =A0> > =A0> // wrap up in a ISO > =A0> # cd .. > =A0> #mkisofs -R -b boot/cdboot -no-emul-boot -o custom.iso custom > =A0> > =A0> The ISO file is created successfully but is huge. I mounted it in > =A0> VirtualBox and boots just fine. I was able to install the OS (althou= gh > =A0> I have not checked the functionality of amdsmb changes yet) > =A0> > =A0> I looked up information on creating custom ISO images but they had a= ll > =A0> involved rebuilding the kernel while I am not sure if I need to do t= he > =A0> same Any leads is appreciated. > > Yes, running make release might be just a tad over the top for this :) > > cheers, Ian >