From owner-freebsd-questions@FreeBSD.ORG Sun Jul 11 12:09:55 2004 Return-Path: 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 13E1A16A4CE for ; Sun, 11 Jul 2004 12:09:55 +0000 (GMT) Received: from drifthost.com (drifthost.com [66.90.65.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id E2C2343D48 for ; Sun, 11 Jul 2004 12:09:54 +0000 (GMT) (envelope-from steve@drifthost.com) Received: from Steve (dsl-203-142-133-217.syd.directcorp.net.au [203.142.133.217]) by drifthost.com (Postfix) with ESMTP id A18D6FE9A; Sun, 11 Jul 2004 22:06:49 +1000 (EST) From: "Steven Adams" To: "'Arjan Van Leeuwen'" Date: Sun, 11 Jul 2004 22:09:54 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 Thread-Index: AcRnN9Ipdp9/h7qLSaOaDOYb17p5vwAB6TCw Message-Id: <20040711120649.A18D6FE9A@drifthost.com> cc: freebsd-questions@freebsd.org Subject: RE: FreeBSD Kernel Recompile, Does not exclude modules X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Jul 2004 12:09:55 -0000 Hi, Ive already disabled usbd_enable=no in /etc/rc.conf But still I get theses root 399 0.0 0.0 0 12 ?? DL Sat04PM 0:00.03 (usb0) root 400 0.0 0.0 0 12 ?? DL Sat04PM 0:00.00 (usbtask) And yes I ran make install, I know it worked because I also compiled in quota support which is now working and wasn't previously. I am a 5year slackware linux user just moved over to FreeBSD so im used to the linux kernel, that's why its confused me a little. FreeBSD is looking great tho.. :) But yeh wondering how I get rid of them 2 processes. Thanks Steve -----Original Message----- From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of Arjan Van Leeuwen Sent: Sunday, 11 July 2004 9:14 PM To: Steven Adams Cc: freebsd-questions@freebsd.org Subject: Re: FreeBSD Kernel Recompile, Does not exclude modules Hi Steve, On Sun, 11 Jul 2004 17:25:40 +1000, Steven Adams wrote: > Hey, > > Reading from the FreeBSD Handbook I have compiled a new kernel that works > fine. > > In my config file I commented out a few things I don't need eg USB etc. > > But for some reason when it booted back up into the new kernel, from ps aux > it shows usb is up and running.. You mean that the program usbd is running. This is a userland program that detects new USB devices and starts some predefined sequence of commands when a certain device enters the system. You can turn it off by adding usbd_enable="NO" to /etc/rc.conf. > > /boot/kernel shows that usb.ko is there. > > I don't understand why its included which I commented it out There's a difference between 'compiling something into the kernel' and using a kernel module. usb.ko is a kernel loadable module - a module that you can load with kldload if you need it. It's not compiled into the kernel. When you had 'device usb' in your kernel, usb would be compiled into the kernel and you'd never need to load the kernel loadable module for it. Now, you've removed usb from your kernel configuration file, so usb support is not in your kernel. Should you need it later, you can always load the module. If the module is not loaded, it doesn't take up any resources (except for the hard drive space it uses), so it shouldn't bother you. If you really don't want to compile any modules at all when building your kernel (for example, to save time when building a kernel), add NO_MODULES=true to /etc/make.conf. Arjan _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"