Nanobsd Memory Backed Disks

David N davidn04 at
Wed Jan 13 18:56:36 UTC 2010

2010/1/14 M. Warner Losh <imp at>:
> In message: <4d7dd86f1001130347k75ec7dcfhf6adf2a852210d89 at>
>            David N <davidn04 at> writes:
> : I've been poking around /etc/rc.diskless and other rc's. I can't seem
> : to find what script loads the md.
> : Its not in /etc/fstab
> :
> : Does anyone know where it is?
> : Also how does nanobsd load the /etc into the md? newfs + cpio?
> The md driver is usually compiled into the kernel. /etc/rc.d/mdconfig
> and /etc/rc.d/mdconfig2 configure the ram disks.  /etc/diskless is
> created as part of the build process, and /etc/rc.initdiskless does
> all the copying magic.
> Warner

Thanks, I found what I was looking for.


the diskless file to enable md
and md_size which determines the md size.

It loads the files from there instead of the actual /etc (before the
/dev/md mount)

David N

More information about the freebsd-questions mailing list