From owner-freebsd-hackers@FreeBSD.ORG Wed May 19 03:36:54 2004 Return-Path: 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 B524716A4CE for ; Wed, 19 May 2004 03:36:54 -0700 (PDT) Received: from cicero0.cybercity.dk (cicero0.cybercity.dk [212.242.40.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0EA7543D53 for ; Wed, 19 May 2004 03:36:54 -0700 (PDT) (envelope-from db@traceroute.dk) Received: from user3.cybercity.dk (user3.cybercity.dk [212.242.41.36]) by cicero0.cybercity.dk (Postfix) with ESMTP id A82182A47C for ; Wed, 19 May 2004 12:36:30 +0200 (CEST) Received: from main.trunet.dk (port132.ds1-arsy.adsl.cybercity.dk [212.242.239.73]) by user3.cybercity.dk (Postfix) with ESMTP id 4729793EBE for ; Wed, 19 May 2004 12:36:30 +0200 (CEST) From: db Date: Wed, 19 May 2004 12:41:50 +0200 User-Agent: KMail/1.6.2 To: hackers@freebsd.org MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200405191241.50871.db@traceroute.dk> Subject: 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 May 2004 10:36:54 -0000 Hi all I'm trying to get grub working on my FreeBSD 4.9 test-box. So far I've done: cd /usr/ports/sysutils/grub make install clean mkdir /boot/grub cp /usr/local/share/grub-0.94/i386-freebsd/* /boot/grub/ In /boot/grub I created a fil called menu.lst and wrote this in it: default 0 # By default, boot the first entry. timeout 5 # Boot automatically after 30 secs. title FreeBSD root (hd0,0) kernel /boot/loader My box is just a test box with one harddisk, so I've made one huge / and then given about 256 mb to swap. I've read that the safest way to install grub is by making a bootdisk, boot and run setup, so I made the disk: # cd /boot/grub # dd if=stage1 of=/dev/afd0 bs=512 count=1 1+0 records in 1+0 records out # dd if=stage2 of=/dev/afd0 bs=512 seek=1 153+1 records in 153+1 records out And I booted on it just fine, but I can't install grub because it by default dones't support ffs drives. I know there is a ffs_stage1_5 in /boot/grub, but how do I use it? Anyway I rebooted in FreeBSD and ran "grub" and made the install successfully, but then booting the system again I get an "error 18". So how do I fix it? I've also tried getting network support built into grub, but I can't figure out which driver to use (FreeBSD use de0), any ideas? Best regards db