From owner-freebsd-stable@FreeBSD.ORG Mon Aug 26 20:02:43 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1121) id 2319F378; Mon, 26 Aug 2013 20:02:43 +0000 (UTC) Date: Mon, 26 Aug 2013 20:02:43 +0000 To: Thomas Mueller Subject: Re: Change in loader or kernel: won't boot with kfreebsd in grub2 Message-ID: <20130826200243.GA90837@hub.freebsd.org> References: <429990.38961.bm@smtp103.sbc.mail.bf1.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <429990.38961.bm@smtp103.sbc.mail.bf1.yahoo.com> User-Agent: Mutt/1.5.21 (2010-09-15) From: nox@FreeBSD.ORG (Juergen Lock) Cc: "Andrey V. Elsukov" , freebsd-stable@freebsd.org, Juergen Lock X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Aug 2013 20:02:43 -0000 On Sun, Aug 25, 2013 at 03:35:06PM -0700, Thomas Mueller wrote: > > On Sat, Aug 24, 2013 at 08:53:31PM -0700, Thomas Mueller wrote: > > > Some updates: > > > > I could see what happens if I try to boot the FreeBSD boot partition on the hard drive using the Super Grub Disk with chainloader. > > > > If that works, it would boot FreeBSD 9.0-BETA1, but I would see if it works. > > > > That failed (invalid signature). > > > You probably need to chainload a freebsd-boot partition, _if_ you > > want to chainload at all. > > I was trying to chainload the freebsd-boot partition! But grub2 didn't like it. > Hmm I guess it doesn't know about that partition type yet then... > > > I could also try > > > kfreebsd /boot/kernel/kernel > > > > That failed to boot the proper partition, went to the debugger (db>), whereupon all I could type was "reboot". > > > You didn't get a mountroot prompt? If you did you can try typing a > > question mark and return, that should list possible partitions to mount > > root from. If you didn't, or you don't want to do this manually you > > need to set kFreeBSD.vfs.root.mountfrom=ufs:/dev/ada0p1 from grub2, > > or wherever your root partition is. > > I remember pressing a key, but then the system rushed past the mountroot prompt into the debugger prompt. > If you pressed return w/o typing anything I guess that's what will happen... > > > Now can I safely install boot into the partition to be booted, as I did with NetBSD on USB stick? > > > > gpart -p /boot/boot -i 3 > > > > That would be for /dev/ada0p3, but I am afraid of damaging something. > > > That would need to be on a freebsd-boot partition, and you want > > /boot/gptboot not /boot/boot. > > I believe bsdlabel can be used to install boot code to a partition, but believe that is not for GPT. Indeed. > I could try bsdlabel on a giant floppy image as I used installboot on a giant floppy image for NetBSD. > Uhm, why not just get grub2 kfreebsd booting working? Best, Juergen