From owner-freebsd-questions@FreeBSD.ORG Thu Jul 10 16:30:13 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 43482435 for ; Thu, 10 Jul 2014 16:30:13 +0000 (UTC) Received: from baobab.bilink.net (baobab.bilink.net [212.45.144.44]) by mx1.freebsd.org (Postfix) with ESMTP id EDDFF2BBF for ; Thu, 10 Jul 2014 16:30:12 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by baobab.bilink.it (Postfix) with ESMTP id 3h8NCR3YzBzCy1x for ; Thu, 10 Jul 2014 18:30:11 +0200 (CEST) X-Virus-Scanned: amavisd-new at mcs.it Received: from baobab.bilink.net ([127.0.0.1]) by localhost (baobab.mcs.it [127.0.0.1]) (amavisd-new, port 11027) with ESMTP id Q0yjEWCjl4zr for ; Thu, 10 Jul 2014 18:30:11 +0200 (CEST) Received: from hermes.mcs.it (hermes.mcs.it [192.168.132.21]) by baobab.bilink.it (Postfix) with ESMTP id 3h8NCR2XqhzCy1l for ; Thu, 10 Jul 2014 18:30:11 +0200 (CEST) Received: from puffo.bilink.net (unknown [192.168.44.6]) by hermes.mcs.it (Postfix) with ESMTP id 35C4C1B7580 for ; Thu, 10 Jul 2014 18:30:11 +0200 (CEST) Date: Thu, 10 Jul 2014 18:30:11 +0200 From: Luciano Mannucci To: freebsd-questions@freebsd.org Subject: Re: Repairing boot In-Reply-To: References: <20140710151359.58BB2A64@hub.freebsd.org> X-Mailer: Claws Mail 3.10.1 (GTK+ 2.24.22; amd64-portbld-freebsd9.2) X-Face: 4qPv4GNcD; h<7Q/sK>+GqF4=CR@KmnPkSmwd+#%\F`4yjKO3"C]p'z=(oWRnsYBQGM\5g:4skqQY0NnV'dM:Mm:^/_+I@a"; [-s=ogufdF"9ggQ'=y MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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: Thu, 10 Jul 2014 16:30:13 -0000 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. > > 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 Luciano. -- /"\ /Via A. Salaino, 7 - 20144 Milano (Italy) \ / ASCII RIBBON CAMPAIGN / PHONE : +39 2 485781 FAX: +39 2 48578250 X AGAINST HTML MAIL / E-MAIL: posthamster@sublink.sublink.ORG / \ AND POSTINGS / WWW: http://www.lesassaie.IT/