From owner-freebsd-questions Tue Dec 17 11:40:20 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6C09537B406 for ; Tue, 17 Dec 2002 11:40:18 -0800 (PST) Received: from clunix.cl.msu.edu (clunix.cl.msu.edu [35.9.2.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8D67E43ED1 for ; Tue, 17 Dec 2002 11:40:17 -0800 (PST) (envelope-from jerrymc@clunix.cl.msu.edu) Received: (from jerrymc@localhost) by clunix.cl.msu.edu (8.11.6+Sun/8.11.6) id gBHJeAP21371; Tue, 17 Dec 2002 14:40:10 -0500 (EST) From: Jerry McAllister Message-Id: <200212171940.gBHJeAP21371@clunix.cl.msu.edu> Subject: Re: Drive Failure To: sleek@enabled.com (Noah Garrett Wallach) Date: Tue, 17 Dec 2002 14:40:10 -0500 (EST) Cc: jerrymc@clunix.cl.msu.edu (Jerry McAllister), freebsd-questions@FreeBSD.ORG In-Reply-To: <20021217104025.B60161-100000@typhoon.enabled.com> from "Noah Garrett Wallach" at Dec 17, 2002 10:41:07 AM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > > So Jerry, > > > this is the proper output then? > > typhoon# fdisk -I -B -b /mnt/ad2-root/boot/boot0 ad2 > ******* Working on device /dev/ad2 ******* > typhoon# > > > some mount details seems relevant > > typhoon# fdisk -I -B -b /mnt/ad2-root/boot/boot0 ad2 I think you want -b /boot/boot0 there. You are trying to initialize ad2, not read a file from it. Presumably, since it is a new disk and you are 'I' initializing it, there is nothing on it to read. That -b /boot/boot0 tells it where to get the file that it will put in to the boot sector. Actually /boot/boot0 is the default but I believe but I tend to want to be explicit in these things. You don't want to specify any other file here unless you are trying to put in some special home brew or third party boot sector. If you can't read it from /boot/boot0 because the disk is corrupt then you will have to get a boot CD or a set of boot floppies for FreeBSD to do it with. By the way, the 'I' switch presumes you are using FreeBSD 4.xsomething as it wasn't available in earlier versions of fdisk. Try doing an: fdisk -v ad2 after it is done and see if what it puts out looks good. Then you will have to start on disklabel which will be followed by a newfs for each partition you create with disklabel. ////jerry > > typhoon# mount > /dev/ad0s1a on / (ufs, local) > /dev/ad0s1f on /usr (ufs, local, soft-updates) > /dev/ad0s1e on /var (ufs, local, soft-updates) > procfs on /proc (procfs, local) > /dev/ad2s1a on /mnt/ad2-root (ufs, local) > /dev/ad2s1f on /mnt/ad2-root/usr (ufs, local) > /dev/ad2s1e on /mnt/ad2-root/var (ufs, local) > typhoon# > > - Noah > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message