From owner-freebsd-questions Tue Dec 17 9:24:56 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 4A59937B401 for ; Tue, 17 Dec 2002 09:24:54 -0800 (PST) Received: from clunix.cl.msu.edu (clunix.cl.msu.edu [35.9.2.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C29043EC5 for ; Tue, 17 Dec 2002 09:24:53 -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 gBHHOZ620559; Tue, 17 Dec 2002 12:24:35 -0500 (EST) From: Jerry McAllister Message-Id: <200212171724.gBHHOZ620559@clunix.cl.msu.edu> Subject: Re: Drive Failure To: sleek@enabled.com (Noah Garrett Wallach) Date: Tue, 17 Dec 2002 12:24:35 -0500 (EST) Cc: freebsd-questions@FreeBSD.ORG In-Reply-To: <20021217082802.V9984-100000@typhoon.enabled.com> from "Noah Garrett Wallach" at Dec 17, 2002 08:32:20 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 > Hi, > > my current system drive is having difficulties some files that were > in great shape are now EBADF. This drive is known as ad0 (yup IDE) > > So I installed a new drive and have moved all files over to it. The > new drive is known as ad2. > > Is my fdisk usage here proper? Is this the proper response from > fdisk? What else should I be doing? What might I be doing wrong? > > > root@typhoon# fdisk -B -b ./boot0 ad2 Presuming you want the whole new drive for FreeBSD and want it bootable, you are on the right track. You might want to use the -I switch and the typical location for the boot0 is in /boot/boot0, though ./boot0 works if you are in the right directory. So try: fdisk -I -B -b /boot/boot0 ad2 Looks like that will give you a 73GB FreeBSD slice OK - probably a nominally 80 GB drive. ////jerry > [/mnt/ad2-root/boot] > ******* Working on device /dev/ad2 ******* > parameters extracted from in-core disklabel are: > cylinders=148945 heads=16 sectors/track=63 (1008 blks/cyl) > > Figures below won't work with BIOS for partitions not in cyl 1 > parameters to be used for BIOS calculations are: > cylinders=148945 heads=16 sectors/track=63 (1008 blks/cyl) > > Media sector size is 512 > Warning: BIOS sector numbering starts with sector 1 > Information from DOS bootblock is: > The data for partition 1 is: > sysid 165,(FreeBSD/NetBSD/386BSD) > start 63, size 150136497 (73308 Meg), flag 80 (active) > beg: cyl 0/ head 1/ sector 1; > end: cyl 464/ head 15/ sector 63 > The data for partition 2 is: > > The data for partition 3 is: > > The data for partition 4 is: > > Do you want to change the boot code? [n] > > --- > TCB'n, > > #Noah > San Francisco, California --- USA > > There is a light, that shines beyond all things on earth, beyond us all, beyond the highest heavens. This is the light that shines in our hearts. > - The Buddha > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message