From owner-freebsd-hackers Wed Mar 1 15:46:28 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by hub.freebsd.org (Postfix) with ESMTP id 5147837BD39; Wed, 1 Mar 2000 15:46:20 -0800 (PST) (envelope-from grog@freebie.lemis.com) Received: (from grog@localhost) by freebie.lemis.com (8.9.3/8.9.0) id KAA04032; Thu, 2 Mar 2000 10:16:15 +1030 (CST) Date: Thu, 2 Mar 2000 10:16:15 +1030 From: Greg Lehey To: Mike Smith Cc: Marc Frajola , freebsd-hackers@FreeBSD.ORG Subject: Re: How to fdisk/disklabel whole disk for FreeBSD from command line? Message-ID: <20000302101615.I2905@freebie.lemis.com> References: <200003010905.BAA16360@enginet.com> <200003011911.LAA00739@mass.cdrom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i In-Reply-To: <200003011911.LAA00739@mass.cdrom.com> WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wednesday, 1 March 2000 at 11:11:35 -0800, Mike Smith wrote: >>> 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. You've got to admit that that's a workaround. What we really need is some kind of "please start again from scratch" option. Greg -- Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message