From owner-freebsd-questions@FreeBSD.ORG Wed Jul 16 21:37:50 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 403C17C1 for ; Wed, 16 Jul 2014 21:37:50 +0000 (UTC) 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 DEB3D268A for ; Wed, 16 Jul 2014 21:37:49 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.9/8.14.9) with ESMTP id s6GLbmHI011227 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 16 Jul 2014 15:37:48 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.9/8.14.9/Submit) with ESMTP id s6GLbmAN011221; Wed, 16 Jul 2014 15:37:48 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Wed, 16 Jul 2014 15:37:48 -0600 (MDT) From: Warren Block To: Noel Hunt Subject: Re: FreeBSD 10.0, booting with grub (grub2) In-Reply-To: Message-ID: References: User-Agent: Alpine 2.11 (BSF 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Wed, 16 Jul 2014 15:37:48 -0600 (MDT) Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jul 2014 21:37:50 -0000 On Wed, 16 Jul 2014, Noel Hunt wrote: > I have a FreeBSD 10.0/Solaris 11.1 dual-boot machine. Solaris was > installed after FreeBSD and since it uses grub by default I am using > that to boot. Currently I am just invoking /boot/loader from grub.cfg > in Solaris, but I would like to boot directly. This just doesn't work. > > I have installed grub2 on FreeBSD via ports, and run `grub-mkconfig' > to get some entries for grub.cfg which I have simply applied to the > Solaris installation (via the custom.cfg script). > > But, these entries just don't work. I have tried running each command > by hand at the grub CLI with debugging but after all the debug output > is printed the screen goes black and the machine reverts to the > normal power-on screen, and the boot selection process starts all > over again. > > This is the entry: > > menuentry 'FreeBSD, with kFreeBSD kernel' { > insmod part_gpt > insmod ufs2 > search --no-floppy --fs-uuid --set=root 53a87fa1e9b6256d > echo 'Loading kernel of FreeBSD kernel ...' > kfreebsd /boot/kernel/kernel > kfreebsd_loadenv /boot/device.hints > kfreebsd_module_elf /boot/kernel/ufs.ko > set kFreeBSD.vfs.root.mountfrom=ufs:ufsid/53a87fa1e9b6256d > set kFreeBSD.vfs.root.mountfrom.options=rw > } I'm not sure what you mean about "/boot/loader from grub.cfg in Solaris". All I've done is: menuentry "FreeBSD" { set root="(hd0,gpt3)" # GPT partition 3 kfreebsd /boot/loader } The first partition was the Grub2 bootcode, the second partition was Linux, the third FreeBSD.