From owner-freebsd-current Sun Mar 29 20:27:20 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA26003 for freebsd-current-outgoing; Sun, 29 Mar 1998 20:27:20 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from sendero.simon-shapiro.org (sendero-fddi.Simon-Shapiro.ORG [206.190.148.2]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id UAA25830 for ; Sun, 29 Mar 1998 20:26:56 -0800 (PST) (envelope-from shimon@simon-shapiro.org) Received: (qmail 10983 invoked from network); 30 Mar 1998 00:35:59 -0000 Received: from localhost.simon-shapiro.org (HELO sendero-fxp0.simon-shapiro.org) (@127.0.0.1) by localhost.simon-shapiro.org with SMTP; 30 Mar 1998 00:35:59 -0000 Message-ID: X-Mailer: XFMail 1.3-alpha-032398 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Date: Sun, 29 Mar 1998 16:35:59 -0800 (PST) Reply-To: shimon@simon-shapiro.org Organization: The Simon Shapiro Foundation From: Simon Shapiro To: freebsd-current@FreeBSD.ORG Subject: Fdisk Guru Solicited Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I have a disk, reporing, at boot: sd2 at scbus0 target 2 lun 0 sd2: type 0 fixed SCSI 2 sd2: Direct-Access 16630MB (34058496 512 byte sectors) I have a file sd2.fdisk: # Fdisk configuration for 6 x 4GB WDs Raid-5 in Senderos's CPU g c16630 h64 s32 p 1 165 2048 34056192 Then I do: fdisk -i -f sd2.fdisk sd2 To this the kernel says: sd2: raw partition size != slice size sd2: start 2048, end 34058239, size 34056192 sd2c: start 2048, end 8390655, size 8388608 So, I modify sd2.fdisk to be: # Fdisk configuration for 6 x 4GB WDs Raid-5 in Senderos's CPU g c16630 h64 s32 p 1 165 2048 8388608 p 2 165 8390656 8388608 p 3 165 16779264 8388608 p 4 165 25167872 8888320 To this, the kernel agrees. Last I checked, these two add up to the same thing. What gives? ---------- Sincerely Yours, Simon Shapiro Shimon@Simon-Shapiro.ORG Voice: 503.799.2313 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message