From owner-freebsd-embedded@FreeBSD.ORG Wed Jan 13 18:56:36 2010 Return-Path: Delivered-To: embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 32AFF106568D; Wed, 13 Jan 2010 18:56:36 +0000 (UTC) (envelope-from davidn04@gmail.com) Received: from mail-qy0-f174.google.com (mail-qy0-f174.google.com [209.85.221.174]) by mx1.freebsd.org (Postfix) with ESMTP id CB0F18FC14; Wed, 13 Jan 2010 18:56:35 +0000 (UTC) Received: by qyk4 with SMTP id 4so10903726qyk.7 for ; Wed, 13 Jan 2010 10:56:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=pQvdJNEl8k6m5PKvuNktj/8PkG/DjCvIvhVPIodLcJM=; b=e9Ucx0e4XKqv+kRnjbDuwckiwSlxZKp2oh6voudJDj7iDUwWqshQZgEdixzEC4dT2s q4LGaasZ5ofhxfL5V8GGSHr4JSvNEobsp3XPRuA03YqzPmE35F5NnsZMmNo26Gg1aD3t Ay3djbF0+Avxn1Wzqh2BiicZkVnsqY7kdx9es= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=UAGDdhEu/Aj4w04TVLje/vkH10MJr0MeMiUFxXiaQK1hd4Ok2wf0NxGh982Mq170rR XyPpYdqiCaSCdKR98pmlKyAn0aYL/lp88nLXBgKrjRWEEHnYCnRC8TYFcmTalBaC+zV5 bfqDBsTkEbL72VUql2Prk6FWcpkWUB5axlzQQ= MIME-Version: 1.0 Received: by 10.229.41.74 with SMTP id n10mr3425590qce.13.1263408979850; Wed, 13 Jan 2010 10:56:19 -0800 (PST) In-Reply-To: <20100113.071904.971941791087055641.imp@bsdimp.com> References: <4d7dd86f1001130347k75ec7dcfhf6adf2a852210d89@mail.gmail.com> <20100113.071904.971941791087055641.imp@bsdimp.com> Date: Thu, 14 Jan 2010 05:56:19 +1100 Message-ID: <4d7dd86f1001131056l2f42eca5t15d36ad376b9e5f8@mail.gmail.com> From: David N To: "M. Warner Losh" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: embedded@freebsd.org, freebsd-questions@freebsd.org Subject: Re: Nanobsd Memory Backed Disks X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jan 2010 18:56:36 -0000 2010/1/14 M. Warner Losh : > In message: <4d7dd86f1001130347k75ec7dcfhf6adf2a852210d89@mail.gmail.com> > =A0 =A0 =A0 =A0 =A0 =A0David N writes: > : I've been poking around /etc/rc.diskless and other rc's. I can't seem > : to find what script loads the md. > : Its not in /etc/fstab > : > : Does anyone know where it is? > : Also how does nanobsd load the /etc into the md? newfs + cpio? > > The md driver is usually compiled into the kernel. /etc/rc.d/mdconfig > and /etc/rc.d/mdconfig2 configure the ram disks. =A0/etc/diskless is > created as part of the build process, and /etc/rc.initdiskless does > all the copying magic. > > Warner > Thanks, I found what I was looking for. /conf/base/etc /conf/base/var the diskless file to enable md and md_size which determines the md size. It loads the files from there instead of the actual /etc (before the /dev/md mount) Regards David N