From owner-freebsd-hackers@freebsd.org Fri Apr 15 11:04:14 2016 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E9580AED7B3 for ; Fri, 15 Apr 2016 11:04:14 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "vps1.elischer.org", Issuer "CA Cert Signing Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id C74641BB8 for ; Fri, 15 Apr 2016 11:04:14 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from Julian-MBP3.local (ppp121-45-252-92.lns20.per4.internode.on.net [121.45.252.92]) (authenticated bits=0) by vps1.elischer.org (8.15.2/8.15.2) with ESMTPSA id u3FB3idl097020 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Fri, 15 Apr 2016 04:03:49 -0700 (PDT) (envelope-from julian@freebsd.org) Subject: Re: A few stupid questions regarding MBR and boot0 To: "Andrey V. Elsukov" , Aleksander Alekseev , freebsd-hackers@freebsd.org References: <20160414144849.7a08b1db@fujitsu> <570F92D8.1000405@yandex.ru> From: Julian Elischer Message-ID: <5710CA8B.80102@freebsd.org> Date: Fri, 15 Apr 2016 19:03:39 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: <570F92D8.1000405@yandex.ru> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Apr 2016 11:04:15 -0000 On 14/04/2016 8:53 PM, Andrey V. Elsukov wrote: > On 14.04.16 14:48, Aleksander Alekseev wrote: >> 1) If I understand correctly first 512 bytes of /dev/ad0 >> and /boot/boot0 file should match, but they don't: >> >> http://afiskon.ru/s/31/665dc9755c_mbr.txt >> >> Could someone please explain why they don't match? > https://www.freebsd.org/cgi/man.cgi?gpart#BOOTSTRAPPING > As Alan said, there two alternate boot sectors.. the original, and an enhanced one htat allow syou to select from a compiled in menu. The one that has 'inux' 'reeBSD' in it is the menu one. man boot0cfg