Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Nov 2001 22:39:26 +1100
From:      "Chris Knight" <chris@aims.com.au>
To:        <freebsd-stable@freebsd.org>
Subject:   md0 smaller than md0c?
Message-ID:  <016b01c178ca$81080d40$020aa8c0@aims.private>

next in thread | raw e-mail | index | archive | help
Howdy,

I'm trying to modify install.cfg on the mfsroot floppy for freebsd-stable so
as to have multiple machines install from the one reference install, but
load a final custom package specific to the machine. I've got a small script
to take the original mfsroot floppy image, unpack it, add the install.cfg
script, then pack it back up into a floppy image.
The problem is when I then boot from the mfsroot floppy that I've modified,
the kernel whinges that md0 is only 5759 blocks in size and that md0c is
5960 blocks in size, hence ignoring md0c and not continuing any further.
I don't understand why the md filesystem decreases by one block. I'm
running -stable as of 25 Nov. Here's the script:

#!/bin/sh
echo "Copying original mfsroot.flp to mfsroot.flp.$1 ..."
cp mfsroot.flp mfsroot.flp.$1
echo "Unpacking mfsroot.flp.$1 for config file addition ..."
vnconfig -c vn0 mfsroot.flp.$1
mount /dev/vn0 /mnt
gzip -dc /mnt/mfsroot.gz > mfsroot
vnconfig -c vn1 mfsroot
mount /dev/vn1 mfs
echo "Adding $1 config file ..."
cp install.cfg.$1 mfs/install.cfg
umount mfs
vnconfig -u vn1
echo "Repacking mfsroot.flp.$1 ..."
gzip -9c mfsroot > /mnt/mfsroot.gz
rm mfsroot
umount /mnt
vnconfig -u vn0
echo "Copying mfsroot.flp.$1 to floppy disk ..."
dd if=mfsroot.flp.$1 of=/dev/fd0

Any help gratefully welcome.

Regards,
Chris Knight
Systems Administrator
AIMS Independent Computer Professionals
Tel: +61 3 6334 6664  Fax: +61 3 6331 7032  Mob: +61 419 528 795
Web: http://www.aims.com.au



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?016b01c178ca$81080d40$020aa8c0>