[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: clearing out old /dev/* nodes



On Wed, Sep 08, 2004 at 03:56:34AM +0100, David Leggett wrote:
> Hello to all list readers,
> I have been running old style legacy /dev/ system for a while and i recently 
> installed udev.
> After having read the udev documentation i realised that my system shouldnt 
> have 1600 files in /dev, i am wondering how i can safely remove all files 
> in /dev which dont correspond to devices that actually exist.
> 
> Thanks in advance

IIRC udev is a simple daemon that mknod(2)'s and unlink(2)'s in responce
to kernel notifications, so you should be able to rm them.

If you want minimal risk, tar up your /dev nodes first. (tar was intened
for backups, so it has special features for things like device nodes.)

-- 
The world's most effective spam filter:
        ln -sf /dev/full /var/mail/$USER



Reply to: