From owner-freebsd-questions@freebsd.org Wed Nov 27 12:16:18 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 85FB31AA8B0 for ; Wed, 27 Nov 2019 12:16:18 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47NKW530qmz423s for ; Wed, 27 Nov 2019 12:16:16 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de ([188.102.99.44]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.167]) with ESMTPA (Nemesis) id 1MrhDg-1i4AL02IZ2-00nkhH; Wed, 27 Nov 2019 13:16:10 +0100 Date: Wed, 27 Nov 2019 13:16:09 +0100 From: Polytropon To: tech-lists Cc: freebsd-questions@freebsd.org Subject: Re: 12.1-STABLE r354923 snapshot install doesn't like manual ufs setup Message-Id: <20191127131609.e69ab03c.freebsd@edvax.de> In-Reply-To: <20191127033739.GB75104@bastion.zyxst.net> References: <20191127033739.GB75104@bastion.zyxst.net> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:saSjRPsfXkpNgYwcVbXy3s+xqVdpp8qJZwGu2na/DSSgVJhi1aI zfR94dKvmVeMDMgBhZez6+8lfqe1fM1N5WPHiR8wVCUJnsfWomYHL3BxxBsvq7kxcdnSZiA wIV4BGS3kHCjcIE8EzjhoPINBwUP94eMoYB5LOm+wPRBivxXy71G1MODYjr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.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of freebsd@edvax.de has no SPF policy when checking 212.227.126.134) smtp.mailfrom=freebsd@edvax.de X-Spamd-Result: default: False [4.97 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[freebsd@edvax.de]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; HAS_ORG_HEADER(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; MIME_TRACE(0.00)[0:+]; RECEIVED_SPAMHAUS_PBL(0.00)[44.99.102.188.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11]; ARC_NA(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[edvax.de]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.99)[0.992,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(1.00)[0.998,0]; RCVD_IN_DNSWL_NONE(0.00)[134.126.227.212.list.dnswl.org : 127.0.5.0]; MID_CONTAINS_FROM(1.00)[]; R_SPF_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE(0.58)[ip: (1.87), ipnet: 212.227.0.0/16(-1.23), asn: 8560(2.29), country: DE(-0.01)] 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: Wed, 27 Nov 2019 12:16:18 -0000 On Wed, 27 Nov 2019 03:37:39 +0000, tech-lists wrote: > Hi, > > Got a new ssd so tried latest snapshot install to it. I wanted seperate /usr > /var and / partitions, also to enable trim, also two 16GB swap partitions, > so selected manual UFS, completed the install, reboot, cannot find kernel. Did you do this using the bsdinstall program, or manually via shell? If in shell, make sure you wrote the boot code. After the installation, reboot with the installation medium, mount your / partition, and check if /boot contains the kernel. In case of MBR, there are two important things: 1. The slice where you installed FreeBSD to, let's say, /dev/ada0s1, has to be marked "active". 2. The partition where the kernel is located, usually assigned to the / mountpoint, has to be the "a" partition, here /dev/ada0s1a. Those things are "chained" when the OS is attempted to be loaded: find first disk; on first disk, find first primary partition that is "active", transfer control to it; from there, mount "a" partition and load kernel from it. In case you're using the "decicated" approach, you can omit the slicing part; for example /dev/ada0a would contain the boot code. > Repeated the install the same way again with same result. Rebooted, ran > the installer for a third time, selected auto ufs and everything worked > as expected on reboot, but of course without the modifications I wanted. > > Is this a known issue? Even though bsdinstall isn't that bad, I personally prefer to prepare the disk via shell commands manually before I return to bsdinstall, add the created partitions, and have the installer do it's work, in case I needed something that is "non-standard" (as you've described). This is because of my impression (I wouldn't call it an issue though) that the bsdinstall program doesn't understand when you leave its predefined path... ;-) > Also, MBR is selected by default. SHould I be using GPT instead, nowadays? Probably yes. Use GPT. Use MBR only if you have a good reason to do so (inter-OS things might be such a case). -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...