From owner-freebsd-questions Sun Jun 7 22:32:28 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA05187 for freebsd-questions-outgoing; Sun, 7 Jun 1998 22:32:28 -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 WAA05154 for ; Sun, 7 Jun 1998 22:32:14 -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 PAA07434 for ; Mon, 8 Jun 1998 15:31:32 +1000 (EST) Message-ID: <357B7990.FAE044D6@chalmers.com.au> Date: Mon, 08 Jun 1998 15:41:36 +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: freebsd-questions Subject: Disktab and Disklabel curiosities. One works, one doesn't! Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Getting closer: by doing the following; dd if=/dev/zero of=/dev/rsd1 bs=1k count=1 disklabel -Brw sd1 auto I managed to create a label c on the scsi drive. disklabel sd1 produced this, minus the a and b partitions; # /dev/rsd1c: type: SCSI disk: sd1s1 label: flags: bytes/sector: 512 sectors/track: 16 tracks/cylinder: 51 sectors/cylinder: 816 cylinders: 5036 sectors/unit: 4110000 rpm: 3600 interleave: 1 trackskew: 0 cylinderskew: 0 headswitch: 0 # milliseconds track-to-track seek: 0 # milliseconds drivedata: 0 3 partitions: # size offset fstype [fsize bsize bps/cpg] a: 2055000 0 unused 0 0 # (Cyl. 0 - 2518*) b: 2055000 2055000 unused 0 0 # (Cyl. 2518*- 5036*) c: 4110000 0 unused 0 0 # (Cyl. 0 - 5036*) Not finished yet, I then did a disklabel -e -r sd1 and added the a: and b: partitions. exactly as you see them above. Upon quitting the eidtor, it all wrote to disk perfectly!!! I discovered of course that you cant start with c: e: f:... durrr. Now the tricky bit. Do the same with the /etc/disktab entry: I used this disktab entry. c2490a|Compaq C2490A SCSI:\ :ty=winchester:dt=SCSI:ns#16:nt#51:nc#5036:sf:\ :oa#0:pa#2055000:ba#8192:fc#1024:\ :ob#2055000:pb#2055000:bb#8192:fc#1024:\ :oc#0:pc#4110000:bc#8192:fc#1024: doing a disklabel -w -r /dev/rsd1c c2490a sd1s1 produces the two errors, partition b: partition extends past end of unit partition c: partition extends past end of unit What gives. One type of enty works, one doesn't. any ideas anyone? thanks Bob -- 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