You are not logged in.

#1 2005-11-08 22:14:45

osigen
Member
From: cynic tub
Registered: 2005-06-18
Posts: 36
Website

One idiot's story! RM command

Hi guys,

This is really a bad time! After a lot of fun with Arch for several months, I run from my .Trash directory rm -r -f /* instead of the right rm -r -f ./*

The results are obvious...
THE DARK SIDE :-( /etc and /bin directories was gone to hell and may some other directories have fellowed them. I pressed Ctrl-z and
THE LIGHT SIDE :-) is that my home directory and all of my stuff there is still alive!

I got a new kernel from ARCH setup CD and after restarting (without setup cd) I got the messages:
Init: No inittab file found
Sulogin: cannot open password database
Enter runlevel :
Here is the end point of my system.

I don't care about a fresh installation. I only care about my /home data.
They are still there, which way can I get them or better protect them via a backup or from a fresh installation?
Any detailed instruction would be appreciated!

I unplug my PC and waiting your responce!


"What we cannot speak about we must pass over in silence" L. Wittgenstein

Offline

#2 2005-11-08 22:28:35

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,431
Website

Re: One idiot's story! RM command

ummm - i would never use rm -rf with / ever! certainly not with ./ !  That's just crazy!

Offline

#3 2005-11-08 22:36:11

osigen
Member
From: cynic tub
Registered: 2005-06-18
Posts: 36
Website

Re: One idiot's story! RM command

I learned my lesson! I will never use rm -r -f / again!
What about current situation. I have a broken system what about ... the life-boat?


"What we cannot speak about we must pass over in silence" L. Wittgenstein

Offline

#4 2005-11-08 23:11:32

smoon
Member
Registered: 2005-08-22
Posts: 468
Website

Re: One idiot's story! RM command

osigen wrote:

I learned my lesson! I will never use rm -r -f / again!
What about current situation. I have a broken system what about ... the life-boat?

If you've got your /home on its own partition (or even hdd) you can just reinstall without formatting it. But I would suggest you backup all important data before doing so. You can use almost any Live-CD (even the Arch install CD should do fine) to get a minimal system running for copying your /home data to another harddrive or DVD or something similar.

Offline

#5 2005-11-09 00:14:23

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Re: One idiot's story! RM command

You know, you could have just done 'rm -rf *'...

(And why the heck did you clean your trash as root? :? )

Offline

#6 2005-11-09 01:06:23

T-Dawg
Forum Fellow
From: Wilmington, NC
Registered: 2005-01-29
Posts: 2,734

Re: One idiot's story! RM command

boot into a live cd such as archie and mount your root partition. Decide with media to backup your /home (DVD maybe?) and tar to preserve pemissions and keep links is the easiest way than worrying about the right switches with cp. cd into the backup directory and do

 tar -czvf backup.tar.gz /mnt/wherever/home

you can untar in the same maner but using x in place of c after a fresh install.

Offline

#7 2005-11-09 07:37:49

osigen
Member
From: cynic tub
Registered: 2005-06-18
Posts: 36
Website

Re: One idiot's story! RM command

Thank you.
I moving towards a fresh Arch 0.7.1 pre installation, and I will delete RM command from my vocabilary!


"What we cannot speak about we must pass over in silence" L. Wittgenstein

Offline

#8 2005-11-09 15:15:42

Moo-Crumpus
Member
From: Hessen / Germany
Registered: 2003-12-01
Posts: 1,442

Re: One idiot's story! RM command

To be prepared for the future: consider to use a seperate partiton for /home. You can then reinstall at will.


Frumpus addict
[mu'.krum.pus], [frum.pus]

Offline

Board footer

Powered by FluxBB