Date: Sun, 3 Nov 2002 13:41:49 -0800 (PST) From: "Bruce R. Montague" <brucem@mail.cruzio.com> To: freebsd-small@freebsd.org, rizzo@icir.org Subject: picobsd script fails under 5.0-current (old newfs -p opt) Message-ID: <200211032141.gA3Lfnd00489@mail.cruzio.com>
index | next in thread | raw e-mail
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
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200211032141.gA3Lfnd00489>
