From owner-freebsd-alpha Mon May 1 13:57:35 2000 Delivered-To: freebsd-alpha@freebsd.org Received: from sable.cc.vt.edu (sable.cc.vt.edu [128.173.16.30]) by hub.freebsd.org (Postfix) with ESMTP id 3EE5237C1D8; Mon, 1 May 2000 13:50:39 -0700 (PDT) (envelope-from nm@vt.edu) Received: from mail.vt.edu (gkar.cc.vt.edu [128.173.16.40]) by sable.cc.vt.edu (8.9.3/8.9.3) with ESMTP id PAA28592; Mon, 1 May 2000 15:32:20 -0400 (EDT) Received: from dog ([198.82.106.223]) by gkar.cc.vt.edu (Sun Internet Mail Server sims.3.5.2000.01.05.12.18.p9) with SMTP id <0FTW0003TBLVTH@gkar.cc.vt.edu>; Mon, 1 May 2000 15:32:19 -0400 (EDT) Date: Mon, 01 May 2000 15:31:26 -0400 From: nm Subject: Re: more disk trouble X-Sender: nmanisca@mail.vt.edu To: Mike Smith Cc: freebsd-alpha@freebsd.org Message-id: <3.0.32.20000501153125.038d02e0@mail.vt.edu> MIME-version: 1.0 X-Mailer: Windows Eudora Pro Version 3.0 (32) Content-type: text/plain; charset=us-ascii Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org At 12:14 PM 5/1/00 -0700, Mike Smith wrote: >> >> bash-2.03# disklabel /dev/rda1c >> disklabel: ioctl DIOCGDINFO: Invalid argument >> What am I doing wrong? > >You don't apply disklabel to a partition, you apply it to a device or >slice. Use the canonical name to avoid embarrassment, eg: right. >disklabel -e da1 Doesn't disklabel translates da1 to /dev/rda1c? The man page seems to indiate that it does: Disk device name All disklabel forms require a disk device name, which should always be the raw "complete" (or "c") partition, for example /dev/rda0c. disklabel understands the abbreviation da0, which it converts internally to /dev/rda0c. >In your case, there is already a label on the disk, and disklabel is very >protective of existing labels (for good reason). You need to cheat and >zero it out first: > >dd if=/dev/zero of=/dev/da1 count=16 I was looking for an option to do this from disklabel but I didn't see one. Wouldn't this be a nice feature to have on FreeBSD? Well I tried this and I get the same results as before :( Nick Maniscalco BTW: Thanks for the speedy reply! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message