From owner-freebsd-hackers@FreeBSD.ORG  Wed May 19 04:58:47 2004
Return-Path: <owner-freebsd-hackers@FreeBSD.ORG>
Delivered-To: freebsd-hackers@freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 839F916A4CE
	for <hackers@freebsd.org>; Wed, 19 May 2004 04:58:47 -0700 (PDT)
Received: from aiel.daemonz.org (aiel.daemonz.org [213.222.53.77])
	by mx1.FreeBSD.org (Postfix) with ESMTP id A175043D4C
	for <hackers@freebsd.org>; Wed, 19 May 2004 04:58:46 -0700 (PDT)
	(envelope-from tacho@orbitel.bg)
Received: by aiel.daemonz.org (Postfix, from userid 1001)
	id CEB5BC2A1; Wed, 19 May 2004 14:58:41 +0300 (EEST)
Date: Wed, 19 May 2004 14:58:41 +0300
From: Stanislav Grozev <tacho@orbitel.bg>
To: Steven Hartland <killing@multiplay.co.uk>
Message-ID: <20040519115841.GC947@aiel.daemonz.org>
References: <200405191241.50871.db@traceroute.dk>
	<008401c43d8e$1da1a640$b3db87d4@multiplay.co.uk>
	<200405191346.45766.db@traceroute.dk>
	<00a901c43d97$14642540$b3db87d4@multiplay.co.uk>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <00a901c43d97$14642540$b3db87d4@multiplay.co.uk>
User-Agent: Mutt/1.5.6i
cc: hackers@freebsd.org
Subject: Re: Grub and FreeBSD 4.9
X-BeenThere: freebsd-hackers@freebsd.org
X-Mailman-Version: 2.1.1
Precedence: list
List-Id: Technical Discussions relating to FreeBSD
	<freebsd-hackers.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-hackers>,
	<mailto:freebsd-hackers-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-hackers>
List-Post: <mailto:freebsd-hackers@freebsd.org>
List-Help: <mailto:freebsd-hackers-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-hackers>,
	<mailto:freebsd-hackers-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Wed, 19 May 2004 11:58:47 -0000

On Wed, May 19, 2004 at 12:47:34PM +0100, Steven Hartland wrote:
> Oh quite possibly I have the grub install on a linux partition.
> just creating a small boot partition of a format that grub can load
> should be good enough though. If someone else can find out
> how to get grub to load read an ffs partition I'd be certainly
> interested as well.

mine works fine. i am with 5-current (UFS2, but it works with UFS1 also)
install the grub port

# mkdir /boot/grub
# cp /usr/local/share/grub/i386-freebsd/* /boot/grub

make a /boot/grub/menu.lst:

---begin menu.lst---
default=0
timeout=10

title FreeBSD
        root (hd0,1,a)
	kernel /boot/loader
---end menu.lst---

(adjust the root directive accordingly - mine is first hard disk,
second slice, partition 'a')


format a msdos diskette

then install grub on it:

# mount -t msdos /dev/fd0 /mnt
# mkdir /mnt/grub
# cp /boot/grub/* /mnt/grub/
# umount /mnt
# grub

grub> root (fd0)
grub> setup (fd0)
grub> quit

reboot from the diskette:

grub> root (hd0,1,a) # again, adjust accordingly
grub> setup (hd0) # install in MBR

then reboot and you should be all set

PS. I'm typing this from memory, but this is pretty much how I install it

-tacho
-- 
  0x44fc3339 || [02b5 798b 4bd1 97fb f8db 72e4 dca4 be03 44fc 3339]