From owner-freebsd-questions@freebsd.org Thu Nov 21 17:47:24 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 5D8781C61B6 for ; Thu, 21 Nov 2019 17:47:24 +0000 (UTC) (envelope-from luciano@vespaperitivo.it) Received: from baobab.bilink.net (baobab.bilink.net [212.45.144.44]) by mx1.freebsd.org (Postfix) with ESMTP id 47Jn7v03Gqz3D77 for ; Thu, 21 Nov 2019 17:47:22 +0000 (UTC) (envelope-from luciano@vespaperitivo.it) Received: from baobab.bilink.net (localhost [127.0.0.1]) by baobab.bilink.it (Postfix) with ESMTP id 47Jn7s1T2Hz1ftWV for ; Thu, 21 Nov 2019 18:47:21 +0100 (CET) Received: from hermes.mcs.it (hermes.mcs.it [192.168.132.21]) by baobab.bilink.it (Postfix) with ESMTP id 47Jn7s0jZ4z1ftWX for ; Thu, 21 Nov 2019 18:47:21 +0100 (CET) Received: from mordeus (unknown [192.168.45.6]) by hermes.mcs.it (Postfix) with ESMTP id E75E94D2698 for ; Thu, 21 Nov 2019 18:47:20 +0100 (CET) Date: Thu, 21 Nov 2019 18:47:10 +0100 From: Luciano Mannucci To: freebsd-questions@freebsd.org Subject: Re: Root filesystem In-Reply-To: <47Jh0h1fbfz1ftWV@baobab.bilink.it> References: <47Jh0h1fbfz1ftWV@baobab.bilink.it> X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; amd64-portbld-freebsd11.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 Message-Id: <47Jn7s0jZ4z1ftWX@baobab.bilink.it> X-Virus-Scanned: PippoLillo, ClamAV using ClamSMTP X-Rspamd-Queue-Id: 47Jn7v03Gqz3D77 X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of luciano@vespaperitivo.it designates 212.45.144.44 as permitted sender) smtp.mailfrom=luciano@vespaperitivo.it X-Spamd-Result: default: False [-5.19 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:212.45.144.0/24]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_THREE(0.00)[4]; DMARC_NA(0.00)[vespaperitivo.it]; RCVD_IN_DNSWL_NONE(0.00)[44.144.45.212.list.dnswl.org : 127.0.10.0]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:8816, ipnet:212.45.128.0/19, country:IT]; IP_SCORE(-2.99)[ip: (-8.02), ipnet: 212.45.128.0/19(-4.01), asn: 8816(-2.95), country: IT(0.03)] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Nov 2019 17:47:24 -0000 On Thu, 21 Nov 2019 14:55:38 +0100 Luciano Mannucci wrote: > I know you can tell from which disk to boot at the > initial prompt by escaping to the prompt and setting a variable; can > this be saved for next boot? Apparently not. According to TFM, "gptboot searches through freebsd-ufs partitions in the GPT and selects one to boot based on the bootonce and bootme attributes. If neither attribute is found, /boot/gptboot boots from the first freebsd-ufs partition." So no way to make it boot from another disk. To achieve that I need a boot loader (such as grub), which would do the trick. A bit too much fuss. I think I will reformat the disk and partition it with a freebsd-boot partition, that would happily boot if I install the needed stages with gpart... Sorry for the noise, 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/