Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 May 2002 22:41:12 -0700 (PDT)
From:      Annelise Anderson <andrsn@andrsn.stanford.edu>
To:        Peter Leftwich <Hostmaster@Video2Video.Com>
Cc:        Aaron Burke <aburke@nullplusone.com>, FreeBSD LIST <FreeBSD-Questions@FreeBSD.ORG>
Subject:   RE: ls -al /dev | wc -l
Message-ID:  <Pine.BSF.4.10.10205052229410.55378-100000@andrsn.stanford.edu>
In-Reply-To: <20020505150503.O85419-100000@earl-grey.cloud9.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.10205052229410.55378-100000>