From owner-freebsd-hackers Wed Mar 1 11:11:49 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mass.cdrom.com (mass.cdrom.com [204.216.28.184]) by hub.freebsd.org (Postfix) with ESMTP id B0B7537BCA4 for ; Wed, 1 Mar 2000 11:11:39 -0800 (PST) (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 LAA00739; Wed, 1 Mar 2000 11:11:35 -0800 (PST) (envelope-from msmith@mass.cdrom.com) Message-Id: <200003011911.LAA00739@mass.cdrom.com> X-Mailer: exmh version 2.1.1 10/15/1999 To: Marc Frajola Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: How to fdisk/disklabel whole disk for FreeBSD from command line? In-reply-to: Your message of "Wed, 01 Mar 2000 01:05:31 PST." <200003010905.BAA16360@enginet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 01 Mar 2000 11:11:35 -0800 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > What are you using for your command lines? You have to target the > > disklabel specifically at slice 1 on the disk otherwise disklabel will > > think you're trying to overwrite the slice table and get mad. > > Here's what I did: > > fdisk -e /dev/rda1 > disklabel -r -w da1 auto > > The disklabel command gives 'disklabel: No space left on device'. This is nonsensical; first you are trying to slice the disk, then you are trying to initialise it sliceless without first removing the slices. If you want the disk sliced, use disklabel on rda1sX, where X is the slice you've created. If you want it unsliced, dd 8k of zeroes over the beginning of da1 first. -- \\ 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-hackers" in the body of the message