From owner-freebsd-scsi Fri Jan 17 23:36:12 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id XAA29850 for freebsd-scsi-outgoing; Fri, 17 Jan 1997 23:36:12 -0800 (PST) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id XAA29843; Fri, 17 Jan 1997 23:36:09 -0800 (PST) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.3/8.6.9) id SAA10696; Sat, 18 Jan 1997 18:33:33 +1100 Date: Sat, 18 Jan 1997 18:33:33 +1100 From: Bruce Evans Message-Id: <199701180733.SAA10696@godzilla.zeta.org.au> To: freebsd-hackers@freebsd.org, lada@ws2301.gud.siemens.co.at Subject: Re: TORAY PD disktab entry Cc: freebsd-scsi@freebsd.org Sender: owner-freebsd-scsi@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >by popular request I submit the following disktab entry for inclusion in >/etc/disktab /etc/disktab should almost never be used. Just use the "auto" entry, or equivalently, read the label off the whole disk, modify it to suit the slice and write it back using -R. >pd634|Matsushita 634 MB PhaseChange Drive|\ > :ty=removable:dt=SCSI:se#512:nt#64:ns#32:nc#634:ts#1:rm#4800:\ > :pc#1298431:oc#0:\ > :pa#1298431:oa#0:ta=4.2BSD:ba#8192:fa#1024: Either ns is 1 too large here, or pc is 1 too small, probably the first (ns*nt*nc = 1298432). If pc is correct, change nc to 634 and give the total number of sectors as su#1298431. >The fdisk output/input was: > >cyl: 634 head: 64 sec: 32 >partition 0: > sysid: 165 > start 1, size 1298431, falg 0 > beg: cyl 0/ sec 2/ head 0/ > end: cyl 634/ sec 1/ head 0/ Either the end C/H/S is 1 too large here, or the size is 1 too small, probably the first. The first sector on the (presumably nonexistent) 635th cylinder is used. This should cause an error somewhere. The end C/H/S must end on the last sector of a cylinder for FreeBSD to detect the geometry. Bruce