From owner-freebsd-current Wed Apr 5 18:16:43 1995 Return-Path: current-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id SAA07369 for current-outgoing; Wed, 5 Apr 1995 18:16:43 -0700 Received: from ibp.ibp.fr (ibp.ibp.fr [132.227.60.30]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id SAA07361 for ; Wed, 5 Apr 1995 18:16:40 -0700 Received: from blaise.ibp.fr (blaise.ibp.fr [132.227.60.1]) by ibp.ibp.fr (8.6.12/jtpda-5.0) with ESMTP id DAA11096 ; Thu, 6 Apr 1995 03:15:35 +0200 Received: from (uucp@localhost) by blaise.ibp.fr (8.6.12/jtpda-5.0) with UUCP id DAA11472 ; Thu, 6 Apr 1995 03:15:34 +0200 Received: (from roberto@localhost) by keltia.frmug.fr.net (8.6.11/keltia-uucp-1.21) id DAA00365; Thu, 6 Apr 1995 03:12:49 +0200 From: Ollivier Robert Message-Id: <199504060112.DAA00365@keltia.frmug.fr.net> Subject: Label/slices : how to add a disk ? To: freebsd-current@FreeBSD.org (FreeBSD Current Users' list) Date: Thu, 6 Apr 1995 03:12:48 +0200 (MET DST) Cc: bde@zeta.org.au (Bruce Evans) Reply-To: roberto@blaise.ibp.fr (Ollivier Robert) X-Operating-System: FreeBSD 2.1.0-Development ctm#514 X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Content-Length: 3211 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 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; end: cyl 1023/ sector 32/ head 63 fdisk /dev/rsd2c fdisk: Can't get disk parameters on /dev/rsd2c; supplying dummy ones ******* Working on device /dev/rsd2c ******* parameters extracted from in-core disklabel are: cylinders=1 heads=1 sectors/track=1 (1 blks/cyl) parameters to be used for BIOS calculations are: cylinders=1 heads=1 sectors/track=1 (1 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; end: cyl 1023/ sector 32/ head 63 I've tried to partition it with fdisk with a fair success and get these messages : Apr 6 02:45:51 keltia /kernel: sd2s4: start 1, end = 2097152, size 2097152: OK Apr 6 02:46:20 keltia /kernel: sd2s4: start 1, end = 2097152, size 2097152: OK Apr 6 02:46:20 keltia /kernel: sd2: cannot find label (no disk label) My /etc/disktab entry is like this : # # Conner CFP1080S (FreeBSD 2.1.x) # # a = /new # cfp1080s|Conner CFP1080S 1 GB SCSI-2:\ :dt=SCSI:ty=winchester:\ :nc#1030:ns#32:nt#64:se#512:rm#6300:\ :oa#0:pa#2097152:ta=4.2BSD:ba#8192:fa#1024: disklabel says this : disklabel -w -r sd2 cfp1080s 201 [3:09] root@keltia:~# disklabel -w -r sd2 cfp1080s write: No such file or directory and i got this in messages : sd2s4: start 0, end = 2097151, size 2097152 sd2s4: C/H/S start 0/0/0 (4294967295) != start 0: invalid Why is this slice 4 ? There is no DOS partition on the disk, only big one for FreeBSD... I know the disk is more than 1024 cyl even with standard translation, is this my problem ? I don't understand (Bruce help !) :-( -- Ollivier ROBERT -=- The daemon is FREE! -=- roberto@keltia.frmug.fr.net FreeBSD keltia 2.1.0-Development #13: Sun Apr 2 21:38:04 MET DST 1995