From owner-freebsd-questions@FreeBSD.ORG Fri Jun 13 13:51:22 2008 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 B05931065672 for ; Fri, 13 Jun 2008 13:51:22 +0000 (UTC) (envelope-from jhary@unsane.co.uk) Received: from unsane.co.uk (unsane-pt.tunnel.tserv5.lon1.ipv6.he.net [IPv6:2001:470:1f08:110::2]) by mx1.freebsd.org (Postfix) with ESMTP id 0B6D18FC0A for ; Fri, 13 Jun 2008 13:51:21 +0000 (UTC) (envelope-from jhary@unsane.co.uk) Received: from prawn.unsane.co.uk (150.117-84-212.staticip.namesco.net [212.84.117.150]) (authenticated bits=0) by unsane.co.uk (8.14.0/8.14.0) with ESMTP id m5DDoFh4032775 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 13 Jun 2008 14:50:16 +0100 (BST) (envelope-from jhary@unsane.co.uk) Message-ID: <48527B56.2050701@unsane.co.uk> Date: Fri, 13 Jun 2008 14:51:18 +0100 From: Vince Hoffman User-Agent: Thunderbird 2.0.0.14 (X11/20080609) MIME-Version: 1.0 To: "J. Porter Clark" References: <20080612005453.GA26319@auricle.charter.net> <48513559.3000306@FreeBSD.org> <20080612153614.GA32605@auricle.charter.net> <485154D5.3060707@FreeBSD.org> <20080613132352.GA43591@auricle.charter.net> In-Reply-To: <20080613132352.GA43591@auricle.charter.net> X-Enigmail-Version: 0.95.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Nanobsd on a 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: Fri, 13 Jun 2008 13:51:22 -0000 to make a freebsd CDROM bootable you need to use the /boot/cdboot as the loader and make an ISO image. the nanobsd procedure creates a ufs disk image from what I understand. Try mounting the disk image mdconfig -a -t vnode -u 11 -f /path/to/image/_.disk.full mkdir /mnt/image mount /dev/md11 /mnt/image (might be /dev/md11s1a or similar, see whats created and find what works.) Then make an ISO of the mounted nanobsd image mkisofs -J -R -no-emul-boot -b /boot/cdboot \ -iso-level 3 -o nanobsd.iso /mnt/image Then either burn it to CD or install qemu to see if it boots before making another coaster. I havent tried this exactly but this should work, may need polishing though. Vince J. Porter Clark wrote: > On Thu, Jun 12, 2008 at 06:54:45PM +0200, Pietro Cerutti wrote: >> >> J. Porter Clark wrote: >> | On Thu, Jun 12, 2008 at 04:40:25PM +0200, Pietro Cerutti wrote: >> |> J. Porter Clark wrote: >> |> | Is it possible to build a CD-ROM with a bootable NanoBSD on it? >> |> | If so, how? >> |> >> |> Yes, Section 2.2 of >> |> >> |> http://www.freebsd.org/doc/en/articles/nanobsd/index.html >> | >> | Well, no, because I can't do this: >> | >> | # dd if=_.disk.full of=/dev/acd0 bs=64k >> | >> | If I do this: >> | >> | % cdrecord -v -immed driveropts=burnfree dev=1,0,0 -data _.disk.full >> >> Try with burncd >> >> | burncd -f /dev/acd0 data _.disk.full fixate > > No joy. Produces the same disk that cdrecord does, and boots > from hard disk instead. > > I think that this is the problem: The BIOS knows how to boot > from a CD if and only if that CD is an "El Torito" bootable > image. That is, the first sector of the CD is NOT a Master Boot > Record. That's just a hypothesis based on the observation that > all of the successfully bootable CDs I have appear to be in "El > Torito" format. > > I don't have a way to make such an image without using mkisofs. > Figuring out how to pack the nanobsd image in such a way that > mkisofs can make an "El Torito" bootable CD from it sounds > difficult, offhand. Anybody know how to do this sort of thing? > Is it even possible? >