From owner-freebsd-questions@FreeBSD.ORG Fri Jul 11 02:02:51 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 01B30697 for ; Fri, 11 Jul 2014 02:02:51 +0000 (UTC) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 9ADA02F35 for ; Fri, 11 Jul 2014 02:02:50 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.9/8.14.9) with ESMTP id s6B22kHU080476 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 10 Jul 2014 20:02:47 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.9/8.14.9/Submit) with ESMTP id s6B22jIe080473; Thu, 10 Jul 2014 20:02:46 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Thu, 10 Jul 2014 20:02:45 -0600 (MDT) From: Warren Block To: Luciano Mannucci Subject: Re: Repairing boot In-Reply-To: <20140710163016.D9D3C499@hub.freebsd.org> Message-ID: References: <20140710151359.58BB2A64@hub.freebsd.org> <20140710163016.D9D3C499@hub.freebsd.org> User-Agent: Alpine 2.11 (BSF 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Thu, 10 Jul 2014 20:02:47 -0600 (MDT) Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Jul 2014 02:02:51 -0000 On Thu, 10 Jul 2014, Luciano Mannucci wrote: > On Thu, 10 Jul 2014 09:25:58 -0600 (MDT) > Warren Block wrote: >> >> # gpart bootcode -b /boot/pmbr -p /boot/gptboot -i 1 ada0 > Ok, done. > Now I get: > > Invalid format. > (a serie of numbers) > BTX halted. That is an unfamiliar error to me. If you post the exact output, someone may recognize it. >> There might still be a problem booting if /etc/fstab refers to disks >> rather than labels and the disk numbers have changed. If that happens, >> please show the output of 'gpart show' and the contents of /etc/fstab. > luke@puffo:~ % gpart show > => 0 7892992 da0 BSD (3.8G) > 0 1433920 1 freebsd-ufs (700M) > 1433920 6459072 - free - (3.1G) > > => 34 625142381 ada0 GPT (298G) > 34 6 - free - (3.0k) > 40 128 1 freebsd-boot (64k) > 168 608174080 2 freebsd-ufs (290G) > 608174248 16967680 3 freebsd-swap (8.1G) > 625141928 487 - free - (243k) > > luke@puffo:~ % cat /etc/fstab > # Device Mountpoint FStype Options Dump Pass# > /dev/ada0p2 / ufs rw 1 1 > /dev/ada0p3 none swap sw 0 0 This looks okay. Could you post the output of 'file -s /dev/ada0p2'?