Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Jan 2005 02:22:17 -0600
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Mark Jayson Alvarez <jay2xra@yahoo.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: HELP!!!: I've accidentally deleted /dev
Message-ID:  <20050128082217.GI31269@dan.emsphone.com>
In-Reply-To: <20050128070248.67839.qmail@web51601.mail.yahoo.com>
References:  <20050128070248.67839.qmail@web51601.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Jan 27), Mark Jayson Alvarez said:
>   I was playing with file flags and decided to change the entire /
> hierarchy with "uunlnk". After doing that, I've cd into one of my
> file folders and then tried rm -rf *. It says operation not
> permitted. It worked. The uunlnk file flag worked. So I immediately
> cd'd into / and tried doing the same thing(rm -rf *). It was too late
> when I found out the the entries in my /dev/ wasn't affected when I
> chflags -R /. And then all of my devices were gone.
> I need a serious help now. Is there a way I can bring
> them back?

/dev/ on FreeBSD 5.* is a pseudo filesystem generated dynamically by
the kernel.  You can try running "devfs rule apply unhide" to ask the
kernel to put back all the devices it knows about, but any permissions
or symlinks created by the boot process will not be there.  A reboot
will put everything back to normal.

-- 
	Dan Nelson
	dnelson@allantgroup.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050128082217.GI31269>