Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to recover files
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
vibidoo
Guru
Guru


Joined: 27 Nov 2002
Posts: 409

PostPosted: Fri Jan 31, 2003 6:10 pm    Post subject: How to recover files Reply with quote

I just delete by errors all my file on /etc

could I find a command to recover the files ?
Back to top
View user's profile Send private message
vibidoo
Guru
Guru


Joined: 27 Nov 2002
Posts: 409

PostPosted: Fri Jan 31, 2003 6:22 pm    Post subject: Reply with quote

thanks I will try this soft
Back to top
View user's profile Send private message
bsolar
Bodhisattva
Bodhisattva


Joined: 12 Jan 2003
Posts: 2764

PostPosted: Fri Jan 31, 2003 6:24 pm    Post subject: Reply with quote

If you deleted with "rm" you might try "unrm"
http://freshmeat.net/projects/unrm/

PS. I deleted the first post, pointing to an useless software (at least for you), sorry for the inconvenience.
Back to top
View user's profile Send private message
vibidoo
Guru
Guru


Joined: 27 Nov 2002
Posts: 409

PostPosted: Fri Jan 31, 2003 6:43 pm    Post subject: Reply with quote

it doesn't work for me , because of the password file on /etc who is delete !!
Back to top
View user's profile Send private message
vibidoo
Guru
Guru


Joined: 27 Nov 2002
Posts: 409

PostPosted: Fri Jan 31, 2003 6:48 pm    Post subject: Reply with quote

I Have a one week image of the failed hard disk .

could I take the disk connect it to a linux working machine and transfer file from the image to the failed disk ??

Do I have to modify a file on the copy station to allow him to recognize the failed hard disk ?

thanks for your support
Back to top
View user's profile Send private message
fifo
Guru
Guru


Joined: 14 Jan 2003
Posts: 437

PostPosted: Sun Feb 02, 2003 1:39 am    Post subject: Reply with quote

Is it just that the /etc directory has been accidentally deleted, or is there something physically wrong with the disk? If it's just the former, you should be able to access your data after booting from a livecd. You may even be able to recover the system by following the usual install procedure, but only unpacking the /etc directory from the stage1 tarball, for example with:
Code:

# cd /mnt/gentoo
# tar -xvjpf /mnt/cdrom/gentoo/stage1-x86-1.4_rc2.tbz2 ./etc

Then after chrooting and reconfiguring things as you like, an "emerge -e world" will (taking a rather long time) reinstall your packages together with their configuration files. Beware this is just an idea, I've not tested if this will work.
Back to top
View user's profile Send private message
vibidoo
Guru
Guru


Joined: 27 Nov 2002
Posts: 409

PostPosted: Mon Feb 03, 2003 9:08 am    Post subject: Reply with quote

yeaaaaaahhh it seems to be a very good idea , I will do that and keeping you inform
Back to top
View user's profile Send private message
vibidoo
Guru
Guru


Joined: 27 Nov 2002
Posts: 409

PostPosted: Mon Feb 03, 2003 10:11 am    Post subject: Reply with quote

Thnaks Fifo , I recover it

I didn't really use stage 1

because I have a 1 week image disk of the firewall I just archive the /etc directory

and boot on gentoocd and follow your advise

Thanks again :lol:
Back to top
View user's profile Send private message
drakonite
l33t
l33t


Joined: 02 Nov 2002
Posts: 768
Location: Lincoln, NE

PostPosted: Mon Feb 03, 2003 10:19 am    Post subject: Reply with quote

There is also e2undel which sounds quite a bit better than unrm, although I have never used either yet so I don't know for sure.
_________________
Shoot Pixels Not People

My GPG/PGP Public key
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