From owner-freebsd-questions@FreeBSD.ORG Mon Nov 9 18:56:34 2009 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 BD085106566C for ; Mon, 9 Nov 2009 18:56:34 +0000 (UTC) (envelope-from psteele@maxiscale.com) Received: from server505.appriver.com (server505c.appriver.com [98.129.35.7]) by mx1.freebsd.org (Postfix) with ESMTP id 85C788FC08 for ; Mon, 9 Nov 2009 18:56:34 +0000 (UTC) X-Policy: GLOBAL - maxiscale.com X-Primary: psteele@maxiscale.com X-Note: This Email was scanned by AppRiver SecureTide X-ALLOW: psteele@maxiscale.com ALLOWED X-Virus-Scan: V- X-Note: Spam Tests Failed: X-Country-Path: UNITED STATES->UNITED STATES->UNITED STATES X-Note-Sending-IP: 98.129.23.14 X-Note-Reverse-DNS: ht01.exg5.exghost.com X-Note-WHTLIST: psteele@maxiscale.com X-Note: User Rule Hits: X-Note: Global Rule Hits: 112 113 114 115 119 120 131 217 X-Note: Mail Class: ALLOWEDSENDER X-Note: Headers Injected Received: from [98.129.23.14] (HELO ht01.exg5.exghost.com) by server505.appriver.com (CommuniGate Pro SMTP 5.2.14) with ESMTPS id 16070254 for freebsd-questions@freebsd.org; Mon, 09 Nov 2009 12:56:33 -0600 Received: from mbx03.exg5.exghost.com ([169.254.1.164]) by ht01.exg5.exghost.com ([98.129.23.14]) with mapi; Mon, 9 Nov 2009 12:56:33 -0600 From: Peter Steele To: "freebsd-questions@freebsd.org" Date: Mon, 9 Nov 2009 12:56:30 -0600 Thread-Topic: Converting a bootable USB stick in to bootable CD-ROM Thread-Index: Acphbll5+nTYrOVQRBemo0fe/qSDqg== Message-ID: <7B9397B189EB6E46A5EE7B4C8A4BB7CB3394F260@MBX03.exg5.exghost.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Converting a bootable USB stick in to bootable CD-ROM 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: Mon, 09 Nov 2009 18:56:34 -0000 I have a FreeBSD image that I install on USB sticks to build new systems. W= hen the stick boots it automatically clones itself on the system's hard dri= ve, creating partitions and other configuration parameters that are program= med into the stick's cloning logic. I want to create a similar mechanism us= ing a bootable CD-ROM. The biggest difference in the process of course is t= hat the CD-ROM itself is read-only so clearly there needs to be an mfsroot = involved in the process. I looked at how the FreeBSD Live CD is setup and t= he loader.conf file has these lines: mfsroot_load=3D"YES" mfsroot_type=3D"mfs_root" mfsroot_name=3D"/boot/mfsroot" along with the file /boot/mfsroot.gz and no /etc/fstab. I copied this into = my BSD image and duplicated the mfsroot settings in my loader.conf. I use the command below to create the iso file from the BSD image I've prep= ared. mkisofs -R -no-emul-boot -o /tmp/bsd.iso -b boot/cdboot /bsd When this iso is copied to a CD, it does boot. However, it doesn't seem to = be picking up the mfsroot config and complains that the system is running f= rom on a read-only file system. What step am I missing?