From owner-freebsd-questions@FreeBSD.ORG Fri May 7 10:32:23 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0D1F11065672 for ; Fri, 7 May 2010 10:32:23 +0000 (UTC) (envelope-from cpghost@cordula.ws) Received: from mail-ew0-f224.google.com (mail-ew0-f224.google.com [209.85.219.224]) by mx1.freebsd.org (Postfix) with ESMTP id 9FE558FC15 for ; Fri, 7 May 2010 10:32:22 +0000 (UTC) Received: by ewy24 with SMTP id 24so218018ewy.33 for ; Fri, 07 May 2010 03:32:18 -0700 (PDT) MIME-Version: 1.0 Received: by 10.213.48.5 with SMTP id p5mr3957849ebf.0.1273228338374; Fri, 07 May 2010 03:32:18 -0700 (PDT) Received: by 10.213.30.20 with HTTP; Fri, 7 May 2010 03:32:18 -0700 (PDT) X-Originating-IP: [93.203.47.96] In-Reply-To: <4BE3AF8B.7040004@gmx.de> References: <4BE3AF8B.7040004@gmx.de> Date: Fri, 7 May 2010 12:32:18 +0200 Message-ID: From: "C. P. Ghost" To: Lokadamus Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-questions@freebsd.org Subject: Re: grub2 not in ports? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 May 2010 10:32:23 -0000 On Fri, May 7, 2010 at 8:13 AM, Lokadamus wrote: > Am 07.05.2010 02:10, schrieb C. P. Ghost: >> has someone successfully ported GRUB2[1] to FreeBSD/i386 >> and FreeBSD/amd64? I see no port sysutils/grub2 in the tree, >> even though I know that GRUB2 *can* boot FreeBSD directly >> and via chain-loading. > > http://www.freebsd.org/cgi/url.cgi?ports/sysutils/grub/pkg-descr Thank you, but this is legacy GRUB, and not what I'm looking for. I specifically need GRUB2, that's why I've asked for a port or if someone is interested in or already making one. > This port does not install GRUB on the master boot record of your hard > drive. > To do this, or to use it with a floppy disk, you will need to read the info > page that is installed by the port. Of course: grub/grub2 ports aren't supposed to install anything on the MBR by default. You're right: one has to invoke 'grub' specifically, after creating a /boot/grub/menu.lst file. > When you will use grub2, you need a floppy or live cd to install it. > But no bsd- based live cd will have grub2 i think. What I want to do is this: I create a floppy disk (or hdd disk) image with dd, put a file system on it, mount it via mdconfig(8), and at this point, I need to install GRUB2 on it (and then run qemu -fda or qemu -hda to boot it). I know how to do this with legacy GRUB and it works perfectly (there's a trick with setting kern.geom.debugflags to 16, a.k.a "allow foot shooting" (geom(4)) to set up the MBR though). With GRUB2, it is a little bit different, as far as I can see. Having the GRUB2 files installed via a port would be a little bit easier than compiling GRUB2 manually (though it's not really hard to port it). > Sorry for my english :( > Cheers Kind regards, -cpghost. -- Cordula's Web. http://www.cordula.ws/