From owner-freebsd-questions@FreeBSD.ORG Wed Jan 11 11:00:05 2012 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 47A1C1065672 for ; Wed, 11 Jan 2012 11:00:05 +0000 (UTC) (envelope-from amitabhkant@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id F37528FC0A for ; Wed, 11 Jan 2012 11:00:04 +0000 (UTC) Received: by vcbfk1 with SMTP id fk1so670527vcb.13 for ; Wed, 11 Jan 2012 03:00:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; bh=TERlqHr53QK18U4m3oaEp8eC0WzfzxGcCOcGlr8er6A=; b=hnuwsmb9ok0ihYoOqbjI5FpB/WZWoOhXMX0jRjt9tz5DPwVQcnpI/E7UzW/AYAsYA1 34A3c/rvP0aab6LdSIMGlMY8aCfLC0QVSDC1zQYy2r2vVJ8YvbTgcJDxR8BUmrgjXVLU tiXI5BvVoJEi0v0zwCDMod15ww4t6OvhJv+aU= Received: by 10.220.153.134 with SMTP id k6mr13619159vcw.23.1326279604150; Wed, 11 Jan 2012 03:00:04 -0800 (PST) MIME-Version: 1.0 Received: by 10.52.18.239 with HTTP; Wed, 11 Jan 2012 02:59:43 -0800 (PST) From: Amitabh Kant Date: Wed, 11 Jan 2012 16:29:43 +0530 Message-ID: To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: mkisofs increasing iso size by 100 MB 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, 11 Jan 2012 11:00:05 -0000 I am trying to customise the bsdinstall auto script. I can mount the iso (amd64 arch / 9.0 RELEASE) and change the shell script as per my requirement. Once I try to re-create the iso file using mkisofs utility, the size of the final iso increases by 100 MB if -J (joliet) mode is used. If I remove the joliet mode, it still increases by around 97 MB. Even if no changes are made to any of the files, the result is same. The process I have followed is as follows: # mkdir /usr/iso # cd /usr/iso # dd if=/dev/cd0 of=org.iso bs=2048 # mdconfig -a -t vnode -f org.iso -u 0 # mount_cd9660 /dev/md0 /mnt # mkdir staging # cd staging # rsync -a /mnt/ . With Joliet mode # mkisofs -J -R -V CustomBSD -no-emul-boot -b boot/cdboot -iso-level 3 -o /usr/iso/my_custom.iso . Without Joliet mode # mkisofs -R -V CustomBSD -no-emul-boot -b boot/cdboot -iso-level 3 -o /usr/iso/my_custom1.iso . The original iso is 612M, custom.iso is 712M and custom1.iso is 709M. System details: FreeBSD amd64 9.0 RELEASE running inside a virtualbox with 2GB RAM. Where am I going wrong? Amitabh