From owner-freebsd-questions@FreeBSD.ORG Tue Nov 29 16:40:09 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5255416A420 for ; Tue, 29 Nov 2005 16:40:09 +0000 (GMT) (envelope-from tsuraan@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id B948743D92 for ; Tue, 29 Nov 2005 16:39:58 +0000 (GMT) (envelope-from tsuraan@gmail.com) Received: by zproxy.gmail.com with SMTP id j2so2620501nzf for ; Tue, 29 Nov 2005 08:39:53 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=fF0jqIdsbs4WvCMKIVRSg/5IR1w2gXjHXznEEGLpMVFxL0gi0fBSPdE5roRTQd8pONj5RYIIM25l96atYECm0AK9x9qVdDUW5Em29AG4mjWzYQFBWSHrdvfW7OP7Gp4T+sqjOD2F2Gz4ni3+2OF9Y2+hhdgrdkwfe9s9Vkb9OI4= Received: by 10.64.220.2 with SMTP id s2mr4480597qbg; Tue, 29 Nov 2005 08:39:52 -0800 (PST) Received: by 10.65.137.15 with HTTP; Tue, 29 Nov 2005 08:39:52 -0800 (PST) Message-ID: <84fb38e30511290839y525e47fdr@mail.gmail.com> Date: Tue, 29 Nov 2005 10:39:52 -0600 From: tsuraan To: freebsd-questions MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: Making a Compact Flash-based installer 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, 29 Nov 2005 16:40:09 -0000 I've been using a custom bootable CD for a while to install a customized build of FreeBSD on servers, but now I have a unit that has neither a CD-ROM drive nor any molex connectors at all. It does have a pair of compact flash drives though. So, what I'd like to do is transfer the data from my bootable CDs to a compact flash card, so I can install off that instead. What I've tried so far is set up a new disklabel on the drive (actually, on a file initialized with mdconfig) that has its -b set to the CDs /boot/boot, and I've copied the contents of the CD to the cf card. This results in a card that is bootable, but the boot loader says the card is not ufs (it is), and it can't find the kernel. The actual commands I'm using (from memory) are: # dd if=3D/dev/zero of=3Dmydrive bs=3D1m count=3D100 # mdconfig -a -t vnode -f cd.iso -u 0 # mount -t cd9660 /dev/md0 /cdrom # mdconfig -a -t vnode -f mydrive -u 1 # bsdlabel -w -B -b /cdrom/boot/boot md1 # newfs /dev/md1 # mount /dev/md1 /mnt # cp -r /cdrom/* /mnt/ # umount /mnt # umount /cdrom # mdconfig -d -u 1 # mdconfig -d -u 0 # dd if=3Dmydrive of=3D/dev/ad2 So, has anyone done this, and actually had it work?