From owner-freebsd-current Wed Apr 5 18:24:16 1995 Return-Path: current-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id SAA07459 for current-outgoing; Wed, 5 Apr 1995 18:24:16 -0700 Received: from gndrsh.aac.dev.com (gndrsh.aac.dev.com [198.145.92.241]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id SAA07452 for ; Wed, 5 Apr 1995 18:24:13 -0700 Received: (from rgrimes@localhost) by gndrsh.aac.dev.com (8.6.8/8.6.6) id SAA01996; Wed, 5 Apr 1995 18:23:48 -0700 From: "Rodney W. Grimes" Message-Id: <199504060123.SAA01996@gndrsh.aac.dev.com> Subject: Re: Label/slices : how to add a disk ? To: roberto@blaise.ibp.fr Date: Wed, 5 Apr 1995 18:23:48 -0700 (PDT) Cc: freebsd-current@FreeBSD.org, bde@zeta.org.au In-Reply-To: <199504060112.DAA00365@keltia.frmug.fr.net> from "Ollivier Robert" at Apr 6, 95 03:12:48 am X-Mailer: ELM [version 2.4 PL23] Content-Type: text Content-Length: 1909 Sender: current-owner@FreeBSD.org Precedence: bulk > > Hello, > > I have another problem with the slicing code... > > I just got a brand new disk, Conner CFP1080S, geometry reported by boot -v > is (3659/6/96). The standard translation would give me 1030/64/32. > > I've been unable to even put a label on it :-( > > Probe messages : > > Apr 6 02:44:26 keltia /kernel: (bt0:2:0): "CONNER CFP1080S 3939" is a type 0 fixed SCSI 2 > Apr 6 02:44:26 keltia /kernel: sd2(bt0:2:0): Direct-Access 1030MB (2110812 512 byte sectors) > > fdisk cannot get the correct geometry for it : > > fdisk /dev/sd2 > ******* Working on device /dev/sd2 ******* > parameters extracted from in-core disklabel are: > cylinders=3658 heads=64 sectors/track=32 (2048 blks/cyl) > ^^^^ ^^^^ ^^^ > good wrong wrong Nope, use the override what the BIOS thinks and tell it cyliders=1030, heads=64, sectors/track=32. > Figures below won't work with BIOS for partitions not in cyl 1 > parameters to be used for BIOS calculations are: > cylinders=3658 heads=64 sectors/track=32 (2048 blks/cyl) > > Warning: BIOS sector numbering starts with sector 1 > Information from DOS bootblock is: > The data for partition 0 is: > > The data for partition 1 is: > > The data for partition 2 is: > > The data for partition 3 is: > sysid 165,(FreeBSD/NetBSD/386BSD) > start 0, size 2097152 (1024 Meg), flag 80 > beg: cyl 0/ sector 0/ head 0; ^^^^^^^^^ Redo the fdisk -u, override the calculation of beg/end. Use cyl 0, sect 1, head 0 for the beg. The default caclulations screw up and put 0 in for the starting sector :-(. > end: cyl 1023/ sector 32/ head 63 > > fdisk /dev/rsd2c ... rest is irrelevant until the above is fixed. -- Rod Grimes rgrimes@gndrsh.aac.dev.com Accurate Automation Company Custom computers for FreeBSD