Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Jun 1998 07:41:02 -0400 (EDT)
From:      CyberPeasant <djv@bedford.net>
To:        robert@chalmers.com.au
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Continuing the sd1 disk size errors/earnings from kernel. Complex
Message-ID:  <199806191141.HAA10893@lucy.bedford.net>
In-Reply-To: <3589E8F8.FDE960DD@chalmers.com.au> from Robert Chalmers at "Jun 19, 98 02:28:40 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199806191141.HAA10893>