From owner-freebsd-questions@FreeBSD.ORG Wed Jan 7 21:36:40 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0297016A4CE for ; Wed, 7 Jan 2004 21:36:40 -0800 (PST) Received: from upipe0.schmolie.com (upipe0.schmolie.com [207.109.186.11]) by mx1.FreeBSD.org (Postfix) with SMTP id 7960A43D48 for ; Wed, 7 Jan 2004 21:36:38 -0800 (PST) (envelope-from itetcu@tecnik93.com) Received: (qmail 61722 invoked by uid 2525); 8 Jan 2004 05:36:37 -0000 Received: from 81.196.25.19 ( [81.196.25.19]) as user itetcu@localhost by webmail.tecnik93.com with HTTP; Thu, 8 Jan 2004 07:36:37 +0200 Message-ID: <1073540197.3ffcec6575a44@webmail.tecnik93.com> Date: Thu, 8 Jan 2004 07:36:37 +0200 From: itetcu@tecnik93.com To: Sergey 'DoubleF' Zaharchenko References: <1073532884.3ffccfd4be203@webmail.tecnik93.com> <20040108081912.4958e62d.doublef@tele-kom.ru> In-Reply-To: <20040108081912.4958e62d.doublef@tele-kom.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.1 X-Originating-IP: 81.196.25.19 cc: questions@freebsd.org Subject: Re: Yet another SUPERBLOCK/LABEL problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jan 2004 05:36:40 -0000 Scrive Sergey 'DoubleF' Zaharchenko : > On Thu, 8 Jan 2004 05:34:44 +0200 > itetcu@tecnik93.com probably wrote: > > Hi Ion, > > > I've tried to change the sources of newfs (mkfs.c) to also get > the > > bps/cpg value on newfs -N (as the newfs was made from a 5.1 > sysinstall > > without any custom options) but I'm doing something wrong. > > What does the ordinary "newfs -N" say for you? For me, it says: > > Warning: Block size and bytes per inode restrict cylinders per > group to 22. > > /dev/ad2s2a: 2097152 sectors in 512 cylinders of 1 tracks, > 4096 sectors > > 1024.0MB in 24 cyl groups (22 c/g, 44.00MB/g, 10624 i/g) > ^ > /-------------------------------------/ > This values seems to be what you want. > I'm not sure it'll work the same way for 5.x though. it>/mnt# newfs -N /dev/ad3s1f | head /dev/ad3s1f: 36383.7MB (74513744 sectors) block size 16384, fragment size 2048 using 198 cylinder groups of 183.77MB, 11761 blks, 23552 inodes. super-block backups (for fsck -b #) at: 160, 376512, 752864, 1129216, 1505568, 1881920, 2258272, 2634624, 3010976, ..... So no luck here :). I've tried adding some fprintf in the newfs code (like fs_fcg and fs_ncg), but obviously I've did something wrong and the values don't make any sense. Thanks, IOnut