From owner-freebsd-hackers Thu Oct 18 13:48:10 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from smtp.noos.fr (verlaine.noos.net [212.198.2.73]) by hub.freebsd.org (Postfix) with ESMTP id 762C537B403 for ; Thu, 18 Oct 2001 13:48:04 -0700 (PDT) Received: (qmail 38692662 invoked by uid 0); 18 Oct 2001 20:48:02 -0000 Received: from unknown (HELO gits.dyndns.org) ([212.198.231.187]) (envelope-sender ) by 212.198.2.73 (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 18 Oct 2001 20:48:02 -0000 Received: (from root@localhost) by gits.dyndns.org (8.11.6/8.11.6) id f9IKlsk06562; Thu, 18 Oct 2001 22:47:54 +0200 (CEST) (envelope-from root) Message-Id: <200110182047.f9IKlsk06562@gits.dyndns.org> Subject: Re: Problems with booting of CD-ROM (fwd) In-Reply-To: To: Thomas Dixon Date: Thu, 18 Oct 2001 22:47:54 +0200 (CEST) Cc: John Baldwin , hackers@FreeBSD.ORG Reply-To: clefevre@citeweb.net From: Cyrille Lefevre Organization: ACME X-Face: X-Mailer: ELM [version 2.4ME+ PL94c (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Thomas Dixon wrote: [snip] > I have done this now and it loads the mfsroot.gz file, however I can't > find any man pages or web pages that tell me how to create an mfsroot > file. Any ideas on this? see boot.flp target in /usr/src/release/Makefile it is much simple to work on the original boot.flp or mfsroot.flp, such as : mkdir /kern /flp /mfs vnconfig -c /dev/vn0c /tmp/kern.flp mount -t ufs /dev/vn0c /kern ls -l /kern drwxr-xr-x 2 root wheel 512 Apr 21 13:15 boot -r-xr-xr-x 1 root wheel 1241170 Apr 21 13:15 kernel.gz do your stuffs on /kern (use gzip -9 instead of kgzip is you replace the kernel, it a little bit more efficient). umount /kern vnconfig -u /dev/vn0c vnconfig -c /dev/vn0c /tmp/mfsroot.flp mount -t ufs /dev/vn0c /flp ls -l /flp -rw-r--r-- 1 root wheel 860566 Apr 21 13:11 mfsroot.gz gzcat < /iso/mfsroot.gz > /tmp/mfsroot vnconfig -c /dev/vn1c /tmp/mfsroot mount -t ufs /dev/vn1c /mfs ls -l /mfs lrwxrwxrwx 1 root wheel 6 Apr 21 13:11 bin -> /stand drwxr-xr-x 2 root wheel 512 Apr 21 13:11 boot drwxr-xr-x 2 root wheel 512 Apr 21 13:11 dev drwxr-xr-x 3 root wheel 512 Apr 21 13:11 etc drwxr-xr-x 2 root wheel 512 Apr 21 13:11 mnt lrwxrwxrwx 1 root wheel 6 Apr 21 13:11 sbin -> /stand drwxr-xr-x 4 root wheel 1024 Apr 21 13:11 stand do your stuffs on /mfs then reverse everything... umount /mfs vnconfig -u /dev/vn1c gzip -9 < /tmp/mfsroot > /flp/mfsroot.gz umount /flp vnconfig -u /dev/vn0c not tested but should work... Cyrille. -- Cyrille Lefevre mailto:clefevre@citeweb.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message