From owner-freebsd-hackers@freebsd.org Sun Dec 9 19:34:21 2018 Return-Path: Delivered-To: freebsd-hackers@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 9A622132C1EE for ; Sun, 9 Dec 2018 19:34:21 +0000 (UTC) (envelope-from hubot@mail.com) Received: from mout.gmx.com (mout.gmx.com [74.208.4.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.gmx.com", Issuer "GeoTrust RSA CA 2018" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D733877A74 for ; Sun, 9 Dec 2018 19:34:20 +0000 (UTC) (envelope-from hubot@mail.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mail.com; s=dbd5af2cbaf7; t=1544384058; bh=ffz1iyeccDhT+0jiMsarzvorwq7oK4YejBnMoTSiFt0=; h=X-UI-Sender-Class:To:From:Subject:Date; b=Td/caFZ87DEi47KBWfpfq15noOuR/1C5FuoxQ3tt/MJavnLkGLr/5Pwzs8DHFSqkj cmtf4g+eA4ebbVahR5r7oVpYrEsKzw+3ZpWJR44ERVCg3CfX6fwvEAzCvBZaxUOq1T L71n06G8Qtx+BbB+c15UVRXfglu3C/MRTNsEshuk= X-UI-Sender-Class: 214d933f-fd2f-45c7-a636-f5d79ae31a79 Received: from [192.168.1.104] ([83.142.188.79]) by mail.gmx.com (mrgmxus002 [74.208.5.15]) with ESMTPSA (Nemesis) id 0MPDug-1gaUc71Cj2-004QQS for ; Sun, 09 Dec 2018 20:29:07 +0100 To: freebsd-hackers@freebsd.org From: Hubert Hauser Subject: Can anyone help me with booting FreeBSD from GRUB? Message-ID: Date: Sun, 9 Dec 2018 19:27:53 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.2 MIME-Version: 1.0 Content-Language: en-US X-Provags-ID: V03:K1:iff/UQn1liecRIwjzxzqd0lobw4pYFGNSoDdzyYtG9ETcA+MdLc 498MlekCKZTnbAkfb4lZtOMDxHhhM5FO6FKwdNpXqNGusS+aZWchCkNzqwIzJn98zwhaMj3 GJ6Q/2Dcu+4jNK4uFFO5+osZURqocet1mcMXjD9zBn8y59ah3UPyegsVkDEX+LsBEVx9FxP tzBBL8V41GanNbpk2HaKA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:hMFndCz0BBk=:Z8+U2GXV25bbs+oGD3JzXa v91U/JChrm8ubz9nkqPKyiTNYmlhBV7VmioCaEdDg9WWIzFn1/LhP7h56LqBJgThHoowTofWE Ap6KWQ0enphS1Wp6m5L6ng7tePYFyULKV147p7l3emmu/oz1jqrb0vH3mmu0HyuagvPQwNUm9 NoPApUOzyoWyPbamxDEnLipxk+VznfyTlXtOdN37S8UtxwrEjdV3pjmtCLKrP71rqS8wJ/NXk F/zFOfk9+jeAMiPJ8LuCCfhN2PT/5Xf64V/z0wTxfTc10IwG714FFjKl44DJl7N2abOaFheLZ gKxPJVykYlMoO8qrXKdtefYZCxVMN/409neIN91toq0aoeFn47FQWb5HiCl8zMu9gVWyzyrvw FK5vIBE42OKgCLKckLj80cOPJn1nvx3Y7Kr47u9ar5PLGQzqleaWRvHybSqu1p+DN5biPPJgC AXSIcSML15qsxez9L60qa1T7LCUmRptno20a/scbAY9AruFMu0iZ2VufkCnFEGuqfdVLIwaPJ dd13A3WlXa9bVTZV5bBS1krIJK10Cgd0IzpaIunooeBPmq73Hf1fSnETrOoti8j9lX9vbp4jg /7PSHZvp9ScJAZEiJxuWo6uwVDExcLFULgRIWVSXSPcuxcL/oBHhH0nX/WbD4vCHH3d1Jg6Jw SxPXiA0ba07U7VGxUXlcb1wFL22XDkxUbwu97WpfzFHAyDDiMV1bWb422I5ggIbBm6RiZi8Js IN/0Le8gLool0rZPlFb5xxIv1hHzhC0Toq9x3hvecAqKpZxCBO3uRkJmS9cwspIY9wCW8NQB0 KbeI5LtK61weHWpiUtCPDw9uVXjZkN+kpmvshaorFE4KQ4qqfCTH9gj8fWeP41cXDHPqsrpyp c4Qb4r8951Pvye/i2o+bbkEQGksl6LJzeo2z8KsYt5sLBcG+5FmMWQ/I3q9JWz X-Rspamd-Queue-Id: D733877A74 X-Spamd-Result: default: False [-2.28 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:74.208.4.192/26]; FREEMAIL_FROM(0.00)[mail.com]; TO_DN_NONE(0.00)[]; DKIM_TRACE(0.00)[mail.com:+]; MX_GOOD(-0.01)[cached: mx01.mail.com]; NEURAL_HAM_SHORT(-0.72)[-0.719,0]; RCVD_IN_DNSWL_LOW(-0.10)[200.4.208.74.list.dnswl.org : 127.0.3.1]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; FREEMAIL_ENVFROM(0.00)[mail.com]; ASN(0.00)[asn:8560, ipnet:74.208.0.0/16, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.89)[-0.890,0]; R_DKIM_ALLOW(-0.20)[mail.com]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-0.999,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; DMARC_NA(0.00)[mail.com]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE(-0.06)[ipnet: 74.208.0.0/16(-0.18), asn: 8560(-0.10), country: DE(-0.01)]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-Rspamd-Server: mx1.freebsd.org X-Mailman-Approved-At: Sun, 09 Dec 2018 20:44:02 +0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Dec 2018 19:34:21 -0000 I have got installed Debian 9 Stretch and FreeBSD with UFS boot partition and root filesystem on ZFS. I use GPT scheme of partitioning on a legacy BIOS. Here's content of /etc/grub.d/40_custom: menuentry "FreeBSD" {     insmod bsd     insmod ufs2     set root='(hd0,gpt5)'     chainloader +1 } When I'm trying to boot FreeBSD through GRUB I receive `error: attempt to read or write outside of disk 'hd0'`. My partition layout is: * ada0 - primary 3 TB hard drive with GPT partition scheme * ada0p1 - BIOS boot * ada0p2 - linux filesystem, mountpoint: /boot * ada0p3 - linux filesystem LVM on LUKS * ada0p4 - FreeBSD boot, gptboot * ada0p5 - FreeBSD UFS, mountpoint: /boot, required by geli to boot FreeBSD * ada0p6 - FreeBSD swap * ada0p7 - FreeBSD ZFS on geli My actual config menuentry "FreeBSD" {     insmod bsd     insmod ufs2     insmod part_gpt     set root='(hd0,gpt4)'     kfreebsd /boot/loader } doesn't work. It returns an error: unknown filesystem. Can anyone help me?