From owner-freebsd-questions@FreeBSD.ORG Sat Mar 26 01:49:42 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 86FB016A4CE for ; Sat, 26 Mar 2005 01:49:41 +0000 (GMT) Received: from web52605.mail.yahoo.com (web52605.mail.yahoo.com [206.190.39.143]) by mx1.FreeBSD.org (Postfix) with SMTP id D857843D1D for ; Sat, 26 Mar 2005 01:49:40 +0000 (GMT) (envelope-from davidclear@yahoo.com) Received: (qmail 52364 invoked by uid 60001); 26 Mar 2005 01:49:40 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=oYHeosyFueTrkkkQgm1dbsy8cIvgi3lRW64HGQwEQPYMmB7UXqNxJrDgA7/u65yqDFonhR2zmsHu3J8L9uKphxm2oABIXsB4vjeJAgh8ElK341Wi9+jA8Z63dEws2oEjQMFfZsSLclZce4KgSE8qMEnhzyx9gzNY/miR2dUEmww= ; Message-ID: <20050326014940.52362.qmail@web52605.mail.yahoo.com> Received: from [69.237.122.17] by web52605.mail.yahoo.com via HTTP; Fri, 25 Mar 2005 17:49:40 PST Date: Fri, 25 Mar 2005 17:49:40 -0800 (PST) From: David Clear To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: Step-by-step instructions for MD_ROOT embedded, please? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Mar 2005 01:49:42 -0000 Here you go (found on the web): 1. Create a filesystem image: # dd if=/dev/zero of=mdimage -bs=1024 count=4096 # mdconfig -a -t vnode -f mdimage -s 4096k -u 4 # disklabel -r -w md4 auto # newfs /dev/md4c # mount /dev/md4c /mnt . . put stuff on it . # umount /mnt # mdconfig -d -u 4 2. Make sure you have the kernel options: options MD_ROOT options MD_ROOT_SIZE=4096 ...and rebuild. 3. As you said, compiling /usr/src/release/write_mfs_in_kernel.c from FreeBSD-4.11 with SBOFF set to 64K will work. You'll also need to #include prior to fs.h. 4. Set vfs.root.mountfrom to "ufs:md0" in /boot/loader.conf. Works for me on 5.3-RELEASE. Good luck. Regards, David.