From owner-freebsd-hackers@freebsd.org Sun Dec 9 19:57:55 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 D08EE132CD03 for ; Sun, 9 Dec 2018 19:57:54 +0000 (UTC) (envelope-from atypical@autisticstory.net) Received: from cloud-vps.localdomain (unknown [IPv6:2001:15e8:110:75a::1]) (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 318D978683 for ; Sun, 9 Dec 2018 19:57:54 +0000 (UTC) (envelope-from atypical@autisticstory.net) Received: from localhost (localhost [127.0.0.1]) by cloud-vps.localdomain (Postfix) with ESMTP id 8CC793FD07 for ; Sun, 9 Dec 2018 20:48:54 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail.autisticstory.net Received: from cloud-vps.localdomain ([127.0.0.1]) by localhost (mail.autisticstory.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Hc7t4CgWdegz for ; Sun, 9 Dec 2018 20:48:19 +0100 (CET) Received: from [192.168.1.104] (unknown [83.142.188.79]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: atypical@autisticstory.net) by cloud-vps.localdomain (Postfix) with ESMTPSA id 196023FB75 for ; Sun, 9 Dec 2018 20:48:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=autisticstory.net; s=201807; t=1544384899; bh=zaTHa+6w3TGRsQigyq6LTyISrxmDh+bxrGORNWDsAwQ=; h=To:From:Subject:Date:From; b=G77kLlj+zlnE4f08QAkLUw9G9Dj0sypl4lWdCYeuzhBX91/dhwG2lWSMNTnUOHzw0 B+t9vlldc1xHNfWWia2aWPNmH91otsZ35xIQ3J4UiozHWQk//ruCne6DT7qp1lWd0z PgopJarYLMYcZSb1+a37+o322AsJtrk0UPdeHRIhSAyZtx3Am7mvY9zMmYwsbad4hc KD8HOvfH9dA07vpFLGDG42jTQ8EZqHwpcGgz53EjxmqOtln1osR4Pl7AfAUCfK8mLw Li0kpDlE0S3s9MYAZNQTH8dI6+6P0bk4FQmRyqrl1j6bZ2/VAE4mebxNAfWCAM3lED ZQEAHEtWFlv4LvbEWDXTvBMXdPil7efhfgqXfIgaCeoShsqyqA4YUot/yiNGzKKlPx pQwnbaekDkjIW4bgW1XHjByblzeImxOkdhKIz2yz0/cHoyz3PilImoW/6HEFdB1++R 7SQhWCTLYG3nCojBQU3wLlRwOr6Sirfhg+OWqwRgHGY3utyYI2BaopykU9GhZSZB/W PJe1teUpY7bojKN2HTljbLQwiOR5Vs0gnkMNn3pdJbltLcbjOGlu8vE+gE93zlvlZe plqSiZoGUZoJVoRp2cXdJT4VtsMuUVT6ZDVlmwkvarvNZjLPx2fj5R118ulVkvfm7z JUi6jjlVfIIwN//Isfcyfw9E= To: freebsd-hackers@freebsd.org From: Hubert Hauser Subject: Can anyone help me with booting FreeBSD from GRUB? Openpgp: preference=signencrypt Autocrypt: addr=atypical@autisticstory.net; keydata= xsFNBFvfH1cBEADMaaPj9N4y/pGIYrpYgkmabzCa+3AP/GZH3++d7DLGcVH7cePoCKKANa/F 9LXXACQDMmkdXBPXndUAN1sZmzYiQF+E15G9U9BEx1wBJxMmevGbJ28XGIu8ZTwOcNzIlO5G yhQVbKlfckuIEMFnPhqm863a91UyyQL19/JWnDBfq/DOTmPSc/tWPfWgpJdCsI6zRWreLXCb fwVg4L3prqkJbjVIuPsKS5YBF1eII6ABqcFvlGdZFQaN6Cy/4+pswVQUAaySWG/1tYq9XMbV 6zuBl15l8txRYu0aNdnV6A6900HmeKAWCthw1JMemOggMokxU5OR8dHez0CMPDvSJaXLJr0t wZeOlcK2Z8vSE1IRyvdSbtBKWM6YzfX+hOQzxRGy3qi4Z8Pk1yx9pjtrueM1Fhz3Ag7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T7va1njcgLjUHzMi0l8XLAYH/YfuDHbi3S g5rDXGuvA/DfjHV3Yup1tdx+u3X65sKmSvQ1E8Ol8QCbxyfcHWResAdBdIrBBtQ6PjTw+bS4 29UCVyUJBP8oDWv3G4F9or+rUZjVxSyVdRIsFMe7+64gcPc8GFiT2ML2WhlK15b/F6qrT/bz eT/LATJUyBhYy5FEgaN1sR0YH6PPj1yOOiFS3shY1frasSZrtQS0uOv1tbR0kC40LRwIjodT CiqqoeocxvmCcSUmdS7sO5dwk5UxqHb0pggicR4FtAi9MsAFgqQLli32uAk3sKcoweuzurGe CRZQ3j54zXYQTXMc5l4ciZrwlt9l58VJvWqJzvBxa9XY7I8Y65FfA0dr+QaGtc85Ahq4LVF4 asP53ZlxwK4U7IQC0eg+LctuAxyoViMmGUu2G4arr4N8lGkiXyzzcP9QkWD0uCaH/Ig2JsC7 sCu5NBfl Message-ID: <371b0099-0c0f-e8d2-867e-62c57b9ad646@autisticstory.net> Date: Sun, 9 Dec 2018 19:47:04 +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-Virus-Scanned: ClamAV using ClamSMTP X-Rspamd-Queue-Id: 318D978683 X-Spamd-Result: default: False [6.85 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; RDNS_NONE(1.00)[]; TO_DN_NONE(0.00)[]; HFILTER_HELO_IP_A(1.00)[cloud-vps.localdomain]; HFILTER_HELO_NORES_A_OR_MX(0.30)[cloud-vps.localdomain]; RCVD_COUNT_THREE(0.00)[4]; DKIM_TRACE(0.00)[autisticstory.net:+]; DMARC_POLICY_ALLOW(-0.50)[autisticstory.net,none]; MX_GOOD(-0.01)[cached: mail.autisticstory.net]; NEURAL_HAM_SHORT(-0.21)[-0.206,0]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(0.08)[asn: 24806(0.40), country: CZ(0.01)]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:24806, ipnet:2001:15e8::/32, country:CZ]; RCVD_TLS_LAST(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[autisticstory.net]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; NEURAL_SPAM_MEDIUM(1.00)[0.996,0]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_SPAM_LONG(0.99)[0.988,0]; R_SPF_NA(0.00)[]; HFILTER_HOSTNAME_UNKNOWN(2.50)[]; GREYLIST(0.00)[pass,body] X-Rspamd-Server: mx1.freebsd.org X-Spam: Yes 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:57:55 -0000 Hello! 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?