From owner-freebsd-questions Mon Apr 9 21:18:17 2001 Delivered-To: freebsd-questions@freebsd.org Received: from never.tellme.com (never.tellme.com [209.157.156.27]) by hub.freebsd.org (Postfix) with ESMTP id E712A37B422; Mon, 9 Apr 2001 21:18:12 -0700 (PDT) (envelope-from dannyman@tellme.com) Received: by never.tellme.com (Postfix, from userid 501) id 8F1ED71658; Mon, 9 Apr 2001 21:18:12 -0700 (PDT) Date: Mon, 9 Apr 2001 21:18:12 -0700 From: Danny Howard To: Greg Lehey Cc: FreeBSD Questions , freebsd-stable@freebsd.org Subject: Re: fdisk & disklabel dont work! Message-ID: <20010409211812.P59290@tellme.com> References: <20010409185759.N59290@tellme.com> <20010410113808.K64481@wantadilla.lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010410113808.K64481@wantadilla.lemis.com>; from grog@lemis.com on Tue, Apr 10, 2001 at 11:38:08AM +0930 X-Loop: djhoward@uiuc.edu Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Okay. Well, FWIW, fdisk -I does *not* work successfully for me, under any circumstances I've tried so far. I have found a work-around, though: TERM=cons25 # If serial console, set this to vt100 export TERM /stand/sysinstall nonInteractive=YES partition=all bootManager=standard \ disk=${disk} diskPartitionEditor diskPartitionWrite Woohah! Interestingly enough, I see the same complaints about there not being a disklabel, but my subsequent disklabel commands work. To whit: disk=${disk}s1 disklabel -r -w $disk auto disksize=`disklabel $disk | awk -F : '$1 == "sectors/unit" {print $2}'` [...] disklabel $disk | grep -v ' c:' > /tmp/mylabel disklabel -R -B $disk /tmp/mylabel And then some MAKEDEV, newfs, distributions, packages, config files, etc. Okay, so I'll need to test this some more, but this is a pleasant break-through for the evening. One which I hope will hold. :) This is way screwed up, imho. I might investigate some day as to why sysinstall can do what fdisk -I can not, but I have some machines that are overdue for installs. :) -danny To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message