diff options
author | imp <imp@FreeBSD.org> | 2006-11-24 18:53:45 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2006-11-24 18:53:45 +0000 |
commit | 03f10acc6e488c26ade54fcb896bf194c8ec1b25 (patch) | |
tree | ce91772f16aea13e8c589d9434a270c4af166c1d /share/man/man4/md.4 | |
parent | 491108697b47fc63a58ef1bb1f4d062f5aa63a76 (diff) | |
download | FreeBSD-src-03f10acc6e488c26ade54fcb896bf194c8ec1b25.zip FreeBSD-src-03f10acc6e488c26ade54fcb896bf194c8ec1b25.tar.gz |
Add instructions for creating a ramdisk root image. These likely need
to be augmented with instructions for those platforms that have
/boot/loader.
Diffstat (limited to 'share/man/man4/md.4')
-rw-r--r-- | share/man/man4/md.4 | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/share/man/man4/md.4 b/share/man/man4/md.4 index 71ed28f..f13de64 100644 --- a/share/man/man4/md.4 +++ b/share/man/man4/md.4 @@ -7,7 +7,7 @@ .\" .\" $FreeBSD$ .\" -.Dd March 9, 2001 +.Dd November 24, 2006 .Dt MD 4 .Os .Sh NAME @@ -55,6 +55,23 @@ Backing store is allocated from swap space. .Pp For more information, please see .Xr mdconfig 8 . +.Sh EXAMPLES +To create a kernel with a ramdisk or MD file system, your kernel config +needs the following options: +.Bd -literal -ofset indent +options MD_ROOT #MD is a potential root device +options MD_ROOT_SIZE=8192 # 8MB ram disk +makeoptions MFS_IMAGE=/h/foo/ARM-MD +options ROOTDEVNAME=\"ufs:md0\" +.Ed +The image in +.Pa /h/foo/ARM-MD +will be loaded as the initial image each boot. +To create the image to use, please follow the steps to create a file-backed +disk found in the +.Xr mdconfig 8 +man page. +Other tools will also create these images, such as NanoBSD. .Sh SEE ALSO .Xr disklabel 5 , .Xr disklabel 8 , |