From owner-freebsd-hackers Tue Feb 29 22:16:33 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from resnet.uoregon.edu (resnet.uoregon.edu [128.223.144.32]) by hub.freebsd.org (Postfix) with ESMTP id 01E4937BC54 for ; Tue, 29 Feb 2000 22:16:30 -0800 (PST) (envelope-from dwhite@resnet.uoregon.edu) Received: from localhost (dwhite@localhost) by resnet.uoregon.edu (8.9.3/8.9.3) with ESMTP id WAA65110; Tue, 29 Feb 2000 22:16:27 -0800 (PST) (envelope-from dwhite@resnet.uoregon.edu) Date: Tue, 29 Feb 2000 22:16:27 -0800 (PST) From: Doug White To: Marc Frajola Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: How to fdisk/disklabel whole disk for FreeBSD from command line? In-Reply-To: <200002282312.PAA15070@enginet.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 28 Feb 2000, Marc Frajola wrote: > Thanks very much for the reply. I checked out the URL you gave > (http://www.freebsd.org/tutorials/formatting-media/), and unfortunately > I'm still wondering how to create one FreeBSD fdisk slice so that > disklabel can actually create partitions. > > The reason why I sent the message to freebsd-hackers was because > when I tried 'fdisk -e', it seems to assign a slice, BUT disklabel > gives an error like 'No space left on device' or some such thing after > running fdisk, making it obvious that the fdisk -e didn't work as I > thought it should. 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. > I will check out the 'install' PicoBSD floppy here shortly to > see if I can learn anything from that. I just did that twice today and it definitely works :) The only problem I had with those is that the disk boot order (this is a L440GX+ board where you can configure it) was screwy (i.e. primary-master wasn't the preferred boot disk). > If anybody knows right off what the sequence of commands (complete > with arguments) to fdisk and disklabel a new drive to make a > "compatiblity mode" bootable FreeBSD system slice (and make it active), > I'd appreciate hearing from you. I have an awk script mercilessly stolen from phk that does the disklabel dirty work. Otherwise it's straightforward: fdisk -e wd0 disklabel .. magic .. newfs /dev/wd0s1a Doug White | FreeBSD: The Power to Serve dwhite@resnet.uoregon.edu | www.FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message