From owner-freebsd-questions@FreeBSD.ORG Wed Dec 14 16:36:24 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1F3E016A41F for ; Wed, 14 Dec 2005 16:36:24 +0000 (GMT) (envelope-from micahjon@ywave.com) Received: from smtpout1.ywave.com (ycomradius.yelmtel.com [216.227.100.60]) by mx1.FreeBSD.org (Postfix) with SMTP id B80B443D45 for ; Wed, 14 Dec 2005 16:36:23 +0000 (GMT) (envelope-from micahjon@ywave.com) Received: (qmail 1249 invoked by uid 502); 14 Dec 2005 16:36:22 -0000 Received: from dsl28163.ywave.com (HELO ?192.168.1.65?) (micahjon@ywave.com@216.227.115.163) by 0 with SMTP; 14 Dec 2005 16:36:22 -0000 X-CLIENT-IP: 216.227.115.163 X-CLIENT-HOST: dsl28163.ywave.com Message-ID: <43A04A05.3060504@ywave.com> Date: Wed, 14 Dec 2005 08:36:21 -0800 From: Micah User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051204) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Roberto Nunnari References: <43A031B1.2030105@supsi.ch> In-Reply-To: <43A031B1.2030105@supsi.ch> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "'freebsd-questions@freebsd.org'" Subject: Re: grub doesn't know ufs filesystem 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: Wed, 14 Dec 2005 16:36:24 -0000 Roberto Nunnari wrote: > Hello list. > > Please also reply to my mailbox, as I'm not on the list. > Thank you. > > I have a old grub floppy that I use time to time to > boot/recover pc with different OS.. Today I wanted to > boot a freebsd 5.3-RELEASE-p23 box, but to my surprise > grub reported: > > Filesystem type unknown, partition type 0xa5 > > and thus cannot mount /boot/loader > > So I thought I'd make a grub floppy with a recent version, > but even with version 0.97 things won't change.. > > # cd /usr/ports/sysutils/grub > # make install > # grub > [ Minimal BASH-like line editing is supported. For the first word, TAB > lists possible command completions. Anywhere else TAB lists the > possible > completions of a device/filename. ] > > grub> root (hd0,0,a) > Filesystem type unknown, partition type 0xa5 > > grub> kernel /boot/loader > > Error 17: Cannot mount selected partition > > grub> root (hd0, > Possible partitions are: > Partition num: 0, [BSD sub-partitions immediately follow] > BSD Partition num: 'a', Filesystem type unknown, partition type 0xa5 > BSD Partition num: 'b', Filesystem type unknown, partition type 0xa5 > BSD Partition num: 'd', Filesystem type unknown, partition type 0xa5 > BSD Partition num: 'e', Filesystem type unknown, partition type 0xa5 > BSD Partition num: 'f', Filesystem type unknown, partition type 0xa5 > > grub> quit > > # mount > /dev/ad0s1a on / (ufs, local, soft-updates) > devfs on /dev (devfs, local) > /dev/ad0s1e on /tmp (ufs, local, soft-updates) > /dev/ad0s1f on /usr (ufs, local, soft-updates) > /dev/ad0s1d on /var (ufs, local, soft-updates) > linprocfs on /usr/compat/linux/proc (linprocfs, local) > devfs on /var/named/dev (devfs, local) > > Any hint/thought/advice? > > Best regards. I just installed grub from ports and duplicated your test and it works fine. I'd start by checking your installation and making sure you don't have any other grubs in your path. Some of the grubs that ship with Linux distros do not support ufs. Do a find/locate on grub to see what turns up. Do a which grub, you should get /usr/local/sbin/grub. If not, issue /usr/local/sbin/grub from a command prompt and duplicate your test. If that's broken, make sure your ports tree is up to date, make sure /usr/ports/devel/autoconf259 /usr/ports/devel/automake19 /usr/ports/devel/gmake are up to date (grub's build dependancies) then deinstall, clean, and reintsall the grub port. HTH, Micah