From owner-freebsd-current Fri Aug 23 1:10:12 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 72D4937B400 for ; Fri, 23 Aug 2002 01:10:05 -0700 (PDT) Received: from patett.willbe6.org (patett.willbe6.org [211.132.31.124]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4EBA343E77 for ; Fri, 23 Aug 2002 01:10:04 -0700 (PDT) (envelope-from yakk@willbe6.org) Received: from marlone.willbe6.org (marlone.willbe6.org [IPv6:3ffe:505:2055:be06:203:baff:fe08:6925]) by patett.willbe6.org (8.12.5/8.12.5) with ESMTP id g7N8A2DO035646 for ; Fri, 23 Aug 2002 17:10:02 +0900 (JST) (envelope-from yakk@willbe6.org) Date: Fri, 23 Aug 2002 17:10:02 +0900 Message-ID: <86d6saq9lx.wl@marlone.willbe6.org> From: Kazutoshi Kubota To: current@freebsd.org Subject: newfs is probably a bit strange User-Agent: Wanderlust/2.9.14 (Unchained Melody) Emacs/21.2 Mule/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello all, My harddisk has four slices, and FreeBSD uses ad0s[234] on that disk. The following is a partition layout on /dev/ad0s3: # /dev/ad0s3c: type: ESDI disk: ad0s3 label: flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 255 sectors/cylinder: 16065 cylinders: 509 sectors/unit: 8177085 (snip) 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 262144 0 4.2BSD 1024 8192 16 # (Cyl. 0 - 16*) c: 8177085 0 unused 0 0 # (Cyl. 0 - 508) e: 1048576 262144 4.2BSD 1024 8192 16 # (Cyl. 16*- 81*) f: 1048576 1310720 4.2BSD 1024 8192 16 # (Cyl. 81*- 146*) g: 5817789 2359296 4.2BSD 1024 8192 16 # (Cyl. 146*- 508*) So, run 'newfs /dev/ad0s3e', then I get following results. yakk@schia[02-08-23 16:36]% sudo newfs /dev/ad0s3e /dev/ad0s3e: 512.0MB (1048576 sectors) block size 8192, fragment size 1024 using 12 cylinder groups of 45.12MB, 5776 blks, 11584 inodes. super-block backups (for fsck -b #) at: 32, 92448, 184864, 277280, 369696, 462112, 554528, 646944, 739360, 831776, 924192, 1016608 yakk@schia[02-08-23 16:36]% sudo disklabel ad0s3 # /dev/ad0s3c: (snip) 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 262144 0 4.2BSD 1024 8192 16 # (Cyl. 0 - 16*) c: 8177085 0 unused 0 0 # (Cyl. 0 - 508) e: 1048576 262144 4.2BSD 1024 8192 46208 # (Cyl. 16*- 81*) f: 1048576 1310720 4.2BSD 1024 8192 16 # (Cyl. 81*- 146*) g: 5817789 2359296 4.2BSD 1024 8192 16 # (Cyl. 146*- 508*) It is a strange... And I try 'newfs -c xx /dev/ad0s3e'. Then disklabel says: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 262144 0 4.2BSD 1024 8192 16 # (Cyl. 0 - 16*) c: 8177085 0 unused 0 0 # (Cyl. 0 - 508) e: 1048576 262144 4.2BSD 1024 8192 256 # (Cyl. 16*- 81*) f: 1048576 1310720 4.2BSD 1024 8192 16 # (Cyl. 81*- 146*) g: 5817789 2359296 4.2BSD 1024 8192 16 # (Cyl. 146*- 508*) It is taken same results that xx is between 1 and 256. What is happening? Or what am I wrong? Regards, ----- Kazutoshi Kubota To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message