From owner-freebsd-stable@FreeBSD.ORG Wed Mar 11 16:00:50 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2834A106564A for ; Wed, 11 Mar 2009 16:00:50 +0000 (UTC) (envelope-from army.of.root@googlemail.com) Received: from mail-fx0-f158.google.com (mail-fx0-f158.google.com [209.85.220.158]) by mx1.freebsd.org (Postfix) with ESMTP id 7DA308FC0A for ; Wed, 11 Mar 2009 16:00:49 +0000 (UTC) (envelope-from army.of.root@googlemail.com) Received: by fxm2 with SMTP id 2so57497fxm.43 for ; Wed, 11 Mar 2009 09:00:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=LVYvlfZaA27EeSDEC2Boax5ypp9EVYXajwyLaWcWDrg=; b=J//ugkELHqLsKb27rpzWfRvxHqqfvXvNnW5oCOOFTq6zfxd1CwHXwWUr4LnPcLW2bT HTOYucNdO4oxvZEXzn5pW/s8Ag0ds0NvXfROQL9RuHu9fdqtqTo0pf8eYxiG7EiyYZrs 37i1J/KckfMDQVUmHQRK5wvrHI3HYZFN/FtnU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=JA43wyAMrcEuH13mzUeTk3+kl5+956t4C1z+9MuLFfxGkuRa9BrCddjiVdMPhOGq6B pKv1dlnnrc0qnCpj/sOiHyt1Ud8dNMYpmcb7capvnIJMxCmDsKjiCGxCEK6zB5SPYbGV VH6Y4GFi6sDwLbNDOkiG1i7+WiETT7s3eJr2I= Received: by 10.223.117.14 with SMTP id o14mr6508758faq.21.1236785715759; Wed, 11 Mar 2009 08:35:15 -0700 (PDT) Received: from ?192.168.2.24? (p5486F87C.dip.t-dialin.net [84.134.248.124]) by mx.google.com with ESMTPS id d13sm9353656fka.0.2009.03.11.08.35.14 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 11 Mar 2009 08:35:15 -0700 (PDT) Message-ID: <49B7DA31.9@googlemail.com> Date: Wed, 11 Mar 2009 16:35:13 +0100 From: "army.of.root" User-Agent: Thunderbird 2.0.0.17 (X11/20081028) MIME-Version: 1.0 To: Andrew Snow References: <20090311032557.GA7735@lava.net> <49B73BBE.3020302@modulus.org> In-Reply-To: <49B73BBE.3020302@modulus.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org, Clifton Royston Subject: Re: Installing FreeBSD from USB flash drive - some experiments X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Mar 2009 16:00:50 -0000 Andrew Snow wrote: > > Here's the steps I use to create a 1GB USB image: > > # dd if=/dev/zero of=bootable.image bs=1m count=1 oseek=1000 conv=sparse > # mdconfig -a -t vnode -f bootable.image -u 0 > # newfs -m 0 -o space -n /dev/md0 > # mount /dev/md0 /mnt > > # cd /usr/src > # make installworld DESTDIR=/mnt > # make distribution DESTDIR=/mnt > # make installkernel DESTDIR=/mnt > # umount /mnt > > At this point you have a file "bootable.image" but instead of actually > making that a bootable dd image, I choose to create a dump file which is > a bit more flexible as you can restore it to a USB stick of any size. > > # dump -0 -C 8 -f - /dev/md0 | gzip -9 > bootable.dump.gz > # mdconfig -d -u 0 > > > At this point, you have a dump file which you can use to create a > bootable USB as follows: > > Assuming the USB stick is /dev/da0 ! > > # dd if=/dev/zero of=/dev/da0 bs=16k > # fdisk -BI /dev/da0 > # disklabel -B -w /dev/da0s1 > # newfs -m 0 -o space -n /dev/da0s1a > # mount -o noatime,async /dev/da0s1a /mnt > # gzcat bootable.dump.gz | ( cd /mnt ; restore -rvf - ) > # umount /mnt > > > > Hope that helps > > > - Andrew Hi, I didnt test this specific soulution, but I did something similar some time ago. Could you put this sketch somewhere visible on the web? - Like the Wiki or maybe open a thread in the Forum. Thanks :)