[英]How to recover the deleted file from linux system?
I am using centos7 locally. 我在本地使用centos7。 Mistaken I deleted text file(keystone.conf.disabled) using rm, from /etc/httpd/conf.d directory, How to recover this file.
错误我使用rm从/etc/httpd/conf.d目录中删除了文本文件(keystone.conf.disabled),该文件如何恢复。 This file is very important to me.
该文件对我来说非常重要。 Please help me..
请帮我..
I try to but in vain It is giving message Filesystem n 我试图但徒劳地给它消息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 我也尝试以root用户身份使用
[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:
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 . 确保系统以只读方式重新安装,以防止释放的磁盘空间被覆盖,如果您使用的是ext3 / 4 ,请尝试使用
extundelete
。
For the future, etckeeper
might be useful (makes a git repo out of etc
and commits on installs that change /etc/
) 对于将来,
etckeeper
可能会很有用(从etc
制作一个git repo并提交更改/etc/
安装)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.