From owner-freebsd-questions Sun May 5 22:45:11 2002 Delivered-To: freebsd-questions@freebsd.org Received: from andrsn.stanford.edu (andrsn.Stanford.EDU [171.66.112.163]) by hub.freebsd.org (Postfix) with ESMTP id 22D1B37B405 for ; Sun, 5 May 2002 22:45:08 -0700 (PDT) Received: from localhost (localhost.stanford.edu [127.0.0.1]) by andrsn.stanford.edu (8.11.6/8.11.6) with ESMTP id g465fCH55404; Sun, 5 May 2002 22:41:13 -0700 (PDT) (envelope-from andrsn@andrsn.stanford.edu) Date: Sun, 5 May 2002 22:41:12 -0700 (PDT) From: Annelise Anderson To: Peter Leftwich Cc: Aaron Burke , FreeBSD LIST Subject: RE: ls -al /dev | wc -l In-Reply-To: <20020505150503.O85419-100000@earl-grey.cloud9.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, 5 May 2002, Peter Leftwich wrote: > On Sun, 5 May 2002, Aaron Burke wrote: > > You should be able to type the following as root. Allthough I am no expert on this subject, sh MAKEDEV all should rebuild the list of devices. From my box. > > alpha# cd /dev ; sh MAKEDEV all > > Is a command similar to that run at boot-time though? i.e. when is the > above command necessary? For plug-n-play situations? > > > On my box, I only show 859. But I do have a few options in the kernel for devices that dont exist. Such as a floppy drive, etc. That may help. I hope so. > In FreeBSD 4.x, "MAKEDEV all" run in /dev makes all the devices called for in the script. MAKEDEV used to delete devices not in the script, but doesn't any more. The 4.5-STABLE script makes over 1,100 device nodes. It seems that MAKEDEV now makes sound devices (at least for pcm0) so you don't have to do this yourself when activating sound. You may have some devices you've created that aren't included in the default script, e.g., slices/partitions for a third or fourth scsi or ide hard drive. Each of these devices needs an inode, but they don't take up much space, so there's really little point that I can see in trying to get rid of ones the system doesn't use, and there's a risk in deleting something you don't recognize you need. In 4.x (unlike -current) device nodes are not recreated on boot or created "as needed." Annelise -- Annelise Anderson Author of: FreeBSD: An Open-Source Operating System for Your PC Available from: BSDmall.com and amazon.com Book Website: http://www.bittreepress.com/FreeBSD/introbook/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message