Reputation: 2055
I am using centos7 locally. Mistaken I deleted text file(keystone.conf.disabled) using rm, from /etc/httpd/conf.d directory, How to recover this file. This file is very important to me. Please help me..
I try to but in vain It is giving message Filesystem n
[vagrant@localhost conf.d]$ debugfs -w /dev/mapper/wks01-root
debugfs 1.42.9 (28-Dec-2013)
/dev/mapper/wks01-root: No such file or directory while opening filesystem
debugfs: lsdel
lsdel: Filesystem not open
debugfs:
I try also using as root user
[vagrant@localhost conf.d]$ su
Password:
[root@localhost conf.d]# debugfs -w /dev/mapper/wks01-root
debugfs 1.42.9 (28-Dec-2013)
/dev/mapper/wks01-root: No such file or directory while opening filesystem
debugfs: lsdel
lsdel: Filesystem not open
debugfs:
Upvotes: 3
Views: 6517
Reputation: 60056
Make sure the system is remounted read-only to prevent the released diskspace from being overwritten and try extundelete
if you're on ext3/4.
For the future, etckeeper
might be useful (makes a git repo out of etc
and commits on installs that change /etc/
)
Upvotes: 2