mdconfig via rc.conf
aurfalien
aurfalien at gmail.com
Wed Mar 5 05:30:44 UTC 2014
On Mar 4, 2014, at 9:19 PM, Warren Block <wblock at wonkity.com> wrote:
> On Tue, 4 Mar 2014, aurfalien wrote:
>
>> Hi,
>>
>> Apology for the cross post as I asked in the general questions list and also if this is not an appropriate question.
>>
>> But 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?
>
> rc.conf is sourced, but not the place for code.
>
>> 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?
>
> 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.
Many thanks for the reply.
What led me to rc.conf was this;
http://ryanbowlby.com/2009/09/30/freebsd-ramdisk-mdconfig/
I’m using FreebSD 9 and would need it to load very early on in the boot process but not be mounted.
I’ll take a look at rc.local but if its anything like Linux, well thats the last thing that loads.
- aurf
"Janitorial Services"
More information about the freebsd-fs
mailing list