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:[EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message