Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Sep 2017 10:34:19 +0300
From:      Christos Chatzaras <chris@cretaforce.gr>
To:        freebsd-questions@freebsd.org
Subject:   Re: problem booting from 2nd drive
Message-ID:  <AA43F3D2-3C09-4A6E-844E-4491EDA36562@cretaforce.gr>
In-Reply-To: <8a798574-5d68-d6a3-259f-e971d1e30e4e@fjl.co.uk>
References:  <4B828DE3-C784-45A9-A01B-F944DAFE1601@cretaforce.gr> <8a798574-5d68-d6a3-259f-e971d1e30e4e@fjl.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> Why not dump out the GPT on both and take a look?
> 


gpart show

=>        40  7814037088  ada0  GPT  (3.6T)
          40         472     1  freebsd-boot  (236K)
         512     8388608     2  freebsd-ufs  (4.0G)
     8389120   134217728     3  freebsd-swap  (64G)
   142606848    33554432     4  freebsd-ufs  (16G)
   176161280   134217728     5  freebsd-ufs  (64G)
   310379008    33554432     6  freebsd-ufs  (16G)
   343933440  1073741824     7  freebsd-ufs  (512G)
  1417675264  6396361856     8  freebsd-ufs  (3.0T)
  7814037120           8        - free -  (4.0K)

=>        40  7814037088  ada1  GPT  (3.6T)
          40         472     1  freebsd-boot  (236K)
         512     8388608     2  freebsd-ufs  (4.0G)
     8389120   134217728     3  freebsd-swap  (64G)
   142606848    33554432     4  freebsd-ufs  (16G)
   176161280   134217728     5  freebsd-ufs  (64G)
   310379008    33554432     6  freebsd-ufs  (16G)
   343933440  1073741824     7  freebsd-ufs  (512G)
  1417675264  6396361856     8  freebsd-ufs  (3.0T)
  7814037120           8        - free -  (4.0K)

dd if=/dev/ada0 of=./bootcode_ada0 count=1
1+0 records in
1+0 records out
512 bytes transferred in 0.013218 secs (38736 bytes/sec)

dd if=/dev/ada1 of=./bootcode_ada1 count=1
1+0 records in
1+0 records out
512 bytes transferred in 0.012451 secs (41120 bytes/sec)

diff bootcode_ada0 bootcode_ada1

diff shows the files have no differences
From owner-freebsd-questions@freebsd.org  Thu Sep  7 07:09:39 2017
Return-Path: <owner-freebsd-questions@freebsd.org>
Delivered-To: freebsd-questions@mailman.ysv.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 by mailman.ysv.freebsd.org (Postfix) with ESMTP id 66C7DE0C9B4
 for <freebsd-questions@mailman.ysv.freebsd.org>;
 Thu,  7 Sep 2017 07:09:39 +0000 (UTC)
 (envelope-from chris@cretaforce.gr)
Received: from smtp3.cretaforce.gr (smtp3.cretaforce.gr [138.201.155.58])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (Client CN "*.cretaforce.gr", Issuer "RapidSSL SHA256 CA" (verified OK))
 by mx1.freebsd.org (Postfix) with ESMTPS id DD2EC83493
 for <freebsd-questions@freebsd.org>; Thu,  7 Sep 2017 07:09:38 +0000 (UTC)
 (envelope-from chris@cretaforce.gr)
Received: from server1.cretaforce.gr (server1.cretaforce.gr [138.201.248.69])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256
 bits))
 (Client CN "*.cretaforce.gr", Issuer "RapidSSL SHA256 CA" (not verified))
 by smtp3.cretaforce.gr (Postfix) with ESMTPS id 84194207DF
 for <freebsd-questions@freebsd.org>; Thu,  7 Sep 2017 10:09:35 +0300 (EEST)
Received: from 192.168.2.3 (athedsl-279532.home.otenet.gr [85.73.139.138])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (Client did not present a certificate)
 (Authenticated sender: chris@cretaforce.gr)
 by server1.cretaforce.gr (Postfix) with ESMTPSA id 563E72734A
 for <freebsd-questions@freebsd.org>; Thu,  7 Sep 2017 10:09:35 +0300 (EEST)
From: Christos Chatzaras <chris@cretaforce.gr>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\))
Subject: Re: problem booting from 2nd drive
Date: Thu, 7 Sep 2017 10:09:34 +0300
References: <4B828DE3-C784-45A9-A01B-F944DAFE1601@cretaforce.gr>
 <cc9cc62f-31ea-a8f1-23c2-0700a2c5d730@fjl.co.uk>
To: freebsd-questions@freebsd.org
In-Reply-To: <cc9cc62f-31ea-a8f1-23c2-0700a2c5d730@fjl.co.uk>
Message-Id: <0397261D-7123-4021-984D-D07F5A3FE08C@cretaforce.gr>
X-Mailer: Apple Mail (2.3273)
X-BeenThere: freebsd-questions@freebsd.org
X-Mailman-Version: 2.1.23
Precedence: list
List-Id: User questions <freebsd-questions.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions/>;
List-Post: <mailto:freebsd-questions@freebsd.org>
List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Thu, 07 Sep 2017 07:09:39 -0000

> P.P.S. Dumb question - when you say you create a geom mirror, I assume =
this isn't for the whole disk. If you did try this I'd expect it to =
throw an error saying that the backup GPT was corrupt on ada0, but you =
said it booted normally. If my assumption is wrong, you need to read up =
on GPT and Geom Mirror compatibility.

Yes see my previous message. I do seperate gmirror for each partition so =
GPT and gmirror don't write both at the last part of the disk.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AA43F3D2-3C09-4A6E-844E-4491EDA36562>