From owner-freebsd-bugs Sat Aug 15 16:10:56 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA29391 for freebsd-bugs-outgoing; Sat, 15 Aug 1998 16:10:56 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from george.lbl.gov (george.lbl.gov [131.243.2.12]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA29378 for ; Sat, 15 Aug 1998 16:10:53 -0700 (PDT) (envelope-from jin@george.lbl.gov) Received: (from jin@localhost) by george.lbl.gov (8.8.8/LBL-ITG) id QAA10632; Sat, 15 Aug 1998 16:10:18 -0700 (PDT) Date: Sat, 15 Aug 1998 16:10:18 -0700 (PDT) From: Jin Guojun (ITG staff) Message-Id: <199808152310.QAA10632@george.lbl.gov> To: bde@zeta.org.au, freebsd-bugs@FreeBSD.ORG Subject: Re: bin/7614: disklabel fails to write labal on scsi disk Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org } >iss# disklabel -rw sd0 auto } >disklabel: /dev/rsd0c: Undefined error: 0 } >iss# disklabel -rwB sd0 auto } >disklabel: No space left on device } > } >iss# ^0^1 } >disklabel -rwB sd1 auto } >disklabel: No space left on device } > } >iss# tail /etc/disktab } ># Max :pc#8386733:oc#0: generated from FreeBSD installation FDISK } >st15230n|Seagate HAWK 4 Family 4.2GB SCSI:\ } > :dt=SCSI:ty=winchester:se#512:nt#19:ns#110:nc#4012:rm#5411: \ } > :pa#8192:oa#0:ta=4.2BSD:ba#4096:fa#512: \ } > :pc#8385080:oc#0: \ } > :pe#8376888:oe#8192:te=4.2BSD:be#4096:fe#512: } > } >iss# disklabel -w sd0 st15230n } >disklabel: No space left on device } > } >Is this NCR problem or a general SCSI disklabel problem? } } This is a user error (attempting to write a label that specifies a } disk size or partition size larger than the slice). Most likely a } label suitable for covering the whole disk combined with a slice } *not* covering the whole disk. The `auto' label only applies to } the whole disk. I am confused here. None of above commands is invoked to do things with a slice. No where says sd#s#. This is the same command used for 3.0-SNAP: eubie# uname -a FreeBSD eubie.lbl.gov 3.0-980520-SNAP FreeBSD 3.0-980520-SNAP #0: Thu Jun 11 12:27:04 PDT 1998 root@eubie.lbl.gov:/usr/src/sys/compile/MinMax i386 eubie# disklabel sd2 disklabel: ioctl DIOCGDINFO: Invalid argument eubie# disklabel -rw sd2 auto eubie# disklabel sd2 # /dev/rsd2c: type: unknown disk: label: flags: bytes/sector: 512 sectors/track: 168 tracks/cylinder: 20 sectors/cylinder: 3360 cylinders: 5292 sectors/unit: 17783112 rpm: 3600 interleave: 1 trackskew: 0 cylinderskew: 0 headswitch: 0 # milliseconds track-to-track seek: 0 # milliseconds drivedata: 0 8 partitions: # size offset fstype [fsize bsize bps/cpg] c: 17783112 0 unused 0 0 # (Cyl. 0 - 5292*) Does this imply that fdisk did not create a volid slice for disklabel? -Jin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message