From owner-freebsd-questions@freebsd.org Mon Oct 3 23:08:32 2016 Return-Path: Delivered-To: freebsd-questions@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 11131AF4503 for ; Mon, 3 Oct 2016 23:08:32 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id BA2DABBE for ; Mon, 3 Oct 2016 23:08:28 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.15.2/8.15.2) with ESMTPS id u93N8RP1008973 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 3 Oct 2016 17:08:27 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.15.2/8.15.2/Submit) with ESMTP id u93N8PfA008970; Mon, 3 Oct 2016 17:08:26 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Mon, 3 Oct 2016 17:08:25 -0600 (MDT) From: Warren Block To: Ian Smith cc: David Christensen , Perry Hutchison , freebsd-questions@freebsd.org Subject: Re: FreeBSD-10.3-RELEASE-i386-memstick.img installer changes contents of USB flash drive In-Reply-To: <20161004010853.E6806@sola.nimnet.asn.au> Message-ID: References: <20160929014801.W6806@sola.nimnet.asn.au> <20161001235138.N6806@sola.nimnet.asn.au> <20161004010853.E6806@sola.nimnet.asn.au> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Mon, 03 Oct 2016 17:08:27 -0600 (MDT) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Oct 2016 23:08:32 -0000 On Tue, 4 Oct 2016, Ian Smith wrote: > > I'd think you could just dd(1) the contents of the single installer disk > > partition into a big-enough MBR partition. Repeat for each image, then use > > boot0cfg. > > Sure, for old-style raw BSD images, but that won't work for images with: > 1) PMBR, 2) primary GPT, 3) efifat partition, 4) gptboot partition then > 5) the UFS partition - which is all we want to copy to a bootable BSD > slice - then 6) 1M(??) swap. We need to use /boot/boot bootblocks for > each slice; still, it may be easy to locate and dd just that partition > out of the mdconfig'd image - or mount it and copy; some tests needed. What is the difficulty? 1-4 are not needed for an MBR disk anyway. The UFS partition is the same either way, and gpart can install the bootcode that lives in the start of a UFS filesystem also. It would be easier to not use boot0, which is not very powerful. Syslinux or Grub can multiboot with a lot more options, although you do need to make room for them.