From owner-freebsd-sparc Wed Oct 30 7:58:16 2002 Delivered-To: freebsd-sparc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C18DB37B401; Wed, 30 Oct 2002 07:58:14 -0800 (PST) Received: from k6.locore.ca (k6.locore.ca [198.96.117.170]) by mx1.FreeBSD.org (Postfix) with ESMTP id 02ED943E77; Wed, 30 Oct 2002 07:58:14 -0800 (PST) (envelope-from jake@k6.locore.ca) Received: from k6.locore.ca (jake@localhost.locore.ca [127.0.0.1]) by k6.locore.ca (8.12.5/8.12.5) with ESMTP id g9UGBCbd028480; Wed, 30 Oct 2002 11:11:12 -0500 (EST) (envelope-from jake@k6.locore.ca) Received: (from jake@localhost) by k6.locore.ca (8.12.5/8.12.5/Submit) id g9UGBCXK028479; Wed, 30 Oct 2002 11:11:12 -0500 (EST) Date: Wed, 30 Oct 2002 11:11:11 -0500 From: Jake Burkholder To: Alex Deiter Cc: sparc64@FreeBSD.ORG, phk@FreeBSD.ORG Subject: Re: Creating a Disk Label Message-ID: <20021030111111.D22677@locore.ca> References: <067f01c27fee$9b2fcba0$6301320a@dav> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <067f01c27fee$9b2fcba0$6301320a@dav>; from tiamat@komi.mts.ru on Wed, Oct 30, 2002 at 11:30:28AM +0300 Sender: owner-freebsd-sparc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Apparently, On Wed, Oct 30, 2002 at 11:30:28AM +0300, Alex Deiter said words to the effect of; > I cannot create disk label on new HDD: > > # uname -a > FreeBSD serafima 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Wed Oct 30 10:15:02 MSK > 2002 root@selma.komi.mts.ru:/usr/obj/usr/src/sys/NET sparc64 > > # mount > 1.1.1.1:/devel/sparc64/netboot on / (nfs, read-only) > devfs on /dev (devfs, local) > /dev/md1 on /var (ufs, local, soft-updates) > /dev/md2 on /tmp (ufs, local, soft-updates) > > # dmesg | grep da0 > da0 at sym0 bus 0 target 0 lun 0 > da0: Fixed Direct Access SCSI-3 device > da0: 80.000MB/s transfers (40.000MHz, offset 31, 16bit), Tagged Queueing > Enabled > da0: 34732MB (71132959 512 byte sectors: 255H 63S/T 4427C) > > # ls -l /dev/da0* > crw-r----- 1 root operator 4, 0 Oct 30 12:16 /dev/da0 > crw-r----- 1 root operator 4, 10 Oct 30 12:17 /dev/da0c > > # disklabel -w -r -B -n da0 auto > Warning, write to disk label supressed - label was as follows: > # /dev/da0c: > type: unknown > disk: amnesiac > label: > flags: > bytes/sector: 512 > sectors/track: 63 > tracks/cylinder: 255 > sectors/cylinder: 16065 > cylinders: 4427 > sectors/unit: 71132959 > 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: 71132959 0 unused 0 0 # (Cyl. 0 - > 4427*) > > # disklabel -w -r -B da0 auto > > # disklabel da0 > disklabel: ioctl DIOCGDINFO: Inappropriate ioctl for device Use disklabel -r. The GEOM sun label module doesn't implement all the necessary ioctls. Jake To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-sparc" in the body of the message