Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
D'OH! 'rm -rf /dev' as root! - SOLVED
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Progman3K
l33t
l33t


Joined: 03 Jan 2004
Posts: 676

PostPosted: Thu Oct 11, 2007 8:54 pm    Post subject: D'OH! 'rm -rf /dev' as root! - SOLVED Reply with quote

I was preparing a filesystem for an embedded device and consequently mounted the /dev folder under a chrooted mountpoint.
At one point I realized I was using the wrong stage and I tried to erase everything under the chrooted mountpoint except /proc

The removal of /dev did not complete because it could not delete one of the in-use device nodes.

I then realized I had made a big mistake.

My box is still running, but sound has disappeared. That seems to be the only apparent problem right now.

My question is - How do I repair the damage?


Last edited by Progman3K on Thu Oct 11, 2007 9:29 pm; edited 1 time in total
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10456
Location: Somewhere over Atlanta, Georgia

PostPosted: Thu Oct 11, 2007 8:58 pm    Post subject: Reply with quote

Most device nodes are created by UDEV now at boot time. However, a few are critical for boot before UDEV is running. To recreate them, boot an install CD or LiveCD, mount the root partition in /mnt/gentoo and then
Code:
cd /mnt/gentoo/dev
MAKEDEV generic

- John
Back to top
View user's profile Send private message
likewhoa
l33t
l33t


Joined: 04 Oct 2006
Posts: 778
Location: Brooklyn, New York

PostPosted: Thu Oct 11, 2007 8:59 pm    Post subject: Reply with quote

MAKEDEV generic
then restart udev.
Code:

# udevcontrol reload_rules
# udevstart
Back to top
View user's profile Send private message
Progman3K
l33t
l33t


Joined: 03 Jan 2004
Posts: 676

PostPosted: Thu Oct 11, 2007 9:29 pm    Post subject: Solved! Reply with quote

Wow! That worked like a charm!
Didn't even need to restart and sound is working again.
Thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum