From owner-freebsd-questions Sun Feb 8 21:54:01 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA07510 for questions-outgoing; Sun, 8 Feb 1998 21:51:17 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from gdi.uoregon.edu (gdi.uoregon.edu [128.223.170.30]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA07449 for ; Sun, 8 Feb 1998 21:51:06 -0800 (PST) (envelope-from dwhite@gdi.uoregon.edu) Received: from localhost (dwhite@localhost) by gdi.uoregon.edu (8.8.7/8.8.8) with SMTP id VAA25026; Sun, 8 Feb 1998 21:51:02 -0800 (PST) (envelope-from dwhite@gdi.uoregon.edu) Date: Sun, 8 Feb 1998 21:51:02 -0800 (PST) From: Doug White Reply-To: Doug White To: Werner Koch cc: freebsd-questions@FreeBSD.ORG Subject: Re: GRUB and rootdev In-Reply-To: <19980205103435.60098@isil.d.shuttle.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 5 Feb 1998, Werner Koch wrote: > > you're doing it the wrong way -- you need to hack GRUB to recognize the > > FreeBSD FS. FreeBSD does not support any other root filesystem type other > > than UFS (with exception, but the Linux FS isn't one of them). > > Sure, that't the correct way. But I like to install FreeBSD first, so I can > look at it's sources. The only problem is, that I don't know, how to tell > the kernel what the rootdev is. The installation made a custom kernel out > of kernel.GENERIC and I' can't believe, that it is not possible to set the > rootdev into that kernel (which boots) - or does the kernel use the device > from which it is loaded as rootdev? In that case I really have to patch > GRUB so it can load the kernel from the freebsd filesystem. The installer does not build kernels; it simply writes in the device configuration set in the boot-time confiuguration utility into the kernel itself so you don't have to do it again after the install, when it doesn't come up automatically. The kernel intuits which disk it's booting from by using some special magic, somehow translating bios disk number to real-life device number. It then tries to mount partition a on the device. Partition a must be a UFS partition. To answer the question, it uses the device it was loaded from. > By the way, what is the difference between the FreeBSD filesystem, mentioned > in the GRUB dox and the one which is used by FreeBSD (GRUB complains that > it does not know this file system on partion with type a5) I don't know; I'd have to look at GRUB (which may be stuck in the dark ages thinking that FreeBSD uses the same ID as other BSDs). Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe questions" in the body of the message