Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Nov 2006 14:44:35 +0100 (CET)
From:      Oliver Fromme <olli@lurza.secnetix.de>
To:        freebsd-hackers@FreeBSD.ORG, aag.lists@gmail.com
Subject:   Re: Ramdisk support
Message-ID:  <200611151344.kAFDiZmh097517@lurza.secnetix.de>
In-Reply-To: <2f3a439f0611150355n3dd81845ydbeb0a7b597fb087@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Aditya Godbole wrote:
 > Oliver Fromme wrote:
 > > Aditya Godbole wrote:
 > > > Is there any ramdisk support in freebsd, as there is in netbsd?
 > > > What are the alternatives if I want to mount a root filesytem from ram?
 > > 
 > > You mean a diskless setup?  I think there's a detailed
 > > description of diskless setups in the FreeBSD Handbook.
 > > You might also want to look at the diskless(8) manpage.
 > 
 > I was looking for something like initrd support of Linux or the
 > mdsetimage of NetBSD.

The boot loader can pre-load the root filesystem image as
an md(4) device, similar to loading a splash screen.  The
kernel option to enable that feature is called MD_ROOT, and
I think it's even enabled by default in the GENERIC kernel.

You can also put the image of the root file system into the
kernel itself, so it doesn't have to be loaded separately.
The kernel option to allocate appropriate space is called
MD_ROOT_SIZE.

 > I have no disc or network card support for my hardware at the moment.

Then where are you booting from?  At least your kernel has
to come from somewhere, i.e. you need either networking or
some kind of media (disk, USB stick or similar).

Best regards
   Oliver

-- 
Oliver Fromme,  secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing
Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.

"I have stopped reading Stephen King novels.
Now I just read C code instead."
        -- Richard A. O'Keefe



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200611151344.kAFDiZmh097517>