Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
surviving rm -rf /
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
Plastic
l33t
l33t


Joined: 24 Mar 2004
Posts: 649

PostPosted: Wed Sep 08, 2004 10:42 pm    Post subject: surviving rm -rf / Reply with quote

I just accidently rm -rf ed / . I was able to control -c it before it destroyed my whole system, but it got /bin and some of /etc (passwd, so I can't su). Should I boot from my livecd and re-emerge baselayout? How will I fix /bin ? HELP MEEEEEEEEE!!!! :( :oops: :cry: :cry:
EDIT: Well, maybe I can get through this... I guess there's no time like the present to switch to reiser4...
Back to top
View user's profile Send private message
zojas
Veteran
Veteran


Joined: 22 Apr 2002
Posts: 1138
Location: Phoenix, AZ

PostPosted: Wed Sep 08, 2004 11:32 pm    Post subject: Reply with quote

simplest way is to backup /home, /etc (if anything is left), /root, and your kernel config, then install again.

if you have another machine with same CFLAGS, you can duplicate its /bin dir (boot from the livecd if you have to)
_________________
http://www.desertsol.com/~kevin/ppc
Back to top
View user's profile Send private message
dashnu
l33t
l33t


Joined: 21 Jul 2004
Posts: 703
Location: Casco Maine

PostPosted: Thu Sep 09, 2004 12:02 am    Post subject: Reply with quote

wow, at first I was thinking how the hell did ya pull that off but than i looked at my keyboard and I am suprised this is not a more common event. The / and Enter key are awfull close.

I may try to set up some sort of script/alias to prevent this from happening just need to borrow someones linux box to test it out :wink: anyone?

I would say the only thing you can do is grab your /home dir and start over.
_________________
write quit bang
Back to top
View user's profile Send private message
Ateo
Advocate
Advocate


Joined: 02 Jun 2003
Posts: 2021
Location: Republic of California

PostPosted: Thu Sep 09, 2004 12:30 am    Post subject: Reply with quote

My first reaction is to laugh. I've been there. hehe...

back up what you can, if you can, reinstall. =)

I made it a habit to add my flags at the end of my statements... ie: rm blah/ -fr

I'm a survivor too.
Back to top
View user's profile Send private message
Plastic
l33t
l33t


Joined: 24 Mar 2004
Posts: 649

PostPosted: Thu Sep 09, 2004 12:45 am    Post subject: Reply with quote

init-zero wrote:
wow, at first I was thinking how the hell did ya pull that off but than i looked at my keyboard and I am suprised this is not a more common event. The / and Enter key are awfull close.

I may try to set up some sort of script/alias to prevent this from happening just need to borrow someones linux box to test it out :wink: anyone?

I would say the only thing you can do is grab your /home dir and start over.


Good idea! I guess I knew it would come to this...well, I guess I have been granted an opportunity to use reiser4. :?
Back to top
View user's profile Send private message
Zepp
Veteran
Veteran


Joined: 15 Mar 2004
Posts: 1246
Location: Ontario, Canada

PostPosted: Thu Sep 09, 2004 3:08 am    Post subject: Reply with quote

Wow that has got to suck :P
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