View previous topic :: View next topic |
Author |
Message |
toanhoi n00b
Joined: 09 Jun 2014 Posts: 5
|
Posted: Mon Jun 09, 2014 1:04 pm Post subject: How to recover files in /ect/ gentoo |
|
|
Hello everybody, I am working with gentoo operation. I deleted all files in /ect/ folder (rm -rf /etc/). Is it possible to recovery them? Could you suggest one way to recovery them? thank you so much |
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Mon Jun 09, 2014 1:47 pm Post subject: Re: How to recover files in /ect/ gentoo |
|
|
toanhoi wrote: | Hello everybody, I am working with gentoo operation. I deleted all files in /ect/ folder (rm -rf /etc/). Is it possible to recovery them? Could you suggest one way to recovery them? thank you so much |
toanhoi ... you should shutdown the machine immediately so that nothing further is written to disk. Then, dependent on what filesystem is in use, you can use a tool like sys-fs/extundelete (ext3/ext4) to try and recover the deleted files. I'd suggest using sysrescuecd and making an image of the disk for recovery.
Of course as you ask I assume there are no backups ... which would have saved you in such cases. Also, something like safe-rm could be used to prevent this from happening.
HTH & best ... khay |
|
Back to top |
|
|
druggo Apprentice
Joined: 24 Sep 2003 Posts: 289 Location: Hangzhou, China
|
Posted: Mon Jun 09, 2014 2:34 pm Post subject: |
|
|
testdisk _________________ HighWayToHell(blog)
http://blog.druggo.org/ |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
toanhoi n00b
Joined: 09 Jun 2014 Posts: 5
|
Posted: Tue Jun 10, 2014 6:56 am Post subject: |
|
|
Thank you for your help. From your suggestion, I think I must install gentoo again. it does not help option autofix,right?(that mean when I install, the system will scan missing files and autorecover(autofix)). |
|
Back to top |
|
|
|