centos 7 xfs格式,,根目录下某个文件误删除恢复
centos 7.2 使用rm删除了/opt 下一个目录,磁盘挂载如下:
[root@xxxx ~]# df -T
Filesystem Type 1K-blocks Used Available Use% Mounted on
/dev/mapper/centos-root xfs 52403200 20896024 31507176 40% /
/dev/mapper/centos-home xfs 171563164 151127316 20435848 89% /home
/dev/sda1 xfs 508588 127224 381364 26% /boot
可否恢复删除的目录和文件
[root@xxxx~]# cat /etc/redhat-release
CentOS Linux release 7.2.1511 (Core)
You have new mail in /var/spool/mail/root
[root@xxxx~]# uname -a
Linux 3.10.0-327.el7.x86_64 #1 SMP Thu Nov 19 22:10:57 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux