From owner-freebsd-questions Fri Jan 19 00:27:08 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id AAA28163 for questions-outgoing; Fri, 19 Jan 1996 00:27:08 -0800 (PST) Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id AAA28138 for ; Fri, 19 Jan 1996 00:26:16 -0800 (PST) Received: from msmith@localhost by genesis.atrad.adelaide.edu.au (8.6.12/8.6.9) id TAA09382; Fri, 19 Jan 1996 19:01:57 +1030 From: Michael Smith Message-Id: <199601190831.TAA09382@genesis.atrad.adelaide.edu.au> Subject: Re: Recompiling Kernel with Live File System To: ANDRSN@HOOVER.STANFORD.EDU (Annelise Anderson) Date: Fri, 19 Jan 1996 19:01:56 +1030 (CST) Cc: questions@FreeBSD.ORG In-Reply-To: <01I067NEGI1E00AU8C@HOOVER.STANFORD.EDU> from "Annelise Anderson" at Jan 18, 96 10:55:54 pm MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@FreeBSD.ORG Precedence: bulk Annelise Anderson stands accused of saying: > > I would like to recompile the kernel (generic) on my office machine > (2.0.5), but I did not install the kernel souces and I don't think > there's enough space (maybe 25 mb) to do so. There's a usr/src > directory, but nothing in it. Hmm. The 2.1 kernel source tree is about 15M, and a compiled kernel will add maybe 3M on top of that. I would say you had plenty of space. > to compile it? Then perhaps make and make install in > > /cdrom/usr/src/sys/i386/conf/make, maybe adding the path > to NEWKERNEL on the hard drive? > > Doesn't sound like this will work, but maybe there's a way. Unless your CDrom does writes, no 8) You can frob around this, but it's tough. If at all possible, put the kernel sources on disk and do it that way. If not, it's not _too_ hard to make a /usr/src that's mostly symlinks to the CDrom. If we assume that the live filesystem CD is mounted, and you're using csh : # mkdir /usr/src/sys # cd /usr/src/sys # foreach i (/cdrom/usr/src/sys/*) foreach? ln -s $i foreach? end # rm compile # mkdir compile # rm i386 # mkdir i386 # cd i386 # foreach i (/cdrom/usr/src/sys/i386*) foreach? ln -s $i foreach? end # rm conf # cp -r /cdrom/usr/src/sys/i386/conf . # cd conf # cp GENERIC MYKERNEL # vi MYKERNEL # config MYKERNEL # cd ../../compile/MYKERNEL # make;make install That (or something similar) should do it fine. > Annelise -- ]] Mike Smith, Software Engineer msmith@atrad.adelaide.edu.au [[ ]] Genesis Software genesis@atrad.adelaide.edu.au [[ ]] High-speed data acquisition and (GSM mobile) 0411-222-496 [[ ]] realtime instrument control (ph/fax) +61-8-267-3039 [[ ]] "Who does BSD?" "We do Chucky, we do." [[