From owner-freebsd-hackers Wed Apr 26 20:16:42 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from peach.ocn.ne.jp (peach.ocn.ne.jp [210.145.254.87]) by hub.freebsd.org (Postfix) with ESMTP id 3759C37B8ED for ; Wed, 26 Apr 2000 20:16:39 -0700 (PDT) (envelope-from dcs@newsguy.com) Received: from newsguy.com (p29-dn01kiryunisiki.gunma.ocn.ne.jp [211.0.245.30]) by peach.ocn.ne.jp (8.9.1a/OCN/) with ESMTP id MAA18100; Thu, 27 Apr 2000 12:16:34 +0900 (JST) Message-ID: <3907B179.6D05FAB2@newsguy.com> Date: Thu, 27 Apr 2000 12:18:17 +0900 From: "Daniel C. Sobral" X-Mailer: Mozilla 4.7 [en] (Win98; I) X-Accept-Language: en,pt-BR,ja MIME-Version: 1.0 To: George Cox Cc: freebsd-hackers@freebsd.org Subject: Re: How about building modules along with the kernel? References: <3906C526.A9F3EF02@newsguy.com> <20000426185707.A361@trafalgar.sophos.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG [cc'ing to hackers, to get this archived] George Cox wrote: > > On 26/04 19:29, Daniel C. Sobral wrote: > > > BTW, loader reads FAT just fine too, thank you. > > I have a related question :-) > > Is there any way I can put a FreeBSD kernel on a DOS partition, and load > it, specifying the root device (different from the DOS partition device) > that I want it to use? Sure. There are many variations that you can try. For example, you can put something like kernel="disk1s1:/kernel" in /boot/loader.conf, which will cause the loader to get the kernel from said disk/slice. Now, assume FreeBSD is on disk2 or disk1s2, for example, and you tell booteasy (boot0) to boot from said disk. The root device will be the one you asked booteasy to boot FreeBSD from (and where loader will be loaded from), while the kernel will be coming from the other disk. Alternatively, there is the variable rootdev you can use to specify an alternate root device. See loader(8) for more information, as well as "help" from the loader prompt. :-) -- Daniel C. Sobral (8-DCS) dcs@newsguy.com dcs@freebsd.org dcs@there.is.no.such.thing.as.a.bsdconspiracy.net GPL certainly doesn't meet Janis Joplin's definition of freedom: "Freedom is just another word for nothing left to lose." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message