From owner-freebsd-alpha Mon May 1 12: 6:43 2000 Delivered-To: freebsd-alpha@freebsd.org Received: from mass.cdrom.com (adsl-63-202-176-114.dsl.snfc21.pacbell.net [63.202.176.114]) by hub.freebsd.org (Postfix) with ESMTP id 9F4DB37B875 for ; Mon, 1 May 2000 12:06:40 -0700 (PDT) (envelope-from msmith@mass.cdrom.com) Received: from mass.cdrom.com (localhost [127.0.0.1]) by mass.cdrom.com (8.9.3/8.9.3) with ESMTP id MAA02961; Mon, 1 May 2000 12:14:55 -0700 (PDT) (envelope-from msmith@mass.cdrom.com) Message-Id: <200005011914.MAA02961@mass.cdrom.com> X-Mailer: exmh version 2.1.1 10/15/1999 To: nm Cc: freebsd-alpha@freebsd.org Subject: Re: more disk trouble In-reply-to: Your message of "Mon, 01 May 2000 14:53:22 EDT." <3.0.32.20000501145321.038ce7d0@mail.vt.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 01 May 2000 12:14:55 -0700 From: Mike Smith Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > So I just dropped in a new 18GB uw scsi disk. > Here is what comes up in the boot messages: > > da1 at ahc0 bus 0 target 1 lun 0 > da1: Fixed Direct Access SCSI-2 device > da1: 40.000MB/s transfers (20.000MHz, offset 8, 16bit), Tagged Queueing > Enabled > da1: 17366MB (35566000 512 byte sectors: 255H 63S/T 2213C) > > But when I try to disklabel it, this is what I get :( > > bash-2.03# disklabel /dev/rda1c > disklabel: ioctl DIOCGDINFO: Invalid argument > > If I type disklabel /dev/rda1 I can view it but not > save any changes. > > 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: disklabel -e da1 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 -- \\ Give a man a fish, and you feed him for a day. \\ Mike Smith \\ Tell him he should learn how to fish himself, \\ msmith@freebsd.org \\ and he'll hate you for a lifetime. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message