From owner-freebsd-questions@FreeBSD.ORG Thu May 15 07:59:30 2003 Return-Path: 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 052F437B401 for ; Thu, 15 May 2003 07:59:30 -0700 (PDT) Received: from speedy.insekure.com (gotroot.insekure.com [207.254.222.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 603B143FA3 for ; Thu, 15 May 2003 07:59:29 -0700 (PDT) (envelope-from james@JamesSchmidt.Com) Received: from localhost (james@localhost.insekure.com [127.0.0.1]) by speedy.insekure.com (8.12.8/8.12.6) with ESMTP id h4FExNRw060137; Thu, 15 May 2003 09:59:23 -0500 (CDT) (envelope-from james@JamesSchmidt.Com) Date: Thu, 15 May 2003 09:59:23 -0500 (CDT) From: James Schmidt X-X-Sender: james@speedy.insekure.com To: Ivan Ivanov In-Reply-To: <2F520D7DB7B17E4E9EC4ADEC448778F40114A334@labsex1.corp.trema.com> Message-ID: <20030515095613.W60097-100000@speedy.insekure.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-questions@freebsd.org Subject: RE: Boot block problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 May 2003 14:59:30 -0000 Normally I should think would work. However, I think that problem is that the file, /boot/boot0, was copied from the original drive that contained the original boot path (I could be mistaken). I think the /boot/boot0 file need to be re-created with the new boot path information, but I am not sure how to do that (something to do with btxld ?) On Thu, 15 May 2003, Ivan Ivanov wrote: > Hi, > > is your partition set to be bootable? I suppose yes, if you are able > to do it manualy. Doesn't "fdisk -B -b /boot/boot0 ad0" help? > > -Ivan > > > -----Original Message----- > From: James Schmidt [mailto:james@JamesSchmidt.Com] > Sent: Thursday, May 15, 2003 3:36 PM > To: freebsd-questions@freebsd.org > Subject: Boot block problem > > > > Yesterday I started to notice a failing hard drive on my freebsd server. > > In my haste to back up the existing hard drive to a new hard drive, I > forgot to make sure that the partitions match on the new hard drive (ie, > / on the original hard drive was /dev/ad0s1a, the new root partition is > on /ad0s1e). > > Once I realized my mistake, I was about to mount the new hard drive > manually using the emergency fix shell from the FreeBSD cd. So, I > mounted the new partition and edited the new /etc/fstab file, and > recreated the devices (just to be sure) in /dev. > > However, now whenever I boot, I get the following: > > > Invalid partition > No /boot/loader > > >>FreeBSD/i386 BOOT > Default: 0:ad(0,a)/kernel > boot: > > At the "boot:" prompt if I enter "0:ad(0,e)/kernel", it boots fine. > > > Apparently I just need to rewrite the new boot block information. I've > gone through the /stand/sysinstall "fdisk" and "Label" menu options and > rewritten the new layouts to the drive, but no dice. > > Does anyone know of a way to fix this ? It's not a big deal, I'd just > like the machine to boot automatically without having to have someone > enter the new boot path every time. > > Thanks in advance, > > James Schmidt > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" >