From owner-freebsd-hackers Sun Jun 21 22:41:48 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA19846 for freebsd-hackers-outgoing; Sun, 21 Jun 1998 22:41:48 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from nanguo.chalmers.com.au (gateway.chalmers.com.au [203.1.96.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA19838 for ; Sun, 21 Jun 1998 22:41:42 -0700 (PDT) (envelope-from robert@chalmers.com.au) Received: from chalmers.com.au (carbon.chalmers.com.au [203.1.96.26]) by nanguo.chalmers.com.au (8.8.8/8.8.8) with ESMTP id PAA08404; Mon, 22 Jun 1998 15:40:43 +1000 (EST) Message-ID: <358DF03F.BFA47ED9@chalmers.com.au> Date: Mon, 22 Jun 1998 15:48:47 +1000 From: Robert Chalmers Reply-To: robert@chalmers.com.au Organization: chalmers.com.au X-Mailer: Mozilla 4.04 [en] (Win95; I) MIME-Version: 1.0 To: Mike Smith CC: Robert Chalmers , hackers@FreeBSD.ORG Subject: Re: Is using fdisk a must? References: <199806220347.UAA03208@antipodes.cdrom.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Mike Smith wrote: > Robert wrote > > I'm experimenting with setting up scsi disks using disktab and disklabel. > If you are building a new disk to be used only with FreeBSD, the > correct process is either: > > a) use /stand/sysinstall (and the configure menu) to slice/partition > the disk. Keep in mind I'm experimenting here... I'm trying to actually avoind having to use sysinstall. > b) proceed as follows, for the disk 'foo'. > > # dd if=/dev/zero of=/dev/foo count=16 > # disklabel -rwB foo auto > # disklabel -e foo > [set the disk type to SCSI or ESDI (for IDE disks), > add partitions to suit] This of course builds a _bootable_ disk, right? The -B loads a boot image. Least wise it did on mine, and I had the devil of a job disabling it, and rebooting off the correct, primary, drive. I have the drive up and running, it just gives the 'no magic' warning at boot time... as mentioned in the first post. I can include the disktab/disklabel output if you like, but nowhere does disklabel/disktab allow the input of 'magic numbers'. Which led to the question, is fdisk a must? I mean, sysinstall starts with fdisk itself! I am beginning to believe that FreeBSD simply has no facility for building new drives from disktab entires entirely? If there is a way, perhaps someone would like to tell me what it is - barring the use of fdisk, which doesn't exist on most Unix systems! it's a DOS-i386'ism. cheers Robert > > -- > \\ Sometimes you're ahead, \\ Mike Smith > \\ sometimes you're behind. \\ mike@smith.net.au > \\ The race is long, and in the \\ msmith@freebsd.org > \\ end it's only with yourself. \\ msmith@cdrom.com -- Support Whirled Peas. Business in China? China House robert@chalmers.com.au ph:61 7 49440357 fx:61 7 49578425 China House Uses Webposition to ensure Top Spot in Searches http://www.chalmers.com.au/ChinaHouse/Business/webposition To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message