From owner-freebsd-questions@FreeBSD.ORG Mon Dec 31 19:11:40 2007 Return-Path: Delivered-To: FreeBSD-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2FEAF16A419 for ; Mon, 31 Dec 2007 19:11:40 +0000 (UTC) (envelope-from ecerejo@optonline.net) Received: from mta4.srv.hcvlny.cv.net (mta4.srv.hcvlny.cv.net [167.206.4.199]) by mx1.freebsd.org (Postfix) with ESMTP id 0B3F213C458 for ; Mon, 31 Dec 2007 19:11:40 +0000 (UTC) (envelope-from ecerejo@optonline.net) Received: from ecerejo.netgear.com (ool-44c03822.dyn.optonline.net [68.192.56.34]) by mta4.srv.hcvlny.cv.net (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTP id <0JTX00FZ6HBDHT10@mta4.srv.hcvlny.cv.net> for FreeBSD-questions@freebsd.org; Mon, 31 Dec 2007 14:11:39 -0500 (EST) Date: Mon, 31 Dec 2007 14:11:34 -0500 From: "E. J. Cerejo" In-reply-to: <20071231173828.GC802@gizmo.acns.msu.edu> To: Jerry McAllister , FreeBSD-questions@freebsd.org Message-id: <47793EE6.1010406@optonline.net> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT References: <000701c84b74$dfc15ca0$0301a8c0@homedcfc9a526e> <20071231145006.GA99984@gizmo.acns.msu.edu> <000401c84bc4$40734af0$0301a8c0@homedcfc9a526e> <20071231173828.GC802@gizmo.acns.msu.edu> User-Agent: Thunderbird 2.0.0.9 (X11/20071031) Cc: Subject: Re: Boot Menu Damaged X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Dec 2007 19:11:40 -0000 Jerry McAllister wrote: > On Mon, Dec 31, 2007 at 10:46:04AM -0500, E. J. Cerejo wrote: > > >> ----- Original Message ----- >> From: "Jerry McAllister" >> To: "E. J. Cerejo" >> Cc: >> Sent: Monday, December 31, 2007 9:50 AM >> Subject: Re: Boot Menu Damaged >> >> >> >>> On Mon, Dec 31, 2007 at 01:17:51AM -0500, E. J. Cerejo wrote: >>> >>> >>>> I'm running FreeBSD 6 stable and I lost my boot menu after reinstalling >>>> xp >>>> and tried to fix it by booting with instalation cd and run "fdisk -B -b >>>> /boot/boot0 /dev/ad0" it restored it but when I boot I get the mountroot> >>>> prompt, it fails to mount ad0s2a, b, c, d. Is it possible to fix this or >>>> do I have to reinstall freebsd? >>>> >>> It may be that you got the slices no longer marked as bootable. >>> Try using fdisk(8) or boot0cfg(8) to re-enable booting on those slices. >>> >>> ////jerry >>> >> Do you run it from the instalation CD using fixit or run from the mountroot >> prompt on the computer. It seems to me I can't can any commands from this >> prompt. >> > > I would do it from the fixit. > > Well that didn't work but I finally fixed it. from the moutroot I was able to go into single user mode by running these commands: ufs:/dev/ad0s2a fsck -p / mount / after this I was able to check and fix my /etc/fstab file, for some reason the mount points got all changed to slice 4, e.g. ad0s4a, changed them back to ad0s2a and so on, after that I was able to boot just fine. How it happened I have no idea.