From owner-freebsd-stable Thu Nov 29 3:40: 9 2001 Delivered-To: freebsd-stable@freebsd.org Received: from postoffice.aims.com.au (eth0.lnk.aims.com.au [203.31.73.253]) by hub.freebsd.org (Postfix) with ESMTP id A179A37B428 for ; Thu, 29 Nov 2001 03:40:04 -0800 (PST) Received: from postoffice.aims.com.au (nts-ts1.aims.private [192.168.10.2]) by postoffice.aims.com.au with ESMTP id fATBe3414671 for ; Thu, 29 Nov 2001 22:40:03 +1100 (EST) (envelope-from chris@aims.com.au) Received: from ntsts1 by aims.com.au with SMTP (MDaemon.v3.5.3.R) for ; Thu, 29 Nov 2001 22:39:29 +1100 Reply-To: From: "Chris Knight" To: Subject: md0 smaller than md0c? Date: Thu, 29 Nov 2001 22:39:26 +1100 Message-ID: <016b01c178ca$81080d40$020aa8c0@aims.private> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 X-Return-Path: chris@aims.com.au X-MDaemon-Deliver-To: freebsd-stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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