atom feed12 messages in org.freebsd.freebsd-currentnewfs: sectors per cylinder (4096) di...
FromSent OnAttachments
Julian Howard StaceyFeb 19, 1995 12:45 pm 
Ollivier ROBERTFeb 20, 1995 3:58 pm 
Rodney W. GrimesFeb 20, 1995 5:25 pm 
Poul-Henning KampFeb 20, 1995 5:53 pm 
Rodney W. GrimesFeb 20, 1995 6:22 pm 
Poul-Henning KampFeb 20, 1995 6:25 pm 
Gene StarkFeb 21, 1995 4:27 am 
Stefan EsserFeb 21, 1995 7:03 am 
Julian Howard StaceyFeb 21, 1995 3:33 pm 
Bruce EvansFeb 22, 1995 12:57 am 
Gene StarkFeb 22, 1995 3:48 am 
Bruce EvansFeb 23, 1995 8:12 am 
Subject:newfs: sectors per cylinder (4096) disagrees with disk label (36)
From:Gene Stark (star@sbstark.cs.sunysb.edu)
Date:Feb 21, 1995 4:27:51 am
List:org.freebsd.freebsd-current

With system after a make world from current (of Fri 18th Feb), While doing a: cd /usr/src/etc make floppies it blew up with disklabel -w -r -B -b /usr/mdec/fdboot -s /usr/mdec/bootfd fd0 fd1440 newfs -b 4096 -c 80 -f 512 -i 8192 -m 0 -o space rfd0 fd1440 Warning: calculated sectors per cylinder (4096) disagrees with disk label (36)

Newfs now ignores the disklabel and uses defaults of 1 track/cyl and 4096 sectors/track. You can override by giving explicit arguments. However, the way the changes have been made strikes me as somewhat kludgy. Would it be possible for newfs to do the following:

(1) Check /etc/disktab for info on the partition. Use these parameters if available. (Put the 4096/1 stuff in here.)

(2) If /etc/disktab has no info, look at the disklabel. Pay attention to these parameters if available.

(3) If neither (1), nor (2), use the hard-coded defaults (4096/1).