From owner-freebsd-questions@FreeBSD.ORG Wed Mar 5 18:59:12 2014 Return-Path: Delivered-To: freebsd-questions@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 5BBF12DA; Wed, 5 Mar 2014 18:59:12 +0000 (UTC) Received: from mx1.fisglobal.com (mx1.fisglobal.com [199.200.24.190]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 25FF6E9F; Wed, 5 Mar 2014 18:59:11 +0000 (UTC) Received: from smarthost.fisglobal.com ([10.132.206.193]) by ltcfislmsgpa02.fnfis.com (8.14.5/8.14.5) with ESMTP id s25Ix3w8019929 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Wed, 5 Mar 2014 12:59:04 -0600 Received: from THEMADHATTER (10.242.181.54) by smarthost.fisglobal.com (10.132.206.193) with Microsoft SMTP Server id 14.3.174.1; Wed, 5 Mar 2014 12:57:04 -0600 From: Sender: Devin Teske To: "'aurfalien'" , "'FreeBSD Mailing List'" References: In-Reply-To: Subject: RE: mdconfig via rc.conf Date: Wed, 5 Mar 2014 10:56:59 -0800 Message-ID: <18af01cf38a4$b278b1c0$176a1540$@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 15.0 Thread-Index: AQG90l4vwqeSja+xB/3VGxc6HAAWuZr1otRw Content-Language: en-us X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.11.87, 1.0.14, 0.0.0000 definitions=2014-03-05_06:2014-03-05,2014-03-05,1970-01-01 signatures=0 Cc: 'Devin Teske' X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Mar 2014 18:59:12 -0000 > -----Original Message----- > From: aurfalien [mailto:aurfalien@gmail.com] > Sent: Tuesday, March 4, 2014 2:14 PM > To: FreeBSD Mailing List > Subject: mdconfig via rc.conf > > Hi, > > Are there any other parameters I would need to setup a ram disk at boot time? > > I have this in my rc.conf; > > mdconfig_md100="-t malloc -s 12G" > > I've opted not to mount or format it for now. > > But upon boot, I do not see the md100 device. > > Is there anything I need in rc.conf to enable this? > > Thanks in advance, > > - aurf > [Devin Teske] Sorry for late reply. But here's what you want... # In /etc/rc.conf mdconfig_md0="-t malloc -s 12G" # In /etc/fstab /dev/md0 /mymountpoint ufs rw,noatime 0 0 You see... /etc/rc.d/mdconfig will perform "mount -d /dev/md0" to see if there is a mountpoint configured for md0 in /etc/fstab. If "mount -d /dev/md0" reports that there is no entry for md0, then the /etc/rc.d/mdconfig script will not mount your device. Also, as others have mentioned, you can not (currently) arbitrarily have gaps in the numbering system. You have to start with md0 and then use md1, md2, ad nauseum. The script /etc/rc.d/mdconfig currently stops at the first undefined value. So in the case of not setting md0 but only a single md100, nothing will be done (0 being undefined terminates the loop). -- Devin _____________ The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you.