From owner-freebsd-small Sun Nov 3 13: 9:35 2002 Delivered-To: freebsd-small@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A9F4C37B401 for ; Sun, 3 Nov 2002 13:09:33 -0800 (PST) Received: from mail.cruzio.com (dsl3-63-249-66-221.cruzio.com [63.249.66.221]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3FCD343E97 for ; Sun, 3 Nov 2002 13:09:33 -0800 (PST) (envelope-from brucem@mail.cruzio.com) Received: (from brucem@localhost) by mail.cruzio.com (8.11.3/8.11.3) id gA3Lfnd00489; Sun, 3 Nov 2002 13:41:49 -0800 (PST) (envelope-from brucem) Date: Sun, 3 Nov 2002 13:41:49 -0800 (PST) From: "Bruce R. Montague" Message-Id: <200211032141.gA3Lfnd00489@mail.cruzio.com> To: freebsd-small@freebsd.org, rizzo@icir.org Subject: picobsd script fails under 5.0-current (old newfs -p opt) Sender: owner-freebsd-small@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG The current CVS picobsd script ("/usr/src/release/picobsd/build/picobsd") uses a newfs "-p" option that is no longer supported in 5.0-current. The picobsd script exits with the error: "newfs: illegal option -- p" Under 4.x the newfs man page noted "-p" is "of historical importance only." It specifies reserved bad block sectors at the end of each track. Is this still necessary for 4.x systems? Was it primarily an attempt to use all the space on the floppy? Fix for 5.0-current: In the "picobsd" script file, delete the 2 occurences of "-p 0" on the newfs command line. Here is a diff: ---------- --- /usr/src/release/picobsd/build/picobsd Sun Jul 14 05:07:06 2002 +++ picobsd Sun Nov 3 12:10:37 2002 @@ -536,7 +536,7 @@ else disklabel -rw ${l_vndev} auto || fail $? mfs_disklabel fi - newfs -i ${mfs_inodes} -m 0 -p 0 -o space -f 512 -b 4096 \ + newfs -i ${mfs_inodes} -m 0 -o space -f 512 -b 4096 \ /dev/${l_vndev}c > /dev/null mount /dev/${l_vndev}c ${c_mnt} || fail $? no_mount log "`df /dev/${l_vndev}c`" @@ -802,7 +802,7 @@ disklabel -R ${l_vndev} /dev/stdin log "Newfs floppy image" - newfs -i ${fd_inodes} -m 0 -p 0 -o space -f 512 -b 4096 \ + newfs -i ${fd_inodes} -m 0 -o space -f 512 -b 4096 \ /dev/${l_vndev}a > /dev/null log "Mounting floppy image" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-small" in the body of the message