Colin writes:

> /dev is full of device nodes that I'll never have, like ESDI drives, fd1
> and all those pty/tty's that I had long since taken out of the kernel.
> So I thought I'd delete everything in /dev (booted from the LiveCD so
> udev wasn't up), shut off the udev tarball and then let udev recreate
> only what I had from sysfs.  I had over 1300 items inside /dev and it
> was impossible to easily browse or ls it, so it seemed like a good idea
> at the time.  Now I realize that maybe I should have been more selective
> instead of "rm -rf"ing the whole folder.

You only need /dev/null and /dev/console to make the system come up  
with udev. To safely delete other devices without the LiveCD, mount  
your root fs to a second location with the -bind option, not  
interfering with what udev puts into /dev:

# mount --bind / /mnt/tmp/
# ls -l /mnt/tmp/dev/
total 0
crw-rw----  1 root root 5, 1 Jan  8 01:12 console
crw-rw----  1 root root 1, 3 Jan  8 01:12 null
#

        Alex
-- 
  Alex Schuster     [EMAIL PROTECTED]
                    [EMAIL PROTECTED]
-- 
gentoo-user@gentoo.org mailing list

Reply via email to