From owner-freebsd-questions@FreeBSD.ORG Fri Aug 5 13:27:16 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 CD89F16A41F for ; Fri, 5 Aug 2005 13:27:16 +0000 (GMT) (envelope-from gytri@elkraft.ntnu.no) Received: from reg.ime.ntnu.no (reg.ime.ntnu.no [129.241.202.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0757343D46 for ; Fri, 5 Aug 2005 13:27:15 +0000 (GMT) (envelope-from gytri@elkraft.ntnu.no) Received: by reg.ime.ntnu.no (Postfix, from userid 90) id B2DAD143E60; Fri, 5 Aug 2005 15:27:13 +0200 (CEST) Received: from thebe.elkraft.ntnu.no (thebe.elkraft.ntnu.no [129.241.31.111]) by reg.ime.ntnu.no (Postfix) with ESMTP id B2EDE141073; Fri, 5 Aug 2005 15:27:10 +0200 (CEST) Received: by thebe.elkraft.ntnu.no (Postfix, from userid 1001) id 34D764170F; Fri, 5 Aug 2005 15:27:10 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by thebe.elkraft.ntnu.no (Postfix) with ESMTP id 150134170C; Fri, 5 Aug 2005 15:27:10 +0200 (CEST) Date: Fri, 5 Aug 2005 15:27:09 +0200 (CEST) From: Anders Gytri To: freebsd-questions@freebsd.org In-Reply-To: <20050804111853.D4165@thebe.elkraft.ntnu.no> Message-ID: <20050805152442.G7176@thebe.elkraft.ntnu.no> References: <20050804111853.D4165@thebe.elkraft.ntnu.no> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Sanitizer: Anomy mail filter X-Spam-Status: No, hits=-1.5 required=6.0 tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,REPLY_WITH_QUOTES version=2.54 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.54 (1.174.2.17-2003-05-11-exp) X-Spam-Report: ---- Start SpamAssassin results -1.50 points, 6 required; * -0.5 -- Has a valid-looking References header * -0.5 -- Has a In-Reply-To header * -0.5 -- BODY: Contains what looks like a quoted email text * 0.0 -- Reply with quoted text ---- End of SpamAssassin results Cc: Anders Gytri Subject: Re: Strange disklabel X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Aug 2005 13:27:16 -0000 The problem is resolved. I did a "dump, newfs, restore" and now the disklabel looks more reasonable: # disklabel da1s1 # /dev/da1s1: 8 partitions: # size offset fstype [fsize bsize bps/cpg] c: 2927171457 0 unused 0 0 # "raw" part, don't edit d: 209715200 0 4.2BSD 2048 16384 28552 e: 1048576000 209715200 4.2BSD 2048 16384 28552 f: 1668880257 1258291200 4.2BSD 2048 16384 28552 I now consider this subject for closed. Anders Gytri ----------------------------------------------------------- On Thu, 4 Aug 2005, Anders Gytri wrote: > I have recently installed a big disk (1.4 TB sata raid with scsi > interface) on an i386 computer running FreeBSD 5.4-RELEASE-p1. I have 3 > partitions on the FreeBSD slice. The disk is working OK, but the disklabel > seem a little strange. For one of the partitions the "fsize bsize bps/cpg" > values are "0 0 0". For the other two partitions these values are > "2048 16384 28552" which I beleve is more normal. The filesystem is > initialized (with newfs). fsck gives no errors. > > Partial or full output from the commands "dmesg", "df", "mount", "fdisk > da1", "bsdlabel -A da1s1", "tunefs -p /dev/da1s1e", "fsck /dev/da1s1e" and > "dumpfs /dev/da1s1e" is attached below. > > Should I worry about this, or can I ignore it. > > Anders Gytri > ----------------------------------------------------- > # dmesg > da1 at ahd0 bus 0 target 0 lun 0 > da1: Fixed Direct Access SCSI-3 device > da1: 160.000MB/s transfers (80.000MHz, offset 127, 16bit), Tagged Queueing > Enabled > da1: 1429284MB (2927173632 512 byte sectors: 255H 63S/T 182208C) > ----------------------------------------------------- > # df > Filesystem 1K-blocks Used Avail Capacity Mounted on > /dev/da1s1e 507788836 47657476 419508254 10% /home > ----------------------------------------------------- > # mount > /dev/da1s1e on /home (ufs, NFS exported, local, soft-updates) > ----------------------------------------------------- > # fdisk da1 > ******* Working on device /dev/da1 ******* > parameters extracted from in-core disklabel are: > cylinders=182208 heads=255 sectors/track=63 (16065 blks/cyl) > > Figures below won't work with BIOS for partitions not in cyl 1 > parameters to be used for BIOS calculations are: > cylinders=182208 heads=255 sectors/track=63 (16065 blks/cyl) > > Media sector size is 512 > Warning: BIOS sector numbering starts with sector 1 > Information from DOS bootblock is: > The data for partition 1 is: > sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) > start 63, size 2927171457 (1429282 Meg), flag 80 (active) > beg: cyl 0/ head 1/ sector 1; > end: cyl 959/ head 254/ sector 63 > The data for partition 2 is: > > The data for partition 3 is: > > The data for partition 4 is: > > ----------------------------------------------------- > # bsdlabel -A da1s1 > # /dev/da1s1: > type: unknown > disk: amnesiac > label: > flags: > bytes/sector: 512 > sectors/track: 63 > tracks/cylinder: 255 > sectors/cylinder: 16065 > cylinders: 182207 > sectors/unit: 2927171457 > rpm: 3600 > interleave: 1 > trackskew: 0 > cylinderskew: 0 > headswitch: 0 # milliseconds > track-to-track seek: 0 # milliseconds > drivedata: 0 > > 8 partitions: > # size offset fstype [fsize bsize bps/cpg] > c: 2927171457 0 unused 0 0 # "raw" part, > don't edit > d: 209715200 0 4.2BSD 2048 16384 28552 > e: 1048576000 209715200 4.2BSD 0 0 0 > f: 1668880257 1258291200 4.2BSD 2048 16384 28552 > ----------------------------------------------------- > # tunefs -p /dev/da1s1e > tunefs: ACLs: (-a) disabled > tunefs: MAC multilabel: (-l) disabled > tunefs: soft updates: (-n) enabled > tunefs: maximum blocks per file in a cylinder group: (-e) 2048 > tunefs: average file size: (-f) 16384 > tunefs: average number of files in a directory: (-s) 64 > tunefs: minimum percentage of free space: (-m) 8% > tunefs: optimization preference: (-o) time > tunefs: volume label: (-L) > ----------------------------------------------------- > # fsck /dev/da1s1e > ** /dev/da1s1e > ** Last Mounted on /home > ** Phase 1 - Check Blocks and Sizes > ** Phase 2 - Check Pathnames > ** Phase 3 - Check Connectivity > ** Phase 4 - Check Reference Counts > ** Phase 5 - Check Cyl groups > 36339 files, 23828738 used, 230065680 free (712 frags, 28758121 blocks, > 0.0% fragmentation) > ----------------------------------------------------- > # dumpfs /dev/da1s1e > magic 19540119 (UFS2) time Thu Aug 4 10:32:28 2005 > superblock location 65536 id [ 42a2003d 11af58d9 ] > ncg 2787 size 262144000 blocks 253894418 > bsize 16384 shift 14 mask 0xffffc000 > fsize 2048 shift 11 mask 0xfffff800 > frag 8 shift 3 fsbtodb 2 > minfree 8% optim time symlinklen 120 > maxbsize 16384 maxbpg 2048 maxcontig 8 contigsumsize 8 > nbfree 28758121 ndir 423 nifree 65603083 nffree 712 > bpg 11761 fpg 94088 ipg 23552 > nindir 2048 inopb 64 maxfilesize 140806241583103 > sbsize 2048 cgsize 16384 csaddr 3000 cssize 45056 > sblkno 40 cblkno 48 iblkno 56 dblkno 3000 > cgrotor 1939 fmod 0 ronly 0 clean 1 > avgfpdir 64 avgfilesize 16384 > flags soft-updates > fsmnt /home > volname swuid 0 > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >