From: david@ruc.dk (David Stodolsky)
Newsgroups: comp.unix.aux
Subject: problem creating file system
Summary: File system doesn't seem to file partition.
Keywords: partitions cylinder blocks mkfs newfs
Date: 30 Dec 92 19:56:38 GMT
Organization: Datalogi, Roskilde Universitetscenter

I am trying to install a/ux on a Fuji 2624, but I am getting some funny
results. I am using only the outer zone where there is 77 sector/track.
I have partitioned the disk so that partitions starts on a cylinder
boundary and with root I made the number of cyl. a multiple of 16 so the
cyl. blocks should be complete.

However, I get warnings from mkfs (had to invoke directly for root,
because the startup newfs bombed with error=1) and the output from fsdb
shows that the cyl. are not being filled.

I also wonder why nsect is 77ms. Isn't this the number of sectors/trk?

I made two partitions because there is a spot that caused 40 defects,
one on each cyl, that I thought would be best to cover with the swap
partition, since this does not use ufs which tries to keep account of
track boundaries.

==========

localhost.root # newfs -v -r 4400 -m 10 /dev/rdsk/c6d0s3 other
/etc/fs/ufs/mkfs /dev/rdsk/c6d0s3 127820 77 11 8192 1024 16 10 73 2048
t
Warning: 77 sector(s) in last cylinder unallocated
/dev/rdsk/c6d0s3:       127820 sectors in 151 cylinders of 11 tracks, 77
sectors
        65.4Mb in 10 cyl groups (16 c/g, 6.94Mb/g, 2048 i/g)
super-block backups (for fsck -b#) at:
 16, 13648, 27280, 40912, 54544, 68176, 81808, 95440, 109072, 122704,

localhost.root # fsdb -T4.2 /dev/rdsk/c6d0s3
fsdb of /dev/rdsk/c6d0s3 (Read only) -- last mounted on /mnt/users
> :sb
        super block:
magic   11954   format  static  time    Wed Dec 30 17:19:28 1992
nbfree  7637    ndir    5       nifree  20455   nffree  32
ncg     10      ncyl    151     size    63910   blocks  61181
bsize   8192    shift   13      mask    0xffffe000
fsize   1024    shift   10      mask    0xfffffc00
frag    8       shift   3       fsbtodb 1
cpg     16      bpg     847     fpg     6776    ipg     2048
minfree 10%     optim   time    maxcontig 1     maxbpg  256
rotdelay        4ms     rps     73      ntrak   11
nsect   77ms    spc     847
nindir  2048    inopb   64      nspf    2
sblkno  8       cblkno  16      iblkno  24      dblkno  280
sbsize  3072    cgsize  2048    cgoffset 40     cgmask  0xfffffff0
csaddr  280     cssize  1024    shift   9       mask    0xfffffe00
cgrotor 0       fmod    0       ronly   0
blocks available in each of 8 rotational positions       

==========

startup# ufs:mkfs /dev/rdsk/c6d0s0 295680 77 11 8192 1024 16 10 73 2048
Warning: 770 sector(s) in last cylinder unallocated
/dev/rdsk/c6d0s0:       295680 sectors in 350 cylinders of 11 tracks, 77
sectors
        151.4Mb in 22 cyl groups (16 c/g, 6.94Mb/g, 2048 i/g)
super-block backups (for fsck -b#) at:
 16, 13648, 27280, 40912, 54544, 68176, 81808, 95440, 109072, 122704,
 136336, 149968, 163600, 177232, 190864, 204496, 216848, 230480, 244112,
257744,
 271376, 285008,
 
 localhost.root # fsdb -T4.2 /dev/rdsk/c6d0s0
fsdb of /dev/rdsk/c6d0s0 (Read only) -- last mounted on /
> :sb
        super block:
magic   11954   format  static  time    Wed Dec 30 18:24:39 1992
nbfree  8517    ndir    349     nifree  38309   nffree  555
ncg     22      ncyl    350     size    147840  blocks  141847
bsize   8192    shift   13      mask    0xffffe000
fsize   1024    shift   10      mask    0xfffffc00
frag    8       shift   3       fsbtodb 1
cpg     16      bpg     847     fpg     6776    ipg     2048
minfree 10%     optim   time    maxcontig 112   maxbpg  256
rotdelay        0ms     rps     73      ntrak   11
nsect   77ms    spc     847
nindir  2048    inopb   64      nspf    2
sblkno  8       cblkno  16      iblkno  24      dblkno  280
sbsize  3072    cgsize  2048    cgoffset 40     cgmask  0xfffffff0
csaddr  280     cssize  1024    shift   9       mask    0xfffffe00
cgrotor 15      fmod    0       ronly   0
blocks available in each of 8 rotational positions   


-- 
David S. Stodolsky                            Tel: + 45 31 95 92 82
Department of Computer Science                Fax: + 45 46 75 42 01
Bldg. 20.1, Roskilde University              Internet: david@ruc.dk
Post Box 260, DK-4000 Roskilde, Denmark      or: david@mcsun.EU.net