Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Mar 2014 21:47:31 -0800
From:      aurfalien <aurfalien@gmail.com>
To:        Hiroki Sato <hrs@freebsd.org>
Cc:        freebsd-fs@FreeBSD.org
Subject:   Re: mdconfig via rc.conf
Message-ID:  <3A96A2A5-0BB5-4F68-905D-D0889C1A1D6D@gmail.com>
In-Reply-To: <20140305.144344.2256752746789462462.hrs@allbsd.org>
References:  <80EE335C-E85A-433B-A4A2-287BA8BA1345@gmail.com> <alpine.BSF.2.00.1403042215470.39032@wonkity.com> <B9EE914F-5B33-4063-AAA6-916624DECD11@gmail.com> <20140305.144344.2256752746789462462.hrs@allbsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mar 4, 2014, at 9:43 PM, Hiroki Sato <hrs@freebsd.org> wrote:

> aurfalien <aurfalien@gmail.com> wrote
>  in <B9EE914F-5B33-4063-AAA6-916624DECD11@gmail.com>:
>=20
> au> On Mar 4, 2014, at 9:19 PM, Warren Block <wblock@wonkity.com> =
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"=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3A96A2A5-0BB5-4F68-905D-D0889C1A1D6D>