From owner-freebsd-hackers Sun Jun 21 22:18:10 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA15680 for freebsd-hackers-outgoing; Sun, 21 Jun 1998 22:18:10 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from antipodes.cdrom.com (castles314.castles.com [208.214.167.14]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA15675 for ; Sun, 21 Jun 1998 22:18:07 -0700 (PDT) (envelope-from mike@antipodes.cdrom.com) Received: from antipodes.cdrom.com (localhost [127.0.0.1]) by antipodes.cdrom.com (8.8.8/8.8.5) with ESMTP id UAA03208; Sun, 21 Jun 1998 20:47:41 -0700 (PDT) Message-Id: <199806220347.UAA03208@antipodes.cdrom.com> X-Mailer: exmh version 2.0zeta 7/24/97 To: Robert Chalmers cc: hackers@FreeBSD.ORG Subject: Re: Is using fdisk a must? In-reply-to: Your message of "Sun, 21 Jun 1998 09:55:36 +1000." <199806202355.JAA06830@nanguo.chalmers.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 21 Jun 1998 20:47:41 -0700 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > I'm experimenting with setting up scsi disks using disktab and disklabel. > I've nutted out how disktab + disklabel works, and built successfully > a disktab for the scsi drive I'm using. A COMPAQ C2490A 2.1GB drive. > It appears to actually be a HP Manufactured drive. Anyway, having > done that, the new drive goes through newfs ok, and the partitons mount. > Everything appears to work. It doesn't actually sound like you're quite there yet. > However, doing 'fdisk sd1' tells me that the only partiton that is > actualy a correct FreeBSD partition (slice) is the 'e' partiton. > All the others have bad magic numbers and so on. This makes no sense. Partitions are not slices, and fdisk will never tell you anything about partitions. > Is a correct FreeBSD drive dependant on being made in the firstplace > with fdisk, then labeled accordingly.? 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. 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] -- \\ 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message