From owner-freebsd-hackers Sat Feb 26 12: 4: 2 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from enginet.com (enginet.com [199.2.210.247]) by hub.freebsd.org (Postfix) with ESMTP id 9AB2B37C014 for ; Sat, 26 Feb 2000 12:03:56 -0800 (PST) (envelope-from marc@enginet.com) Received: from enginet.com (marc@localhost [127.0.0.1]) by enginet.com (8.9.3/8.9.3) with ESMTP id MAA13658 for ; Sat, 26 Feb 2000 12:03:53 -0800 (PST) Message-Id: <200002262003.MAA13658@enginet.com> To: freebsd-hackers@freebsd.org Subject: How to fdisk/disklabel whole disk for FreeBSD from command line? Date: Sat, 26 Feb 2000 12:03:52 PST From: Marc Frajola Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi... I have spent a bit of time messing around with the command-line fdisk and disklabel commands, and have been unable to setup a proper fdisk and FreeBSD partition label solely from the command line. When I do 'fdisk -e /dev/rda1' or 'fdisk -u ...', that seems to write an fdisk label, but I get 'No space left on device' or some such message when I try to do 'disklabel -r -w da1 auto'. Basically, I want to be able to automate an install, and can't figure out how to get a shell script to completely initialize a proper fdisk label AND FreeBSD disk label + boot blocks. I know that I can use sysinstall to do this properly, but I really need to do this from a shell script in an automated fashion. I have tried using slice partitions with disklabel, and that doesn't work either. I have consulted the FreeBSD FAQ, and haven't been able to find the answer there. I also sent this to freebsd-questions, and didn't get any reply. Can anybody point me in the right direction? ...Marc... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message