[comp.sys.sun] newfs question

barkdoll@cattell.psych.upenn.edu (06/05/91)

While preparing to set up (newfs -Nv /dev/rsd1h) a new file system i
encountered the following message:

mkfs -N /dev/rsd1h  15876 36 9 8192 1024 16 10 60 2048 t 0 0 8 7
Warning: inode blocks/cyl group (32) >= data blocks (20) in last
    cylinder group. This implies 324 sector(s) cannot be allocated.
/dev/rsd1h:	15552 sectors in 48 cylinders of 9 tracks, 36 sectors
	8.0MB in 3 cyl groups (16 c/g, 2.65MB/g, 1216 i/g)
super-block backups (for fsck -b #) at:
 32, 5264, 10496,


This is on a new 207MB disk from Sun which I reformatted with no
problems, no defects.  I was able to set up sd1a, sd1g with no such
warning.  sd1h *should* have about 12.9 MB rather than 8.0 MB, the
difference being related to the sectors which cannot be allocated, I
assume.  I wasn't able to find an error message like this in the
manuals.  Does anyone know:

(1) what the error means
(2) what significance it has other than lost disk space
(3) how to remedy the problem?

Thanks very much.

-- 
Edwin Barkdoll
barkdoll@cattell.psych.upenn.edu

barkdoll@cattell.psych.upenn.edu (06/05/91)

I wrote:

> While preparing to set up (newfs -Nv /dev/rsd1h) a new file system i
> encountered the following message:
> 
> mkfs -N /dev/rsd1h  15876 36 9 8192 1024 16 10 60 2048 t 0 0 8 7
> Warning: inode blocks/cyl group (32) >= data blocks (20) in last
>     cylinder group. This implies 324 sector(s) cannot be allocated.
>
> [blah, blah, blah]

Well, I resolved the problem -- hopefully this will come out the same
time as the original post so no one will respond unnecessarily.
Thanks anyway.

-- 
Edwin Barkdoll
barkdoll@cattell.psych.upenn.edu

carre@lapin.ens-lyon.fr (Giles Carre) (06/28/91)

In article <3329@brchh104.bnr.ca>, barkdoll@cattell.psych.upenn.edu writes:
|> While preparing to set up (newfs -Nv /dev/rsd1h) a new file system i
|> encountered the following message:
|> 
|> mkfs -N /dev/rsd1h  15876 36 9 8192 1024 16 10 60 2048 t 0 0 8 7
|> Warning: inode blocks/cyl group (32) >= data blocks (20) in last
|>     cylinder group. This implies 324 sector(s) cannot be allocated.
|> /dev/rsd1h:	15552 sectors in 48 cylinders of 9 tracks, 36 sectors
|> 	8.0MB in 3 cyl groups (16 c/g, 2.65MB/g, 1216 i/g)
|> super-block backups (for fsck -b #) at:
|>  32, 5264, 10496,
|> 

It is a warning, not an error. The unallocated sectors are not bad, but
only not used.

On a Sun 207 MB internal disk, you have 324 sectors/cylinder
(9 heads x 36 sector/track). On a 15876 sectors partition, you have 49
entire cylinders.

A BSD file system is made of cylinder groups, each of them whith n
cylinder (default is n = 16 cylinders). So, here, you can have 3 cylinder
groups (3 x 16 + 1 = 49 cyl). The last cylinder is lost for Unix file system.

On this disk, it's impossible to use all the 1254 cylinders with the
default value of 16 cylinders/group.

-- 
Giles Carre
Ecole Normale Superieure   46, allee d'Italie  69364 LYON CEDEX 07 FRANCE
Phone    : (+33) 72 72 84 12	EARN/BITNET 	 : carre@frensl61.bitnet
Fax	 : (+33) 72 72 80 80	FNET/EUNET/UUNET : carre@ensl.ens-lyon.fr