From owner-freebsd-questions Fri Jun 19 04:41:40 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id EAA22242 for freebsd-questions-outgoing; Fri, 19 Jun 1998 04:41:40 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from lucy.bedford.net (lucy.bedford.net [206.99.145.54]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id EAA22197 for ; Fri, 19 Jun 1998 04:41:20 -0700 (PDT) (envelope-from listread@lucy.bedford.net) Received: (from listread@localhost) by lucy.bedford.net (8.8.8/8.8.8) id HAA10893; Fri, 19 Jun 1998 07:41:02 -0400 (EDT) (envelope-from listread) Message-Id: <199806191141.HAA10893@lucy.bedford.net> Subject: Re: Continuing the sd1 disk size errors/earnings from kernel. Complex In-Reply-To: <3589E8F8.FDE960DD@chalmers.com.au> from Robert Chalmers at "Jun 19, 98 02:28:40 pm" To: robert@chalmers.com.au Date: Fri, 19 Jun 1998 07:41:02 -0400 (EDT) Cc: freebsd-questions@FreeBSD.ORG X-no-archive: yes Reply-to: djv@bedford.net From: CyberPeasant X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Robert Chalmers wrote: > Boot sequence messages; > > /kernel: sd1: invalid primary partition table: no magic > /kernel: sd1: raw partition size != slice size > /kernel: sd1: start 0, end 4109999, size 4110000 > /kernel: sd1c: start 0, end 5386239, size 5386240 > /kernel: sd1: truncating raw partition > > > Output from disklabel sd1; > > # /dev/rsd1c: > type: SCSI > disk: c2490a > label: sd1s1 > flags: > bytes/sector: 512 > sectors/track: 32 > tracks/cylinder: 64 > sectors/cylinder: 2048 > cylinders: 2006 > sectors/unit: 4110000 > rpm: 3600 > interleave: 1 > trackskew: 0 > cylinderskew: 0 > headswitch: 0 # milliseconds > track-to-track seek: 0 # milliseconds > drivedata: 0 > > 5 partitions: > # size offset fstype [fsize bsize bps/cpg] > a: 2055000 0 4.2BSD 0 0 0 # (Cyl. 0 - 1003*) > b: 336640 2055000 swap # (Cyl. 1003*- 1167*) > c: 4110000 0 unused 0 0 # (Cyl. 0 - 2006*) > d: 1497300 2391640 4.2BSD 0 0 0 # (Cyl. 1167*- 1898*) > e: 1497300 2612700 4.2BSD 0 0 0 # (Cyl. 1275*- 2006*) > > > > /etc/disktab entry; > > c2490a|Compaq C2490A SCSI:\ > :ty=winchester:dt=SCSI:ns#32:nt#64:nc#2630:\ > :pa#2055000:oa#0:ta=4.2BSD:\ > :pb#336640:ob#2055000:tb=swap:\ > :pc#5386240:oc#0:\ > :pd#1497300:od#2391640:td=4.2BSD:\ > :pe#1497300:oe#3888940:te=4.2BSD: > pe+oe= 5386240 sectors/unit = 4110000 In the disklabel, e overlaps d. In the disktab 2630*64*32=5386240 ~= 2.7 GB or 2.57 depending on what a GB is today. Compaq calls this a 2.1 GB disk. As far as I can tell the disktab is in error, referencing non existant sectors. http://www.compaq.com/support/techpubs/qrg/volume2/appbhdcf.htm The disklabel appears not so much in error, as not doing what you probably want. You don't want d: and e: to overlap, I bet. what does dmesg say about it? Dave -- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message