From owner-freebsd-questions@FreeBSD.ORG Sat Jul 23 18:19:02 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 DFE0A16A41F for ; Sat, 23 Jul 2005 18:19:02 +0000 (GMT) (envelope-from ima_camper@yahoo.com) Received: from web30001.mail.mud.yahoo.com (web30001.mail.mud.yahoo.com [68.142.200.64]) by mx1.FreeBSD.org (Postfix) with SMTP id 2F36543D48 for ; Sat, 23 Jul 2005 18:19:01 +0000 (GMT) (envelope-from ima_camper@yahoo.com) Received: (qmail 79332 invoked by uid 60001); 23 Jul 2005 18:19:01 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=VVxSbgQC8TKSEQLfsWVvfWJ7vMbQaRlXrWL8VT0xOCqWX4S9zyfQEtcDefOsU3Z+vWOaykYNRCA4zmyTX61KQtX9YkmixNjMPtZUoyNG/gqkLHqm/Q5tc0ltSOUPIhLQJ6BafM3zwD7HsyzcEudfEuCTOFg/HdOFUQqK3bXS6P0= ; Message-ID: <20050723181901.79329.qmail@web30001.mail.mud.yahoo.com> Received: from [67.51.142.23] by web30001.mail.mud.yahoo.com via HTTP; Sat, 23 Jul 2005 11:19:01 PDT Date: Sat, 23 Jul 2005 11:19:01 -0700 (PDT) From: Ima Camper To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Subject: Syntax for fdisk? 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: Sat, 23 Jul 2005 18:19:03 -0000 While trying to solve another problem, a suggested fix was to issue the following command: bsdlabel -B da0s1a But now when I boot, I get this output: --- BEGIN --- Mounting root from ufs:/dev/da0s1a setrootbyname failed ffs_mountroot: can't find rootvp Root mount failed: 6 Manual root filesystem specification: : Mount using filesystem eg. ufs:da0s1a ? List valid disk boot devices Abort manual input mountroot> --- END --- da0 is my boot disk and contains /. However when I configured the disk using sysinstall during installation, I set it up as "dangerously dedicated". Now I wonder if my problem is that I should have used "bsdlabel -B /dev/da0" instead of "da0s1a" when attempting to install boot blocks? After reading the Handbook section on booting, it seems to me that the bootstrap code is fine because the system boots all the way up until it tries to mount root. In other words, /boot/loader starts and as I understand it, that comes after the bootstrap code. But yet I suspect the "bsdlabel -B" command caused my trouble because it's the only thing that changed. I've booted using the 5.4 IS0 CD and selected fixit from the sysinstall program. Using fdisk to check /dev/da0 I see all 4 slices marked as "UNUSED". However on /dev/da1 that was fdisked the same, the first slice has information. At the fixit prompt, I can mount /dev/da0 and see all my data. Is there a way to use fdisk from the command line to restore slice 1 without losing all my data? What would be the correct syntax? Am I on the right track? Any help appreciated! Please cc me on all replies as I'm not getting list mail since my system is down. Thanks, Drew ____________________________________________________ Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs