From owner-freebsd-questions@FreeBSD.ORG Sun Jun 23 23:17:16 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 05832125 for ; Sun, 23 Jun 2013 23:17:16 +0000 (UTC) (envelope-from kudzu@tenebras.com) Received: from mail-oa0-x232.google.com (mail-oa0-x232.google.com [IPv6:2607:f8b0:4003:c02::232]) by mx1.freebsd.org (Postfix) with ESMTP id CA54C11C5 for ; Sun, 23 Jun 2013 23:17:15 +0000 (UTC) Received: by mail-oa0-f50.google.com with SMTP id k7so11393015oag.9 for ; Sun, 23 Jun 2013 16:17:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:x-gm-message-state; bh=t53/ldLEcCdTacDem+FeYMgATYTwJpb3CEjf160kyfs=; b=j8J96v9LhK/NuE0JatmaNuPVWcjzbKOA5Z+Un0VHhn0h6GCsrrka5fhClv2Aiu2Zqk 7vF8uDxP+zGPyEXAjIoc1Rnf0uOy1G9P5KbTfiXa4psZABC/ApG3SPavTad18x8w/wZ2 OM5H3BnNP3WZqTRHxdaOz6BbtFKYLdE/XlfSpjvdwZqo1tkV6HaKTF4N1pZsu4MnjbiA jIcuT3WWR9+cIBuYCqVXI3sjmfTuwEnEIOpfk6AfK/MAbTA8BHvG7/eiRNSMf8KYyqR4 SyTnO0ykuxuYAS5HuFNSTHwdwwFYpKSA6Dx0+8nlzA3cymzVnX2RSa9MjoHCWSZF1YMr aqyg== MIME-Version: 1.0 X-Received: by 10.60.63.116 with SMTP id f20mr9973986oes.54.1372029435372; Sun, 23 Jun 2013 16:17:15 -0700 (PDT) Received: by 10.60.123.77 with HTTP; Sun, 23 Jun 2013 16:17:15 -0700 (PDT) In-Reply-To: <20130624011212.2481df7e.freebsd@edvax.de> References: <20130624011212.2481df7e.freebsd@edvax.de> Date: Sun, 23 Jun 2013 16:17:15 -0700 Message-ID: Subject: Re: Boot Loader Issue From: Michael Sierchio To: Polytropon Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQnGmJYapfAG11CVwp4q+cdLIE9k0+XxplOpBQFRBhjOWE1dy9yWZGLryb5hIWKS1VKaU3KQ Cc: "freebsd-questions@freebsd.org List" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Jun 2013 23:17:16 -0000 On Sun, Jun 23, 2013 at 4:12 PM, Polytropon wrote: > On Sun, 23 Jun 2013 15:47:53 -0700, Doug Hardie wrote: >> I need to alter mountroot so it tries the right partition/slice. >> How do I do that? I couldn't find anything in the handbook on that. > > You need to install the GPT boot code, e. g. > > # gpart add -t freebsd-boot -l gpboot -b 40 -s 512K ad0 Why the offset? Why 512k? > # gpart bootcode -b /boot/pmbr -p /boot/gptboot -i 1 ad0 I think it's simpler to make an entry in /boot/loader.conf: vfs.root.mountfrom="ufs:/dev/ada0s1a"