From owner-freebsd-fs@FreeBSD.ORG Wed Mar 5 05:47:34 2014 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9DCE2AAB; Wed, 5 Mar 2014 05:47:34 +0000 (UTC) Received: from mail-yh0-x231.google.com (mail-yh0-x231.google.com [IPv6:2607:f8b0:4002:c01::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4D2F039E; Wed, 5 Mar 2014 05:47:34 +0000 (UTC) Received: by mail-yh0-f49.google.com with SMTP id z6so555758yhz.36 for ; Tue, 04 Mar 2014 21:47:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=QxsCwba8CG3ThdDHH9yrqEF7SS2ImZoSf2KOIMP4NQM=; b=Ox60YRnCujsjMXoKHDmFK84H7gpFfIUpyPvb5VuhOmF/SykuJXUEO71L+fafB1v0Wr OwA0cJ9xYB84bRamFIeDe26KT5usQHUUoP5I1Xozeh/jDEu8RIuBvqueHkijErYvLB5v UDhf3Jad2i3orJ2bmPGw9xuJou0vbUlX3utbpv7kkV0RovLKo0VELg0FhSMQSvQMXI8x hKX000E1UYU79z53YX90r60++xgj3dKlMCJ/kpqph/Nq9oOZRgoXj8u5PUlpYf4pWRUU EYsPu/zWGyO9fuGIsBKoFNJzutcLeMF7ofCBlGNViPUDSnLAOJJg6yUWDk9Y1DKgXM6A J7BQ== X-Received: by 10.236.3.10 with SMTP id 10mr3430870yhg.79.1393998453546; Tue, 04 Mar 2014 21:47:33 -0800 (PST) Received: from [192.168.1.76] (75-63-29-182.lightspeed.irvnca.sbcglobal.net. [75.63.29.182]) by mx.google.com with ESMTPSA id 44sm4360562yhp.17.2014.03.04.21.47.32 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 04 Mar 2014 21:47:33 -0800 (PST) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Subject: Re: mdconfig via rc.conf From: aurfalien In-Reply-To: <20140305.144344.2256752746789462462.hrs@allbsd.org> Date: Tue, 4 Mar 2014 21:47:31 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: <3A96A2A5-0BB5-4F68-905D-D0889C1A1D6D@gmail.com> References: <80EE335C-E85A-433B-A4A2-287BA8BA1345@gmail.com> <20140305.144344.2256752746789462462.hrs@allbsd.org> To: Hiroki Sato X-Mailer: Apple Mail (2.1874) Cc: freebsd-fs@FreeBSD.org X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Mar 2014 05:47:34 -0000 On Mar 4, 2014, at 9:43 PM, Hiroki Sato wrote: > aurfalien wrote > in : >=20 > au> On Mar 4, 2014, at 9:19 PM, Warren Block = wrote: > au>=20 > au> > On Tue, 4 Mar 2014, aurfalien wrote: > au> >=20 > au> >> Hi, > au> >>=20 > au> >> Apology for the cross post as I asked in the general questions = list and also if this is not an appropriate question. > au> >>=20 > au> >> But are there any other parameters I would need to setup a ram = disk at boot time? > au> >>=20 > au> >> I have this in my rc.conf; > au> >>=20 > au> >> mdconfig_md100=3D?-t malloc -s 12G? > au> >=20 > au> > rc.conf is sourced, but not the place for code. > au> >=20 > au> >> I?ve opted not to mount or format it for now. > au> >>=20 > au> >> But upon boot, I do not see the md100 device. > au> >>=20 > au> >> Is there anything I need in rc.conf to enable this? > au> >=20 > au> > It depends on the version of FreeBSD. On FreeBSD 10, it's easy = to do with an entry in /etc/fstab, see fstab(5). For earlier versions, = I'm not sure of the best way. There's /etc/rc.local, but may be more = automated ways in the other rc scripts. > au>=20 > au> Many thanks for the reply. > au>=20 > au> What led me to rc.conf was this; > au>=20 > au> http://ryanbowlby.com/2009/09/30/freebsd-ramdisk-mdconfig/ > au>=20 > au> I=92m using FreebSD 9 and would need it to load very early on in = the boot process but not be mounted. >=20 > mdconfig_md* have to always start from 0. An arbitrary value such as > 100 cannot be used. Thanks of this. I assumed that md100 is fine since I did it manually from the command = line. Why would it behave diff manually after boot but not during boot? - aurf "Janitorial Services"=