From owner-freebsd-stable@freebsd.org Tue Oct 30 22:58:52 2018 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6E58A1036A99 for ; Tue, 30 Oct 2018 22:58:52 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound2r.ore.mailhop.org (outbound2r.ore.mailhop.org [54.200.129.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E719A7E5A3 for ; Tue, 30 Oct 2018 22:58:51 +0000 (UTC) (envelope-from ian@freebsd.org) ARC-Seal: i=1; a=rsa-sha256; t=1540940331; cv=none; d=outbound.mailhop.org; s=arc-outbound20181012; b=frgZi9nJtBWGQphyJvADeR+rM9loagyrWycJVDL1rvO6CJUfCTVpVlvr6m1vKjCafsb/dBZQn7D8l mtaulJVd9EtyzScIAqJi2ptpV90/Mh/pbthlXSj2bvRqFDGRCmd/4aQonpOxqZorADUC9f8yPJj6gb EafPJFDLG9zcmlwZagNhxVM5cgBBDjahBHdkhvvlYWCGaCaKxr8Jvu+Npi/yzFKQ0RP8j/Ib+NKgIc BZP9Z29gOUeVn+FcNd5+TCV9e9JWMrjH/XgdVR5xUi+R3CmKWCqDvB0ZPK5I6dYswy1a2X15TbvPjM XYOXbXE5l8QNnRD/IfmXxoy0eFoerkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=arc-outbound20181012; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:to:from:subject:message-id:dkim-signature:from; bh=crimCGb5fi0fbN4e7a7lG4ZOErPtxeEd5th0yVX9Kec=; b=Mtf7/fcrki8wO7V05AwQH3lVoJ9OUIq7i8WguTENvEjU+QDf2kE3JLH4P06OdC2hnukM/4wpD8GTF WallSzrxkRwgSP/kxoyLYKX5cW73YpPicwKH5MIwO/a9WTtJlTQp8ID9jzC1+UbIX5EKjf0Few5/E8 GUAmOqPIbTw0EPTZZ+m7QwueaC30XPEMdttXGmqyLDQXrrsyOyiCmdaR6tDODGzFVQiCrk/s8eDUBi BM2oRSSNEioPSAb6zQvSjM986aiD2+41J3LCLa9zZ/7rYxcGgwYcpxKy9pNQdXB4VTskInjw1tCE6z 6GbwvtnHM6JG9RUa2s8CCe7sn/e3q2w== ARC-Authentication-Results: i=1; outbound2.ore.mailhop.org; spf=softfail smtp.mailfrom=freebsd.org smtp.remote-ip=67.177.211.60; dmarc=none header.from=freebsd.org; arc=none header.oldest-pass=0; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=dkim-high; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:to:from:subject:message-id:from; bh=crimCGb5fi0fbN4e7a7lG4ZOErPtxeEd5th0yVX9Kec=; b=KAJeuRjHE47cNuGzxcazHZpeCreLwCUgtgpic8+gRCL901ib2Q0WE5wno7SgY1TeW+GgnpBfewQ/6 msM65xxEl3Y+anHCjSJXEiloXtqQxkJ4eAY1V+FocD2VltR2oANdrZ+DfdgJXt2yk8cXBk7434P3Jt s0zb9hR4lgtS8ZUaeZUigJVypyvJB8PGCyHvTnfG+0FJMnZrTclAigTpH74uS1heL+gUiTvhJbRYek naI+EDyTLZxhckBh+4AS0hu8EP8oHwTn9hjRS9hNs6paYIj9izgaaViNja7l+wICw9j6t92Bm3ssjp YrINUdRBtriswsG8I0o6gcZRha6zKag== X-MHO-RoutePath: aGlwcGll X-MHO-User: 5d0ffb1e-dc97-11e8-a630-335f030b21f2 X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 67.177.211.60 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [67.177.211.60]) by outbound2.ore.mailhop.org (Halon) with ESMTPSA id 5d0ffb1e-dc97-11e8-a630-335f030b21f2; Tue, 30 Oct 2018 22:58:50 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id w9UMwnHj065552; Tue, 30 Oct 2018 16:58:49 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: <1540940329.22340.160.camel@freebsd.org> Subject: Re: How to boot from GPT partition without "bootme" attribute? From: Ian Lepore To: lev@FreeBSD.org, freebsd-stable@freebsd.org Date: Tue, 30 Oct 2018 16:58:49 -0600 In-Reply-To: <0c51f6ec-4190-18eb-6e67-e364509bf6c8@FreeBSD.org> References: <0c51f6ec-4190-18eb-6e67-e364509bf6c8@FreeBSD.org> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.18.5.1 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Oct 2018 22:58:52 -0000 On Tue, 2018-10-30 at 21:37 +0300, Lev Serebryakov wrote: >  I have disk with GPT scheme and three partitions: > > p1 - freebsd-boot > p2 - freebsd-ufs > p3 - freebsd-ufs > >  pmbr is installed on this disk, and gptboot is installed on p1. Both > p2 > and p3 contains valid FreeBSD installation, with /boot/loader, > kernel, > and everything. > >  I have attribute "bootme" set on p3, but not on p2. > >  What should I do to boot from p2? > >  I've tried to interrupt gptboot and override its choice: > >  0:ad(0p3)/boot/loader > >  with > >  0:ad(0p2)/boot/loader > >  After that loader, loaded from p2, loads kernel from p3 and boots > system from p3! > >  If I have MBR, I could override "active" slice in boot0 MBR loader > interactively. > >  Is it analogous feature for GPT? > While loader(8) is loading the kernel, interrupt it to get the console prompt (or ask the menu to give the prompt if you use menus) and do:  unload  set currdev=disk0p2  boot -- Ian