From owner-freebsd-questions Sat Jun 20 05:55:03 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA21138 for freebsd-questions-outgoing; Sat, 20 Jun 1998 05:55:03 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from nanguo.chalmers.com.au (gateway.chalmers.com.au [203.1.96.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id FAA21130 for ; Sat, 20 Jun 1998 05:54:58 -0700 (PDT) (envelope-from robert@chalmers.com.au) Received: from chalmers.com.au (carbon.chalmers.com.au [203.1.96.26]) by nanguo.chalmers.com.au (8.8.8/8.8.8) with ESMTP id WAA02203; Sat, 20 Jun 1998 22:54:04 +1000 (EST) Message-ID: <358BB38E.405B3304@chalmers.com.au> Date: Sat, 20 Jun 1998 23:05:18 +1000 From: Robert Chalmers Reply-To: robert@chalmers.com.au Organization: chalmers.com.au X-Mailer: Mozilla 4.04 [en] (Win95; I) MIME-Version: 1.0 To: djv@bedford.net, freebsd-questions Subject: Re: disklabels and scsi References: <199806201235.IAA10858@lucy.bedford.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi Dave, I think perhaps you are missing my point. I'm not trying to get anything perfect here. This is all purely experimental. I'm trying to discover why the two programs, disklabel, and scsiformat return different values to me on the one hand, and how to determine what the 'best' approach is to get a useable total number of cylinders to begin with, on the other hand. experimental. purely. To answer your points though. disklabel -r -w sd1 auto does actually return the number 4110000 from the hardware, as does scsiformat -r. It also returns fairly arbitrary sector/track numbers as you mention. However, running disklabel -r -w /dev/rsd1c C2490A sd1 then proceeds to build a disklabel that has a total cylinder number that is actually larger than the disk has. Even when I put the _right_ numbers into the disktab. Which of course makes it very difficult to work out where the _actual_ end of disk is! unless you are watching.... In this case _any other number than 4110000_ will not work, even though the values returned by disklabel are different. Like I say, purely experimental. I'll get sick of it soon, run it up and forget it. ! :-) I just wondered if any one else had been experimenting along similar lines at all. I guess not. cheers Bob > Dave -- Support Whirled Peas. Business in China? China House robert@chalmers.com.au ph:61 7 49440357 fx:61 7 49578425 China House Uses Webposition to ensure Top Spot in Searches http://www.chalmers.com.au/ChinaHouse/Business/webposition To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message