From owner-freebsd-questions@FreeBSD.ORG Sat Jan 9 01:12:23 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 A98FE106566B for ; Sat, 9 Jan 2010 01:12:23 +0000 (UTC) (envelope-from caugar@gmail.com) Received: from mail-iw0-f198.google.com (mail-iw0-f198.google.com [209.85.223.198]) by mx1.freebsd.org (Postfix) with ESMTP id 76CE68FC17 for ; Sat, 9 Jan 2010 01:12:23 +0000 (UTC) Received: by iwn36 with SMTP id 36so13496834iwn.3 for ; Fri, 08 Jan 2010 17:12:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=KCINxq4e2oXwaP4abIHMpKxuPNpJq2Q/ZGAH2oI7lnk=; b=Ia+iYSYgNtZ3gwJGKn2kwuEoX49IB3IBqRNksTUhp5VvoXUaOMK3BwYZrDVojzt9RF qfyrCk369Zyz8d6nvmiBAy3Iqqk8rTMf3ZiLBjBSqwhZJq+oMt11whiZq7KHZwz8TRy6 x5j/GFRzR8KzhkgaGeuo/wTfEjqGFVMsg7qZ0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=JJmOz1h2jIF2w+NsnpW7g4qBYHQKey2z2IXdHqccqQibqlB+EDzvcDkGDvBPFP29BR qvEGdnzEVhuCCmeIChI7PoPt6NgXS8k+/CELwe2qtHwff7bEwHVTHA4iAjlx+DzYq4hz wrOZlaru/7MEOxURElKAAMTV3bs40CFrTPOV0= MIME-Version: 1.0 Received: by 10.231.122.139 with SMTP id l11mr3319173ibr.53.1262997684929; Fri, 08 Jan 2010 16:41:24 -0800 (PST) Date: Fri, 8 Jan 2010 16:41:24 -0800 Message-ID: <69fec4521001081641q4aec5788n25f0bf2ecbe49d16@mail.gmail.com> From: Knight Tiger To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: 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: Sat, 09 Jan 2010 01:12:23 -0000 Hi, I am trying to create a custom ISO image of FreeBSD 6.4. The only difference between the release ISO and this custom image is a modified driver (amdsmb.ko). I did not create the new driver. I believe it was backported from a later release. I understand that this is not a backport of the driver but a hack but the ISO size surprises me. The steps I had followed (listed below) resulted in an ISO image of around 1 GB while the original ISO image is around 600 MB. The new image work boots fine but I am not sure why it is huge Steps: // mount the release ISO # mdconfig -a -t vnode -f 6.4-RELEASE-i386-disc1.iso -u 0 # mount_cd9660 /dev/acd0 /mnt # pwd /usr/home/scott # mkdir custom # cd custom // copy iso files to custom # rsync -a /mnt . # scp scott@remote:/boot/kernel/amdsmb.ko boot/kernel/. // wrap up in a ISO # cd .. #mkisofs -R -b boot/cdboot -no-emul-boot -o custom.iso custom The ISO file is created successfully but is huge. I mounted it in VirtualBox and boots just fine. I was able to install the OS (although I have not checked the functionality of amdsmb changes yet) I looked up information on creating custom ISO images but they had all involved rebuilding the kernel while I am not sure if I need to do the same Any leads is appreciated. Thanks Scott