Date: Wed, 05 Mar 2014 14:43:44 +0900 (JST) From: Hiroki Sato <hrs@FreeBSD.org> To: aurfalien@gmail.com Cc: freebsd-fs@FreeBSD.org Subject: Re: mdconfig via rc.conf Message-ID: <20140305.144344.2256752746789462462.hrs@allbsd.org> In-Reply-To: <B9EE914F-5B33-4063-AAA6-916624DECD11@gmail.com> References: <80EE335C-E85A-433B-A4A2-287BA8BA1345@gmail.com> <alpine.BSF.2.00.1403042215470.39032@wonkity.com> <B9EE914F-5B33-4063-AAA6-916624DECD11@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] aurfalien <aurfalien@gmail.com> wrote in <B9EE914F-5B33-4063-AAA6-916624DECD11@gmail.com>: au> On Mar 4, 2014, at 9:19 PM, Warren Block <wblock@wonkity.com> wrote: au> au> > On Tue, 4 Mar 2014, aurfalien wrote: au> > au> >> Hi, au> >> au> >> Apology for the cross post as I asked in the general questions list and also if this is not an appropriate question. au> >> au> >> But are there any other parameters I would need to setup a ram disk at boot time? au> >> au> >> I have this in my rc.conf; au> >> au> >> mdconfig_md100=?-t malloc -s 12G? au> > au> > rc.conf is sourced, but not the place for code. au> > au> >> I?ve opted not to mount or format it for now. au> >> au> >> But upon boot, I do not see the md100 device. au> >> au> >> Is there anything I need in rc.conf to enable this? au> > 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> au> Many thanks for the reply. au> au> What led me to rc.conf was this; au> au> http://ryanbowlby.com/2009/09/30/freebsd-ramdisk-mdconfig/ au> au> I¢m using FreebSD 9 and would need it to load very early on in the boot process but not be mounted. mdconfig_md* have to always start from 0. An arbitrary value such as 100 cannot be used. -- Hiroki [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEABECAAYFAlMWuZAACgkQTyzT2CeTzy15XQCfZVvCJZzhwdREh/P5mD3ds0+A hoIAoJu0OITqF7+9qgJeZSANhBvv5tH3 =ODRK -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140305.144344.2256752746789462462.hrs>
