Date: Thu, 18 Oct 2001 22:47:54 +0200 (CEST) From: Cyrille Lefevre <clefevre@citeweb.net> To: Thomas Dixon <thomas@vbc.net> Cc: John Baldwin <jhb@FreeBSD.ORG>, hackers@FreeBSD.ORG Subject: Re: Problems with booting of CD-ROM (fwd) Message-ID: <200110182047.f9IKlsk06562@gits.dyndns.org> In-Reply-To: <Pine.BSF.4.10.10110181617470.394-100000@brunel.uk1.vbc.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200110182047.f9IKlsk06562>