From owner-freebsd-current Sat Oct 17 18:43:01 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA16470 for freebsd-current-outgoing; Sat, 17 Oct 1998 18:43:01 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from Gatekeeper.Alameda.net (gatekeeper.Alameda.net [207.90.181.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA16462 for ; Sat, 17 Oct 1998 18:42:59 -0700 (PDT) (envelope-from ulf@Gatekeeper.Alameda.net) Received: by Gatekeeper.Alameda.net (8.8.8/8.8.6) id SAA28227; Sat, 17 Oct 1998 18:42:39 -0700 (PDT) Message-ID: <19981017184238.A26929@Alameda.net> Date: Sat, 17 Oct 1998 18:42:38 -0700 From: Ulf Zimmermann To: current@FreeBSD.ORG Subject: newfs problems, more information: Reply-To: ulf@Alameda.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i Organization: Alameda Networks, Inc. X-Operating-System: FreeBSD 2.2.6-STABLE Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I have a machine with BETA from 0930 installed: FreeBSD PacHell.TelcoSucks.org 3.0-19980930-BETA FreeBSD 3.0-19980930-BETA #2: Sun Oct 4 05:12:58 PDT 1998 root@PacHell.TelcoSucks.org:/usr/src/sys/compile/PACHELL i386 The system has several disks, two of them are configured like this: PacHell root / # fdisk da2 ******* Working on device /dev/rda2 ******* parameters extracted from in-core disklabel are: cylinders=1109 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=1109 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: The data for partition 2 is: The data for partition 3 is: The data for partition 4 is: sysid 165,(FreeBSD/NetBSD/386BSD) start 1, size 17816084 (8699 Meg), flag 80 (active) beg: cyl 0/ sector 2/ head 0; end: cyl 1023/ sector 63/ head 254 PacHell root / # fdisk da3 ******* Working on device /dev/rda3 ******* parameters extracted from in-core disklabel are: cylinders=1109 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=1109 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: The data for partition 2 is: The data for partition 3 is: The data for partition 4 is: sysid 165,(FreeBSD/NetBSD/386BSD) start 1, size 17816084 (8699 Meg), flag 80 (active) beg: cyl 0/ sector 2/ head 0; end: cyl 1023/ sector 63/ head 254 PacHell root / # disklabel da2 # /dev/rda2c: type: SCSI disk: da2s4 label: flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 255 sectors/cylinder: 16065 cylinders: 1108 sectors/unit: 17816084 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: 17816084 0 unused 0 0 # (Cyl. 0 - 1108*) e: 17816084 0 4.2BSD 1024 8192 16 # (Cyl. 0 - 1108*) PacHell root / # disklabel da3 # /dev/rda3c: type: SCSI disk: da3s4 label: flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 255 sectors/cylinder: 16065 cylinders: 1108 sectors/unit: 17816084 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: 17816084 0 unused 0 0 # (Cyl. 0 - 1108*) e: 17816084 0 4.2BSD 1024 8192 16 # (Cyl. 0 - 1108*) Then these two disks are configured as ccd0: PacHell root / # cat /etc/ccd.conf ccd0 16 none /dev/da2s4e /dev/da3s4e Doing a newfs on it: PacHell root / # newfs /dev/ccd0c newfs: /dev/ccd0c: not a character-special device Warning: 3072 sector(s) in last cylinder unallocated /dev/ccd0c: 35632128 sectors in 8700 cylinders of 1 tracks, 4096 sectors 17398.5MB in 544 cyl groups (16 c/g, 32.00MB/g, 7936 i/g) super-block backups (for fsck -b #) at: 32, 65568, 131104, 196640, 262176, 327712, 393248, 458784, 524320, 589856, .... 35389472, 35455008, 35520544, 35586080, newfs: ioctl (WDINFO): No such process newfs: /dev/ccd0c: can't rewrite disk label PacHell root / # strings /sbin/newfs | grep newfs.c $Id: newfs.c,v 1.25 1998/09/30 07:53:52 grog Exp $ -- Regards, Ulf. --------------------------------------------------------------------- Ulf Zimmermann, 1525 Pacific Ave., Alameda, CA-94501, #: 510-769-2936 Alameda Networks, Inc. | http://www.Alameda.net | Fax#: 510-521-5073 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message