Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Mar 2000 10:16:15 +1030
From:      Greg Lehey <grog@lemis.com>
To:        Mike Smith <msmith@FreeBSD.ORG>
Cc:        Marc Frajola <marc@enginet.com>, freebsd-hackers@FreeBSD.ORG
Subject:   Re: How to fdisk/disklabel whole disk for FreeBSD from command line?
Message-ID:  <20000302101615.I2905@freebie.lemis.com>
In-Reply-To: <200003011911.LAA00739@mass.cdrom.com>
References:  <200003010905.BAA16360@enginet.com> <200003011911.LAA00739@mass.cdrom.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000302101615.I2905>